# Brian Boucheron - An Introduction to Load Testing (Highlights) ![rw-book-cover|256](https://readwise-assets.s3.amazonaws.com/static/images/article2.74d541386bbf.png) ## Metadata **Cover**:: https://readwise-assets.s3.amazonaws.com/static/images/article2.74d541386bbf.png **Source**:: #from/readwise **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[Brian Boucheron]] **Full Title**:: An Introduction to Load Testing **Category**:: #articles #readwise/articles **Category Icon**:: 📰 **URL**:: [www.digitalocean.com](https://www.digitalocean.com/community/tutorials/an-introduction-to-load-testing) **Host**:: [[www.digitalocean.com]] **Highlighted**:: [[2021-02-12]] **Created**:: [[2022-09-26]] ## Highlights - web performance optimization - Latency is a measure of how fast a server responds to requests from the client. - Throughput is how many requests the server can handle during a specific time interval, usually reported as requests per second. - Percentiles are a way of grouping results by their percentage of the whole sample set. - Load Testing Basics - A common use of load testing software is to find the maximum requests per second that a server can handle. - Step 1 — Monitoring Resources - Step 2 — Finding the Maximum Response Rate - Step 3 — Find the Maximum Practical Throughput - If yes, walk the rate back up towards the maximum, testing as you go until your latency is at the maximum value you’ve determined to be acceptable. - when measuring latency you should be looking at something like the 99th or even the 99.999th percentile to ensure that all of your users are regularly experiencing response times that are under your maximum acceptable threshold. - ab (also known as ApacheBench) is a simple, single-threaded command line tool for benchmarking an HTTP server. - JMeter is a powerful and feature-rich load testing and functional testing app from the Apache Software Foundation. - Siege is another command line load testing tool - Siege is multithreaded - Locust is a Python-based load testing tool with a real-time web UI for monitoring results - wrk2 is a multi-threaded command line load testing tool that’s capable of producing load at a specified requests rate.