includes/normal/UtfNormalBench.php File Reference

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


Enumeration Type Documentation

Definition at line 35 of file UtfNormalBench.php.


Function Documentation

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 (  ) 

Definition at line 83 of file UtfNormalBench.php.

Referenced by benchmarkForm().


Variable Documentation

$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.


Generated on Sat Sep 5 02:08:07 2009 for MediaWiki by  doxygen 1.5.9