Unicorn vs-puma
Transcript of Unicorn vs-puma
![Page 1: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/1.jpg)
Сверчков Николай
Racoons Group
![Page 2: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/2.jpg)
Предыдущие результатыhttp://ylan.segal-family.com/blog/2013/05/20/unicorn-vs-puma-redux/
![Page 3: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/3.jpg)
![Page 4: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/4.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Development env+ NewRelic
![Page 5: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/5.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 ?
Development env+ NewRelic
![Page 6: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/6.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 ?
Development env+ NewRelic
![Page 7: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/7.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 2.700
Puma + Ruby 2.1.0 ?
Development env + NewRelic
![Page 8: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/8.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 2.700
Puma + Ruby 2.1.0 4.300 ?
Development env+ NewRelic
![Page 9: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/9.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 2.700
Puma + Ruby 2.1.0 4.300 2.300
Development env+ NewRelic
![Page 10: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/10.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 2.700
Puma + Ruby 2.1.0 4.300 2.300
Unicorn + Ruby 2.1.0
Development env+ NewRelic
![Page 11: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/11.jpg)
Переход на jruby
Отвалившиеся Gem’ы:
debugger
binding_of_caller
pg
unicorn
![Page 12: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/12.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 2.700
Puma + Ruby 2.1.0 4.300 2.300
Webrick + jruby1.7.9 ?
Development env+ NewRelic
![Page 13: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/13.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 2.700
Puma + Ruby 2.1.0 4.300 2.300
Webrick + jruby1.7.9 12.800 ?
Development env+ NewRelic
![Page 14: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/14.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 2.700
Puma + Ruby 2.1.0 4.300 2.300
Webrick + jruby1.7.9 12.800 6.700
Puma + jruby1.7.9(8:32)
Development env+ NewRelic
![Page 15: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/15.jpg)
1 запрос(ms) 2 запрос(ms)
Webrick + Ruby 1.9.3-p374 7.500 4.500
Webrick + Ruby 2.1.0 4.600 2.700
Puma + Ruby 2.1.0 4.300 2.300
Webrick + jruby1.7.9 12.800 6.700
Puma + jruby1.7.9(8:32) 12.650 6.500
Development env+ NewRelic
![Page 16: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/16.jpg)
RAILS_ENV=production
siege –b –c$USER_COUNT –t$TIMEs $URL
![Page 17: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/17.jpg)
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
Ruby – 2.1.0 jruby – 1.7.9
Unicorn
![Page 18: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/18.jpg)
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
Ruby – 2.1.0 jruby – 1.7.9
Unicorn Puma(8:32)
![Page 19: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/19.jpg)
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
Ruby – 2.1.0 jruby – 1.7.9
Unicorn Puma(8:32) Puma(0:16)
![Page 20: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/20.jpg)
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
Ruby – 2.1.0 jruby – 1.7.9
Unicorn Puma(8:32) Puma(0:16)Puma(0:16)
![Page 21: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/21.jpg)
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
0
100
200
300
400
500
600
700
800
900
1000
1100
1200
1300
1400
1500
1600
1700
2 4 8 16 32 64 128 256 350
resp
on
se
Ruby – 2.1.0 jruby – 1.7.9
Unicorn Puma(8:32) Puma(0:16)Puma(0:16) Puma(0:16)-W3
![Page 22: Unicorn vs-puma](https://reader034.fdocument.pub/reader034/viewer/2022042614/55a569b01a28ab43638b45e3/html5/thumbnails/22.jpg)
Спасибо за внимание!