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 full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  7. Welcome to PGS
    LOAD TESTING - WHY?
    7

    View full-size slide

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

    View full-size slide

  9. Welcome to PGS
    LOAD TESTING - WHERE?
    9

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  12. Welcome to PGS
    LOAD TESTING - HOW?
    12

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  15. POST request

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  18. Global settings

    View full-size slide

  19. Single and multiple request

    View full-size slide

  20. Dynamic endpoints

    View full-size slide

  21. Dynamic probability

    View full-size slide

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

    View full-size slide

  23. 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 full-size slide