Submit
Path:
~
/
/
opt
/
psa
/
phpMyAdmin
/
vendor
/
phpmyadmin
/
motranslator
/
File Content:
benchmark-apcu.php
<?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";
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
src
---
0755
CHANGELOG.md
2305 bytes
0644
LICENSE
18046 bytes
0644
README.md
8427 bytes
0644
benchmark-apcu.php
640 bytes
0644
composer.json
1581 bytes
0644
N4ST4R_ID | Naxtarrr