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 "Fix permission check on protection log"
[lhc/web/wiklou.git]
/
maintenance
/
benchmarks
/
benchmarkTidy.php
diff --git
a/maintenance/benchmarks/benchmarkTidy.php
b/maintenance/benchmarks/benchmarkTidy.php
index
e9a30f9
..
357bf1b
100644
(file)
--- a/
maintenance/benchmarks/benchmarkTidy.php
+++ b/
maintenance/benchmarks/benchmarkTidy.php
@@
-59,6
+59,7
@@
class BenchmarkTidy extends Benchmarker {
$min = $times[0];
$max = end( $times );
if ( $n % 2 ) {
$min = $times[0];
$max = end( $times );
if ( $n % 2 ) {
+ // @phan-suppress-next-line PhanTypeMismatchDimFetch
$median = $times[ ( $n - 1 ) / 2 ];
} else {
$median = ( $times[$n / 2] + $times[$n / 2 - 1] ) / 2;
$median = $times[ ( $n - 1 ) / 2 ];
} else {
$median = ( $times[$n / 2] + $times[$n / 2 - 1] ) / 2;
@@
-69,7
+70,7
@@
class BenchmarkTidy extends Benchmarker {
print "Median: $median ms\n";
print "Mean: $mean ms\n";
print "Maximum: $max ms\n";
print "Median: $median ms\n";
print "Mean: $mean ms\n";
print "Maximum: $max ms\n";
- print "Memory usage: " .
$contLang->formatSize( memory_get_usage( true ) ) . "\n";
+ print "Memory usage: " . $contLang->formatSize( memory_get_usage( true ) ) . "\n";
print "Peak memory usage: " .
$contLang->formatSize( memory_get_peak_usage( true ) ) . "\n";
}
print "Peak memory usage: " .
$contLang->formatSize( memory_get_peak_usage( true ) ) . "\n";
}