use number_format on bytes/sec in output to make it easier to read
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 13 Jan 2007 04:22:47 +0000 (04:22 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 13 Jan 2007 04:22:47 +0000 (04:22 +0000)
includes/normal/UtfNormalBench.php

index b126b81..3b12427 100644 (file)
@@ -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;
 }