> On 21 Oct 2014, at 09:35, Dmitry Stogov <dmi...@zend.com> wrote: > > I expect, it'll make some slowdown for all PHP scripts, independently, if > they use BIGINT or not. > I'll try to take a deeper look into the patch later... > > Could you provide some benchmark results, comparing your patch with master?
I finally made the requested benchmarks. There’s barely a noticeable difference, though the bigint branch is apparently marginally faster (most likely from getting rid of fast_increment_function): master bigint 0.344788074 0.339091063 0.34658289 0.361176014 0.376623154 0.346175194 0.35006094 0.359763861 0.352533817 0.341754198 0.354025841 0.357409 0.360356092 0.379124165 0.367921829 0.351316929 0.370724916 0.373735189 0.351090908 0.346349001 0.355952978 0.356275797 average 0.357332858 0.355651855 (Times in seconds, smaller is better.) Script: <?php $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { $a = 2 * 3; $b = $a - 3; $c = $a * $b; $d = $c / $c; } $end = microtime(true); echo "took ", $end - $start, " secs\n”; ?> I ran the script several times, then took the results and put them into Excel to produce the above table with its averages. So common scripts are either unaffected, or will run ever-so-slightly faster. -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php