Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
29
admin/phpMyAdmin/vendor/phpmyadmin/motranslator/benchmark-apcu.php
vendored
Normal file
29
admin/phpMyAdmin/vendor/phpmyadmin/motranslator/benchmark-apcu.php
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require './vendor/autoload.php';
|
||||
|
||||
$files = [
|
||||
'big' => './tests/data/big.mo',
|
||||
'little' => './tests/data/little.mo',
|
||||
];
|
||||
|
||||
$start = microtime(true);
|
||||
|
||||
for ($i = 0; $i < 2000; ++$i) {
|
||||
foreach ($files as $domain => $filename) {
|
||||
$translator = new PhpMyAdmin\MoTranslator\Translator(
|
||||
new PhpMyAdmin\MoTranslator\Cache\ApcuCache(
|
||||
new PhpMyAdmin\MoTranslator\MoParser($filename), 'foo', $domain
|
||||
)
|
||||
);
|
||||
$translator->gettext('Column');
|
||||
}
|
||||
}
|
||||
|
||||
$end = microtime(true);
|
||||
|
||||
$diff = $end - $start;
|
||||
|
||||
echo 'Execution took ' . $diff . ' seconds' . "\n";
|
Loading…
Add table
Add a link
Reference in a new issue