MediaWiki  REL1_19
UtfNormalMemStress.php File Reference

Approximate benchmark for some basic operations. More...

Go to the source code of this file.

Enumerations

enum  BENCH_CYCLES
enum  BIGSIZE

Functions

 benchmarkForm (&$u, &$data, $form)
foreach($testfiles as $file=>
$desc) 
benchmarkTest (&$u, $filename, $desc)
 benchTime ()

Variables

 $normalizer = new UtfNormal
if(php_sapi_name()!= 'cli') $testfiles
 if (isset($_SERVER['argv'])&&in_array( '--icu', $_SERVER['argv']))

Detailed Description

Approximate benchmark for some basic operations.

Runs large chunks of text through cleanup with a lowish memory limit, to test regression on mem usage (bug 28146)

Copyright © 2004-2011 Brion Vibber <[email protected]> http://www.mediawiki.org/

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file UtfNormalMemStress.php.


Enumeration Type Documentation

Definition at line 37 of file UtfNormalMemStress.php.

enum BIGSIZE

Definition at line 38 of file UtfNormalMemStress.php.


Function Documentation

benchmarkForm ( &$  u,
&$  data,
form 
)

Definition at line 90 of file UtfNormalMemStress.php.

References $out, UtfNormal\$utfCanonicalDecomp, and benchTime().

Here is the call graph for this function:

foreach ($testfiles as $file=> $desc) benchmarkTest ( &$  u,
filename,
desc 
)

Definition at line 60 of file UtfNormalMemStress.php.

References benchmarkForm(), echo, and print.

Here is the call graph for this function:

benchTime ( )

Definition at line 85 of file UtfNormalMemStress.php.


Variable Documentation

$normalizer = new UtfNormal

Definition at line 52 of file UtfNormalMemStress.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 45 of file UtfNormalMemStress.php.

if(isset($_SERVER['argv'])&&in_array( '--icu', $_SERVER['argv']))

Definition at line 29 of file UtfNormalMemStress.php.