dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf50693
)
use number_format on bytes/sec in output to make it easier to read
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 13 Jan 2007 04:22:47 +0000
(
04:22
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 13 Jan 2007 04:22:47 +0000
(
04:22
+0000)
includes/normal/UtfNormalBench.php
patch
|
blob
|
history
diff --git
a/includes/normal/UtfNormalBench.php
b/includes/normal/UtfNormalBench.php
index
b126b81
..
3b12427
100644
(file)
--- a/
includes/normal/UtfNormalBench.php
+++ b/
includes/normal/UtfNormalBench.php
@@
-100,7
+100,11
@@
function benchmarkForm( &$u, &$data, $form ) {
$rate = intval( strlen( $data ) / $delta );
$same = (0 == strcmp( $data, $out ) );
- printf( " %20s %6.1fms %8d bytes/s (%s)\n", $form, $delta*1000.0, $rate, ($same ? 'no change' : 'changed' ) );
+ printf( " %20s %6.1fms %12s bytes/s (%s)\n",
+ $form,
+ $delta*1000.0,
+ number_format( $rate ),
+ ($same ? 'no change' : 'changed' ) );
return $out;
}