Go to the source code of this file.
Enumerations | |
| enum | BENCH_CYCLES |
Functions | |
| foreach($testfiles as $file=> $desc) | benchmarkTest (&$u, $filename, $desc) |
| benchTime () | |
| benchmarkForm (&$u, &$data, $form) | |
Variables | |
| if (isset($_SERVER['argv'])&&in_array( '--icu', $_SERVER['argv'])) | |
| Approximate benchmark for some basic operations. | |
| if(php_sapi_name()!= 'cli') | $testfiles |
| $normalizer = new UtfNormal | |
| enum BENCH_CYCLES |
Definition at line 35 of file UtfNormalBench.php.
| benchmarkForm | ( | &$ | u, | |
| &$ | data, | |||
| $ | form | |||
| ) |
Definition at line 88 of file UtfNormalBench.php.
References $i, $out, $start, $u, $utfCanonicalDecomp, benchTime(), printf(), and sort.
Referenced by benchmarkTest().
| foreach ($testfiles as $file=> $desc) benchmarkTest | ( | &$ | u, | |
| $ | filename, | |||
| $ | desc | |||
| ) |
Definition at line 56 of file UtfNormalBench.php.
References $filename, $step, $u, benchmarkForm(), and print.
| benchTime | ( | ) |
| $normalizer = new UtfNormal |
Definition at line 48 of file UtfNormalBench.php.
| if (php_sapi_name()!= 'cli') $testfiles |
Initial value:
array(
'testdata/washington.txt' => 'English text',
'testdata/berlin.txt' => 'German text',
'testdata/bulgakov.txt' => 'Russian text',
'testdata/tokyo.txt' => 'Japanese text',
'testdata/young.txt' => 'Korean text'
)
Definition at line 41 of file UtfNormalBench.php.
1.5.9