dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Expand core post edit functionality to match VE"
[lhc/web/wiklou.git]
/
maintenance
/
benchmarks
/
bench_wfBaseConvert.php
diff --git
a/maintenance/benchmarks/bench_wfBaseConvert.php
b/maintenance/benchmarks/bench_wfBaseConvert.php
index
a1e5c6a
..
b4be12b
100644
(file)
--- a/
maintenance/benchmarks/bench_wfBaseConvert.php
+++ b/
maintenance/benchmarks/bench_wfBaseConvert.php
@@
-22,15
+22,14
@@
* @author Tyler Romeo
*/
* @author Tyler Romeo
*/
-require_once
( __DIR__ . '/Benchmarker.php' )
;
+require_once
__DIR__ . '/Benchmarker.php'
;
/**
* Maintenance script that benchmarks wfBaseConvert().
*
* @ingroup Benchmark
*/
/**
* Maintenance script that benchmarks wfBaseConvert().
*
* @ingroup Benchmark
*/
-class bench_wfBaseConvert extends Benchmarker {
-
+class BenchWfBaseConvert extends Benchmarker {
public function __construct() {
parent::__construct();
$this->mDescription = "Benchmark for wfBaseConvert.";
public function __construct() {
parent::__construct();
$this->mDescription = "Benchmark for wfBaseConvert.";
@@
-58,7
+57,7
@@
class bench_wfBaseConvert extends Benchmarker {
'function' => 'wfBaseConvert',
'args' => array( $number, $inbase, $outbase, 0, true, 'gmp' )
),
'function' => 'wfBaseConvert',
'args' => array( $number, $inbase, $outbase, 0, true, 'gmp' )
),
- ));
+ )
);
$this->output( $this->getFormattedResults() );
}
$this->output( $this->getFormattedResults() );
}
@@
-66,12
+65,13
@@
class bench_wfBaseConvert extends Benchmarker {
protected static function makeRandomNumber( $base, $length ) {
$baseChars = "0123456789abcdefghijklmnopqrstuvwxyz";
$res = "";
protected static function makeRandomNumber( $base, $length ) {
$baseChars = "0123456789abcdefghijklmnopqrstuvwxyz";
$res = "";
- for( $i = 0; $i < $length; $i++ ) {
- $res .= $baseChars[mt_rand(
0, $base - 1
)];
+ for
( $i = 0; $i < $length; $i++ ) {
+ $res .= $baseChars[mt_rand(
0, $base - 1
)];
}
}
+
return $res;
}
}
return $res;
}
}
-$maintClass = '
bench_w
fBaseConvert';
-require_once
( RUN_MAINTENANCE_IF_MAIN )
;
+$maintClass = '
BenchW
fBaseConvert';
+require_once
RUN_MAINTENANCE_IF_MAIN
;