public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Benchmark for wfBaseConvert.";
     $this->addOption("inbase", "Input base", false, true);
     $this->addOption("outbase", "Output base", false, true);
     $this->addOption("length", "Size in digits to generate for input", false, true);
 }
 public function __construct()
 {
     parent::__construct();
     // @codingStandardsIgnoreStart Ignore long line warnings.
     $this->data = ["", "United States of America", "S%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e", "Acteur%7CAlbert%20Robbins%7CAnglais%7CAnn%20Donahue%7CAnthony%20E.%20Zuiker%7CCarol%20Mendelsohn", "Acteur%7CAlbert%20Robbins%7CAnglais%7CAnn%20Donahue%7CAnthony%20E.%20Zuiker%7CCarol%20Mendelsohn%7C" . "Catherine%20Willows%7CDavid%20Hodges%7CDavid%20Phillips%7CGil%20Grissom%7CGreg%20Sanders%7CHodges%7C" . "Internet%20Movie%20Database%7CJim%20Brass%7CLady%20Heather%7C" . "Les%20Experts%20(s%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e)%7CLes%20Experts%20:%20Manhattan%7C" . "Les%20Experts%20:%20Miami%7CListe%20des%20personnages%20des%20Experts%7C" . "Liste%20des%20%C3%A9pisodes%20des%20Experts%7CMod%C3%A8le%20discussion:Palette%20Les%20Experts%7C" . "Nick%20Stokes%7CPersonnage%20de%20fiction%7CPersonnage%20fictif%7CPersonnage%20de%20fiction%7C" . "Personnages%20r%C3%A9currents%20dans%20Les%20Experts%7CRaymond%20Langston%7CRiley%20Adams%7C" . "Saison%201%20des%20Experts%7CSaison%2010%20des%20Experts%7CSaison%2011%20des%20Experts%7C" . "Saison%2012%20des%20Experts%7CSaison%202%20des%20Experts%7CSaison%203%20des%20Experts%7C" . "Saison%204%20des%20Experts%7CSaison%205%20des%20Experts%7CSaison%206%20des%20Experts%7C" . "Saison%207%20des%20Experts%7CSaison%208%20des%20Experts%7CSaison%209%20des%20Experts%7C" . "Sara%20Sidle%7CSofia%20Curtis%7CS%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e%7CWallace%20Langham%7C" . "Warrick%20Brown%7CWendy%20Simms%7C%C3%89tats-Unis"];
     // @codingStandardsIgnoreEnd
     $this->addDescription("Benchmark for using a regexp vs. mb_check_encoding " . "to check for UTF-8 encoding.");
 }
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Benchmark for Wikimedia\\base_convert.');
     $this->addOption("inbase", "Input base", false, true);
     $this->addOption("outbase", "Output base", false, true);
     $this->addOption("length", "Size in digits to generate for input", false, true);
 }
 public function __construct()
 {
     parent::__construct();
     $this->data = array("", "United States of America", "S%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e", "Acteur%7CAlbert%20Robbins%7CAnglais%7CAnn%20Donahue%7CAnthony%20E.%20Zuiker%7CCarol%20Mendelsohn", "Acteur%7CAlbert%20Robbins%7CAnglais%7CAnn%20Donahue%7CAnthony%20E.%20Zuiker%7CCarol%20Mendelsohn%7C" . "Catherine%20Willows%7CDavid%20Hodges%7CDavid%20Phillips%7CGil%20Grissom%7CGreg%20Sanders%7CHodges%7C" . "Internet%20Movie%20Database%7CJim%20Brass%7CLady%20Heather%7C" . "Les%20Experts%20(s%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e)%7CLes%20Experts%20:%20Manhattan%7C" . "Les%20Experts%20:%20Miami%7CListe%20des%20personnages%20des%20Experts%7C" . "Liste%20des%20%C3%A9pisodes%20des%20Experts%7CMod%C3%A8le%20discussion:Palette%20Les%20Experts%7C" . "Nick%20Stokes%7CPersonnage%20de%20fiction%7CPersonnage%20fictif%7CPersonnage%20de%20fiction%7C" . "Personnages%20r%C3%A9currents%20dans%20Les%20Experts%7CRaymond%20Langston%7CRiley%20Adams%7C" . "Saison%201%20des%20Experts%7CSaison%2010%20des%20Experts%7CSaison%2011%20des%20Experts%7C" . "Saison%2012%20des%20Experts%7CSaison%202%20des%20Experts%7CSaison%203%20des%20Experts%7C" . "Saison%204%20des%20Experts%7CSaison%205%20des%20Experts%7CSaison%206%20des%20Experts%7C" . "Saison%207%20des%20Experts%7CSaison%208%20des%20Experts%7CSaison%209%20des%20Experts%7C" . "Sara%20Sidle%7CSofia%20Curtis%7CS%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e%7CWallace%20Langham%7C" . "Warrick%20Brown%7CWendy%20Simms%7C%C3%89tats-Unis");
     $this->canRun = function_exists('mb_check_encoding');
     if ($this->canRun) {
         $this->mDescription = "Benchmark for using a regexp vs. mb_check_encoding to check for UTF-8 encoding.";
         mb_internal_encoding('UTF-8');
     } else {
         $this->mDescription = "CANNOT RUN benchmark using mb_check_encoding: function not available.";
     }
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = 'Benchmark MediaWiki Hooks.';
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Benchmark if elseif... versus switch case.');
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Benchmark for wfIsWindows.";
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Benchmarks SQL DELETE vs SQL TRUNCATE.";
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Benchmark for strtr() vs str_replace().";
 }
Example #10
0
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Benchmark HTTP request vs HTTPS request.');
 }
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = 'Benchmark uuid timstamp extraction implementations';
 }
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Benchmark for strtr() vs str_replace().');
 }
Example #13
0
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Benchmark MediaWiki Hooks.');
 }
Example #14
0
 /**
  * Output temporary directory used for benchmarking
  *
  * @return string
  */
 protected static function directory()
 {
     if (is_null(self::$directory)) {
         self::$directory = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'benchmark' . DIRECTORY_SEPARATOR;
         if (!is_dir(self::$directory)) {
             mkdir(self::$directory);
         }
     }
     return self::$directory;
 }
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Benchmarks SQL DELETE vs SQL TRUNCATE.');
 }
Example #16
0
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Benchmark the Squid purge functions.";
 }
Example #17
0
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Benchmark if elseif... versus switch case.";
 }
Example #18
0
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Benchmark the Squid purge functions.');
 }
Example #19
0
 public function __construct()
 {
     parent::__construct();
 }
Example #20
0
 public function __construct()
 {
     parent::__construct();
     $this->mDescription = "Benchmark HTTP request vs HTTPS request.";
 }
 public function __construct()
 {
     parent::__construct();
     $this->addDescription('Benchmark for wfIsWindows.');
 }