Benchmarking KUSANAGI
So, is KUSANAGI actually that fast? Let’s compare the benchmark results to the performance of the WordPress tuning environment we used before.
First, we will use the ab command to check the requests per second of the four possible combinations of web servers Nginx 1.11 and Apache 2.4, with PHP processors HHVM 3.15 and PHP 7.0 (without page caching).
(1) KUSANAGI Benchmark: Apache + PHP 7
Switch KUSANAGI’s middleware configuration to Apache and PHP 7.
kusanagi httpd kusanagi php7
The command to switch KUSANAGI’s middleware to Apache and PHP 7.
Use the ab command. Execute the following command five times at ten second intervals. Using the ab command several times with intervals in between is a warm-up and increases the accuracy of the test.
ab -n 300 -c 30 http://ec2-xxx.xxx.compute.amazonaws.com/
(From here on, “xxx” replaces the address particular to each user)
In my environment, the fifth ab command produced these results:
[root@ip-~]# ab -n 300 -c 30 http://primestrategyus.com/
This is ApacheBench, Version 2.3 <$Revision: 1748469 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking primestrategyus.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests
Server Software: Apache
Server Hostname: primestrategyus.com
Server Port: 80
Document Path: /
Document Length: 11077 bytes
Concurrency Level: 30
Time taken for tests: 1.744 seconds
Complete requests: 300
Failed requests: 0
Total transferred: 3403500 bytes
HTML transferred: 3323100 bytes
Requests per second: 172.06 [#/sec] (mean)
Time per request: 174.358 [ms] (mean)
Time per request: 5.812 [ms] (mean, across all concurrent requests)
Transfer rate: 1906.27 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 0
Processing: 76 169 23.8 173 222
Waiting: 76 169 23.8 173 222
Total: 77 169 23.8 173 222
Percentage of the requests served within a certain time (ms)
50% 173
66% 178
75% 181
80% 184
90% 190
95% 197
98% 203
99% 213
100% 222 (longest request)
Benchmark results
The result was 172.06 requests per second.