O'Reilly logo

Adopting Elixir by Jose Valim, Bruce Tate, Ben Marx

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Load Testing

Load testing is the process of determining the system behavior under load. Ideally, you want to run load tests against an environment that closely matches your production environment. You might use a staging environment or a production build from your continuous integration pipeline.

For simplicity, we will run tests against a production version of our Phoenix application running on our development machine. This scenario is not ideal since the load tester itself will compete with the Phoenix app for machine resources but it is good enough to get started and build an expectation of the system behavior. At the end of this section we will cover other tools that will provide better end-to-end testing.

Load Testing with wrk

The tool ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required