2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/dev/tools/test/testperf.php
MDW 417726f7b1 Fix: Disable execute bit in git + correct shebangs (#27450)
# Fix: Execute bits in git and shebangs

Some files had the execute bit improperly set to enabled.
Some scripts did not have a correct shebang.
2024-01-12 17:10:16 +01:00

23 lines
398 B
PHP

<?php
$a = microtime(true);
$i = 0;
while ($i < 1000000) {
$key = '1234567890111213141516171819'.$i;
if ($i == 1000) {
$key = 'MAIN_MODULE_AAAAAiiiiiiiiiiiiiiiiiiiiiiiiiiiii';
}
//if (preg_match('/^MAIN_MODULE_/', $key)) {
//if (substr($key, 0, 12) == 'MAIN_MODULE_') {
if (strpos($key, 'MAIN_MODULE_') === 0) {
print "Found\n";
}
$i++;
}
$b = microtime(true);
print $b - $a."\n";