MediaWiki
1.23.2
|
Approximate benchmark for some basic operations. More...
Go to the source code of this file.
Functions | |
benchmarkForm (&$u, &$data, $form) | |
foreach( $testfiles as $file=> $desc) | benchmarkTest (&$u, $filename, $desc) |
benchTime () | |
Variables | |
$normalizer = new UtfNormal | |
$testfiles | |
const | BENCH_CYCLES 5 |
if(PHP_SAPI !='cli') | if (isset($_SERVER[ 'argv']) &&in_array('--icu', $_SERVER[ 'argv'])) |
Approximate benchmark for some basic operations.
Copyright © 2004 Brion Vibber brion @pob ox.co mhttps://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 UtfNormalBench.php.
benchmarkForm | ( | & | $u, |
& | $data, | ||
$form | |||
) |
Definition at line 88 of file UtfNormalBench.php.
References $form, $out, UtfNormal\$utfCanonicalDecomp, BENCH_CYCLES, and benchTime().
Referenced by benchmarkTest().
Definition at line 56 of file UtfNormalBench.php.
References $form, array(), as, and benchmarkForm().
benchTime | ( | ) |
Definition at line 83 of file UtfNormalBench.php.
Referenced by benchmarkForm().
$normalizer = new UtfNormal |
Definition at line 48 of file UtfNormalBench.php.
Referenced by ComposerVersionNormalizerTest\assertRemainsUnchanged(), ComposerVersionNormalizerTest\testGivenComplexVersionWithoutDash_normalizeSuffixAddsDash(), ComposerVersionNormalizerTest\testGivenFewerLevels_levelCountNormalizationEnsuresFourLevels(), ComposerVersionNormalizerTest\testGivenFourLevels_levelCountNormalizationDoesNothing(), and ComposerVersionNormalizerTest\testGivenNonString_normalizeThrowsInvalidArgumentException().
$testfiles |
Definition at line 41 of file UtfNormalBench.php.
const BENCH_CYCLES 5 |
Definition at line 39 of file UtfNormalBench.php.
Referenced by benchmarkForm().
if (PHP_SAPI !='cli') if(isset( $_SERVER['argv']) &&in_array('--icu', $_SERVER['argv'])) |
Definition at line 31 of file UtfNormalBench.php.