2. LOAD IMPACT
Mark Meier
Client Success, Team Lead
Load Impact
Agenda
● Load Testing 101
● Test execution models- Local & Cloud
● Challenges of managing cloud
infrastructure for load testing
● Cloud execution, data collection and
results analysis (with Demo)John Emmitt
Director of Product Marketing
Load Impact
3. LOAD IMPACT
Why do performance testing?
73% said there is a “need to improve quality
and performance” of applications
[Source: InterOp 2018 State of DevOps Report]
4. LOAD IMPACT
Performance Testing 101 - What is it?
Test the performance of your
website, web app, API under load
● Virtual Users
● Requests / sec
● Find and fix performance
bottlenecks
● Continuous testing is key
Virtual Users
5. LOAD IMPACT
Benefits of Performance Testing
Ecommerce Site:
Prepare for a high traffic event to:
● Reduce abandonment
● Sell more!
SaaS Application:
● Lower infrastructure
costs
● Improve customer
satisfaction
APIs / Microservices
● Meet SLAs
● Ensure resiliency
SaaS
6. LOAD IMPACT
k6 - Open source load testing tool
● Built for developers & QA
testers
● Built in Go, scripting in JavaScript
ES6
● > 4000 GitHub Stars!
● Local & Cloud Execution
● Fits nicely into DevOps
workflows / automation
pipelines
7. LOAD IMPACT
Creating load tests for k6 - 2 Options
Create user scenario
scripts in IDE
ES6 JavaScript
● A single .js file
can define the
whole test
● Tests can also
be modular /
multi-file
Use your favorite
editor / IDE or Load
Impact’s IDE
Convert browser
activity from HAR file
1 2
8. LOAD IMPACT
k6 load test execution modes
Local execution
(k6 run -o cloud script.js)
Cloud execution
(k6 cloud script.js)
9. LOAD IMPACT
Local Execution - for Developers
Smaller tests
Behind the firewall
Fast turn-around
FIREWALL
Internet
11. LOAD IMPACT
Manage your own cloud infrastructure?
Capacity Requirements
● How many instances needed?
General VM / Container Orchestration
● Spinning Instances Up / Down
Load Testing Considerations
● Load generator synchronization
● Data collection across multiple instances
12. LOAD IMPACT
Running load tests with k6
Run tests locally or in
the cloud using k6 CLI
Create user scenario
scripts
Analyze results in
Load Impact Insights
13. LOAD IMPACT
Automate performance testing
● Automate testing via CI
tool integration
● Developers can load test
early in the dev cycle
● Shorten time-to-market