Skip to content

Instantly share code, notes, and snippets.

@volonterx
Last active November 3, 2017 01:30
Show Gist options
  • Select an option

  • Save volonterx/dbd2ae6c3501fd5132c62f484463034e to your computer and use it in GitHub Desktop.

Select an option

Save volonterx/dbd2ae6c3501fd5132c62f484463034e to your computer and use it in GitHub Desktop.
Unicorn vs Puma performance comparison (via ab)
ab -kl -n 100 -c 10 https:...
Server: 2 CPU, 4Gb RAM, SSD, Ubuntu 12.04 LTS, Ruby 2.2.4
################################################# unicorn 5.3, 1 worker, pool 25
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 31 92.4 0 338
Processing: 1294 8470 1500.6 8601 11080
Waiting: 1074 8251 1504.6 8388 10890
Total: 1570 8500 1442.3 8601 11080
Percentage of the requests served within a certain time (ms)
50% 8601
66% 8793
75% 8879
80% 8905
90% 10086
95% 10793
98% 11020
99% 11080
100% 11080 (longest request)
################################################# unicorn 5.3, 2 workers, pool 25
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 31 93.0 0 327
Processing: 1355 4602 644.5 4634 5631
Waiting: 1167 4399 643.3 4427 5433
Total: 1632 4632 598.0 4634 5828
Percentage of the requests served within a certain time (ms)
50% 4634
66% 4845
75% 4941
80% 5013
90% 5271
95% 5484
98% 5631
99% 5828
100% 5828 (longest request)
################################################# puma3.9, 2 workers 0:10, pool 25
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 31 92.5 0 332
Processing: 1258 5254 2894.8 5061 12464
Waiting: 1060 5047 2893.8 4851 12263
Total: 1258 5285 2891.5 5090 12464
Percentage of the requests served within a certain time (ms)
50% 5090
66% 6154
75% 6852
80% 7681
90% 10099
95% 11007
98% 11935
99% 12464
100% 12464 (longest request)
################################################# puma3.9, 2 workers 0:20, pool 40
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 32 97.0 0 343
Processing: 1534 5232 1745.1 5381 9147
Waiting: 1332 5021 1743.9 5167 8930
Total: 1827 5264 1738.7 5381 9147
Percentage of the requests served within a certain time (ms)
50% 5381
66% 6194
75% 6442
80% 6920
90% 7555
95% 7922
98% 9023
99% 9147
100% 9147 (longest request)
################################################# puma3.9, 2 workers 0:30, pool 70
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 32 96.6 0 361
Processing: 1206 5338 2464.3 5632 9989
Waiting: 979 5108 2460.5 5405 9762
Total: 1206 5370 2471.4 5632 10092
Percentage of the requests served within a certain time (ms)
50% 5632
66% 6776
75% 7570
80% 7885
90% 8685
95% 9129
98% 9989
99% 10092
100% 10092 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment