Top Banner
Сверчков Николай Racoons Group
22

Unicorn vs-puma

Jul 15, 2015

Download

Internet

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Unicorn vs-puma

Сверчков Николай

Racoons Group

Page 2: Unicorn vs-puma

Предыдущие результатыhttp://ylan.segal-family.com/blog/2013/05/20/unicorn-vs-puma-redux/

Page 3: Unicorn vs-puma
Page 4: Unicorn vs-puma

1 запрос(ms) 2 запрос(ms)

Webrick + Ruby 1.9.3-p374 7.500 4.500

Development env+ NewRelic

Page 5: Unicorn vs-puma

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

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

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

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

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

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

Переход на jruby

Отвалившиеся Gem’ы:

debugger

binding_of_caller

pg

unicorn

Page 12: Unicorn vs-puma

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

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

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

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

RAILS_ENV=production

siege –b –c$USER_COUNT –t$TIMEs $URL

Page 17: Unicorn vs-puma

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

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

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

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

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

Спасибо за внимание!