Load testingRuby Talks #928.01.2016Mateusz Bielec
View Slide
Agenda2▪ What?▪ Why?▪ Where?▪ How?
Welcome to PGSLOAD TESTING - WHAT IS IT?3
Welcome to PGSPERFORMANCE BENCHMARKINGHow is my app performing and how does that compare with the past?4
Welcome to PGSLOAD TESTINGHow does my app’s behavior change with a lot of users?5
Welcome to PGSSTRESS TESTINGWhat happens when my app gets swamped?6
Welcome to PGSLOAD TESTING - WHY?7
Welcome to PGS▪ Improve site speed and server performance▪ Knowing the limits and bottlenecksWHY?8
Welcome to PGSLOAD TESTING - WHERE?9
Welcome to PGS 10Source: https://memegenerator.net/instance/22605665
Welcome to PGS 11Source: https://memegenerator.net/instance/63826237
Welcome to PGSLOAD TESTING - HOW?12
Welcome to PGSAPACHE BENCHhttps://httpd.apache.org/docs/2.2/programs/ab.html13
ab -n 10 -c 3 http://www.pgs-soft.com/
POST request
Cookie
Welcome to PGSAPI BOMBhttps://github.com/vasilakisfil/api_bomb17
Welcome to PGS▪ Written in Ruby▪ Multiple configuration options▪ Dynamic parameters▪ Still in developmentAPI BOMB18
Global settings
Single and multiple request
Output
Dynamic endpoints
Dynamic probability
Welcome to PGS▪ Load testing is required to check performance and find bottlenecks▪ ApacheBench is simple and powerful▪ ApiBomb for Rubyists ;)Summary24
QUESTIONS?
PGS Software S.A.Tel.: +48 71 79 82 692 Fax: +48 71 79 82 690 E-mail: [email protected]www.pgs-soft.com