PHP benchmark php5 vs php7
mit diesem kleinen Script kann man gut sehen wie die Performance zwischen den php Versionen ist.
PHP5.5
[stextbox id=“grey“]
-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2017-03-14 11:22:03 Server : PHP version : 5.5.9-1ubuntu4.21 Platform : Linux -------------------------------------- test_math : 0.863 sec. test_stringmanipulation : 0.885 sec. test_loops : 0.598 sec. test_ifelse : 0.341 sec. -------------------------------------- Total time: : 2.687 sec.
[/stextbox]
PHP5.6
[stextbox id=“grey“]
-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2017-03-14 11:28:17 Server : PHP version : 5.6.30-7+deb.sury.org~xenial+1 Platform : Linux -------------------------------------- test_math : 0.918 sec. test_stringmanipulation : 0.874 sec. test_loops : 0.624 sec. test_ifelse : 0.354 sec. -------------------------------------- Total time: : 2.77 sec.
[/stextbox]
PHP7
[stextbox id=“grey“]
-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2017-03-14 11:22:02 Server : PHP version : 7.0.15-0ubuntu0.16.04.4 Platform : Linux -------------------------------------- test_ifelse : 0.167 sec. test_loops : 0.210 sec. test_stringmanipulation : 0.319 sec. test_math : 0.247 sec. -------------------------------------- Total time: : 0.943 sec.
[/stextbox]
das Script hab ich von hier.
Schreibe einen Kommentar