Add some sub-functions back to the benchmark
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 30 Oct 2004 06:42:39 +0000 (06:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 30 Oct 2004 06:42:39 +0000 (06:42 +0000)
includes/normal/UtfNormalBench.php

index f035542..e81edec 100644 (file)
@@ -45,6 +45,7 @@ $testfiles = array(
        'testdata/sociology.txt' => 'Korean text'
 );
 $normalizer = new UtfNormal;
+UtfNormal::loadData();
 foreach( $testfiles as $file => $desc ) {
        benchmarkTest( $normalizer, $file, $desc );
 }
@@ -62,7 +63,7 @@ function benchmarkTest( &$u, $filename, $desc ) {
                'NFC',
 #              'NFKC',
 #              'NFD', 'NFKD',
-#              'fastDecompose', 'fastCombiningSort', 'fastCompose',
+               'fastDecompose', 'fastCombiningSort', 'fastCompose',
                'quickIsNFC', 'quickIsNFCVerify',
                );
        foreach( $forms as $form ) {