Skip to content

Instantly share code, notes, and snippets.

@claar
Created February 2, 2016 18:48
Show Gist options
  • Save claar/6ea72454477fc1afb7c8 to your computer and use it in GitHub Desktop.
Save claar/6ea72454477fc1afb7c8 to your computer and use it in GitHub Desktop.
Quick benchmark of Laravel with and without compiled.php optimization - conclusion: no perceived benefit within my Vagrant environment.
## RUN 1 - no compiled.php, no xdebug
Concurrency Level: 1
Time taken for tests: 10.028 seconds
Complete requests: 500
Failed requests: 0
Non-2xx responses: 500
Total transferred: 674222 bytes
HTML transferred: 174000 bytes
Requests per second: 49.86 [#/sec] (mean)
Time per request: 20.055 [ms] (mean)
Time per request: 20.055 [ms] (mean, across all concurrent requests)
Transfer rate: 65.66 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 17 20 9.4 18 138
Waiting: 17 20 9.4 18 138
Total: 17 20 9.4 19 138
Percentage of the requests served within a certain time (ms)
50% 19
66% 19
75% 19
80% 20
90% 21
95% 22
98% 46
99% 62
100% 138 (longest request)
## RUN 2 - no compiled.php, no xdebug
Concurrency Level: 1
Time taken for tests: 10.493 seconds
Complete requests: 500
Failed requests: 0
Non-2xx responses: 500
Total transferred: 674074 bytes
HTML transferred: 174000 bytes
Requests per second: 47.65 [#/sec] (mean)
Time per request: 20.987 [ms] (mean)
Time per request: 20.987 [ms] (mean, across all concurrent requests)
Transfer rate: 62.73 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 16 21 17.1 18 342
Waiting: 16 21 17.1 18 342
Total: 17 21 17.1 18 342
Percentage of the requests served within a certain time (ms)
50% 18
66% 19
75% 19
80% 20
90% 21
95% 24
98% 67
99% 72
100% 342 (longest request)
## RUN 3 - compiled.php, no xdebug
Concurrency Level: 1
Time taken for tests: 10.509 seconds
Complete requests: 500
Failed requests: 0
Non-2xx responses: 500
Total transferred: 674184 bytes
HTML transferred: 174000 bytes
Requests per second: 47.58 [#/sec] (mean)
Time per request: 21.019 [ms] (mean)
Time per request: 21.019 [ms] (mean, across all concurrent requests)
Transfer rate: 62.65 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 15 21 13.4 19 197
Waiting: 15 21 13.4 18 197
Total: 15 21 13.4 19 197
Percentage of the requests served within a certain time (ms)
50% 19
66% 19
75% 20
80% 20
90% 22
95% 24
98% 89
99% 103
100% 197 (longest request)
## RUN 4 - compiled.php, no xdebug
Concurrency Level: 1
Time taken for tests: 10.191 seconds
Complete requests: 500
Failed requests: 0
Non-2xx responses: 500
Total transferred: 673982 bytes
HTML transferred: 174000 bytes
Requests per second: 49.06 [#/sec] (mean)
Time per request: 20.382 [ms] (mean)
Time per request: 20.382 [ms] (mean, across all concurrent requests)
Transfer rate: 64.59 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 16 20 14.5 18 186
Waiting: 16 20 14.5 18 186
Total: 16 20 14.5 18 186
Percentage of the requests served within a certain time (ms)
50% 18
66% 19
75% 19
80% 19
90% 20
95% 22
98% 43
99% 116
100% 186 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment