LOAD IMPACT
Performance Testing
For Developers
LOAD IMPACT
Mark Meier
Client Success, Team Lead
Load Impact
Agenda
● Setting the Stage
● Q&A with Mark & Ragnar
● Audience Q&A
Ragnar Lonn
Load Impact Founder
LOAD IMPACT
Setting the Stage
Mobile App
● Standard REST API, running on
AWS
● Python Backend
● App is live, positive user growth
DevOps developer needs to load test
● Automated tests on staging
system
● High level performance goals
LOAD IMPACT
Q: Where should we start?
Start with Requirements
● Per Endpoint Goals
● Which endpoints are important?
● How do they affect user satisfaction?
Start Small
LOAD IMPACT
Q: Test script considerations?
Test Considerations
● Checks & Thresholds
● Sleep time
● Parameterization
LOAD IMPACT
Q: How long should my tests run?
API Testing
Requests per Second
5+ minutes
Website / Web App Testing
Virtual Users (VUs)
2-5+ complete iterations of the user
journey for ALL Virtual Users
Ramping VUs
LOAD IMPACT
Q: How do I interpret my test results?
● Exceeding defined Thresholds?
● Request rate should follow VUs
● Response time should stay stable
LOAD IMPACT
Q: What are the different types of load tests?
Baseline Tests-- Establish your Threshold Levels
Load Tests
Spike Tests
Stress Tests
Endurance Tests
Threshold
Threshold
LOAD IMPACT
Q: What else can performance testing tell me?
Performance Trends
● Has a code change introduced a performance
regression?
Infrastructure Issues
● Identify licensing, connection, memory, etc.
configuration issues
● Optimize your app to reduce SaaS
infrastructure costs
Performance Trend
Over Multiple Test Runs
LOAD IMPACT
Q: How often should I run tests?
Continuous Integration Pipeline
● Nightly builds - run small load
tests
● Other considerations for
DevOps and QA teams
LOAD IMPACT
Q: How can I ensure scalability of my testing process?
● Use your Version Control System (VCS)
● Modularization
● Collaboration
LOAD IMPACT
Learn More
k6 documentation: https://k6.io (join our slack team!
https://k6.io/slack/)
GitHub repo: https://github.com/loadimpact/k6
Load Impact Docs: https://support.loadimpact.com/4.0/
Load Impact Support - support@loadimpact.com
Try out k6 & Load Impact 4.0 with a free trial
LOAD IMPACT
Performance Testing for Developers
Thank you!

Performance testing for developers

  • 1.
  • 2.
    LOAD IMPACT Mark Meier ClientSuccess, Team Lead Load Impact Agenda ● Setting the Stage ● Q&A with Mark & Ragnar ● Audience Q&A Ragnar Lonn Load Impact Founder
  • 3.
    LOAD IMPACT Setting theStage Mobile App ● Standard REST API, running on AWS ● Python Backend ● App is live, positive user growth DevOps developer needs to load test ● Automated tests on staging system ● High level performance goals
  • 4.
    LOAD IMPACT Q: Whereshould we start? Start with Requirements ● Per Endpoint Goals ● Which endpoints are important? ● How do they affect user satisfaction? Start Small
  • 5.
    LOAD IMPACT Q: Testscript considerations? Test Considerations ● Checks & Thresholds ● Sleep time ● Parameterization
  • 6.
    LOAD IMPACT Q: Howlong should my tests run? API Testing Requests per Second 5+ minutes Website / Web App Testing Virtual Users (VUs) 2-5+ complete iterations of the user journey for ALL Virtual Users Ramping VUs
  • 7.
    LOAD IMPACT Q: Howdo I interpret my test results? ● Exceeding defined Thresholds? ● Request rate should follow VUs ● Response time should stay stable
  • 8.
    LOAD IMPACT Q: Whatare the different types of load tests? Baseline Tests-- Establish your Threshold Levels Load Tests Spike Tests Stress Tests Endurance Tests Threshold Threshold
  • 9.
    LOAD IMPACT Q: Whatelse can performance testing tell me? Performance Trends ● Has a code change introduced a performance regression? Infrastructure Issues ● Identify licensing, connection, memory, etc. configuration issues ● Optimize your app to reduce SaaS infrastructure costs Performance Trend Over Multiple Test Runs
  • 10.
    LOAD IMPACT Q: Howoften should I run tests? Continuous Integration Pipeline ● Nightly builds - run small load tests ● Other considerations for DevOps and QA teams
  • 11.
    LOAD IMPACT Q: Howcan I ensure scalability of my testing process? ● Use your Version Control System (VCS) ● Modularization ● Collaboration
  • 12.
    LOAD IMPACT Learn More k6documentation: https://k6.io (join our slack team! https://k6.io/slack/) GitHub repo: https://github.com/loadimpact/k6 Load Impact Docs: https://support.loadimpact.com/4.0/ Load Impact Support - support@loadimpact.com Try out k6 & Load Impact 4.0 with a free trial
  • 13.
    LOAD IMPACT Performance Testingfor Developers Thank you!