summaryrefslogtreecommitdiff
path: root/includes/normal/UtfNormalBench.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
committerPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
commitcecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch)
tree17266aa237742640aabee7856f0202317a45d540 /includes/normal/UtfNormalBench.php
parent0bac06c301f2a83edb0236e4c2434da16848d549 (diff)
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert kleine Korrekturen am Design
Diffstat (limited to 'includes/normal/UtfNormalBench.php')
-rw-r--r--includes/normal/UtfNormalBench.php10
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;
}