This article will introduce to you the stress test comparison between PHP7 and 5.6. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
##Machine configuration
$ cat /proc/cpuinfo
$ cat /proc/version
Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013
Installation
$ yum install httpd-tools
Test system: Operation systemTest interface
$ ab -n 1000 -c 20 'http://xxx/path/to/url'
PHP7 result:
PHP5.6 Result:
The above is the detailed content of Take a look! The stress test comparison of PHP7 and 5.6 is here. For more information, please follow other related articles on the PHP Chinese website!