diff options
Diffstat (limited to 'includes/normal/UtfNormalBench.php')
-rw-r--r-- | includes/normal/UtfNormalBench.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/includes/normal/UtfNormalBench.php b/includes/normal/UtfNormalBench.php index a5eb267e..c394f4d8 100644 --- a/includes/normal/UtfNormalBench.php +++ b/includes/normal/UtfNormalBench.php @@ -20,7 +20,7 @@ /** * Approximate benchmark for some basic operations. * - * @package UtfNormal + * @addtogroup UtfNormal * @access private */ @@ -43,7 +43,7 @@ $testfiles = array( 'testdata/berlin.txt' => 'German text', 'testdata/bulgakov.txt' => 'Russian text', 'testdata/tokyo.txt' => 'Japanese text', - 'testdata/sociology.txt' => 'Korean text' + 'testdata/young.txt' => 'Korean text' ); $normalizer = new UtfNormal; UtfNormal::loadData(); @@ -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; } |