]> git.nbdom.net Git - nb.git/commitdiff
benchmark
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 16 Mar 2016 00:26:00 +0000 (00:26 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 16 Mar 2016 00:26:00 +0000 (00:26 +0000)
lib/php/benchmark.php

index deea73a1dabe1a43043c8486446d63dbea73a269..a6d011f3abaa68ffe0ec93a6ce1e2ff24e7da88e 100755 (executable)
@@ -23,7 +23,7 @@ function __f2($ar) { return; foreach ($ar as $v) { 1; } }
 $array = array_fill(0,100000,"a");
 #if (function_exists('__f1')) { function _f1() { __f1($array); } nb::benchmark('_f1'); }
 #if (function_exists('__f2')) { function _f2() { __f2($array); } nb::benchmark('_f2'); }
-function _f1() { echo null; } nb::benchmark('_f1');
+function _f1() { file_exists('/tm'); } nb::benchmark('_f1');
 function _f2() { echo ''; } nb::benchmark('_f2');
 
 nb::benchmark(); exit;