From e398816be794cbe9ca6f1abd5958fa3913e9a8e3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 13 Jan 2007 04:22:47 +0000 Subject: [PATCH] use number_format on bytes/sec in output to make it easier to read --- includes/normal/UtfNormalBench.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/normal/UtfNormalBench.php b/includes/normal/UtfNormalBench.php index b126b814be..3b124274d1 100644 --- 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; } -- 2.20.1