Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Load testing

mbie
January 28, 2016

Load testing

mbie

January 28, 2016
Tweet

More Decks by mbie

Other Decks in Programming

Transcript

  1. Load testing
    Ruby Talks #9
    28.01.2016
    Mateusz Bielec

    View Slide

  2. Agenda
    2
    ▪ What?
    ▪ Why?
    ▪ Where?
    ▪ How?

    View Slide

  3. Welcome to PGS
    LOAD TESTING - WHAT IS IT?
    3

    View Slide

  4. Welcome to PGS
    PERFORMANCE BENCHMARKING
    How is my app performing and how does that compare with the past?
    4

    View Slide

  5. Welcome to PGS
    LOAD TESTING
    How does my app’s behavior change with a lot of users?
    5

    View Slide

  6. Welcome to PGS
    STRESS TESTING
    What happens when my app gets swamped?
    6

    View Slide

  7. Welcome to PGS
    LOAD TESTING - WHY?
    7

    View Slide

  8. Welcome to PGS
    ▪ Improve site speed and server performance
    ▪ Knowing the limits and bottlenecks
    WHY?
    8

    View Slide

  9. Welcome to PGS
    LOAD TESTING - WHERE?
    9

    View Slide

  10. Welcome to PGS 10
    Source: https://memegenerator.net/instance/22605665

    View Slide

  11. Welcome to PGS 11
    Source: https://memegenerator.net/instance/63826237

    View Slide

  12. Welcome to PGS
    LOAD TESTING - HOW?
    12

    View Slide

  13. Welcome to PGS
    APACHE BENCH
    https://httpd.apache.org/docs/2.2/programs/ab.html
    13

    View Slide

  14. ab -n 10 -c 3 http://www.pgs-soft.com/

    View Slide

  15. POST request

    View Slide

  16. Cookie

    View Slide

  17. Welcome to PGS
    API BOMB
    https://github.com/vasilakisfil/api_bomb
    17

    View Slide

  18. Welcome to PGS
    ▪ Written in Ruby
    ▪ Multiple configuration options
    ▪ Dynamic parameters
    ▪ Still in development
    API BOMB
    18

    View Slide

  19. Global settings

    View Slide

  20. Single and multiple request

    View Slide

  21. Output

    View Slide

  22. Dynamic endpoints

    View Slide

  23. Dynamic probability

    View Slide

  24. Welcome to PGS
    ▪ Load testing is required to check performance and find bottlenecks
    ▪ ApacheBench is simple and powerful
    ▪ ApiBomb for Rubyists ;)
    Summary
    24

    View Slide

  25. QUESTIONS?

    View Slide

  26. PGS Software S.A.
    Tel.: +48 71 79 82 692

    Fax: +48 71 79 82 690

    E-mail: [email protected]
    www.pgs-soft.com

    View Slide