Tagged articles
Locust
35 articles · Page 1 of 1
This practical guide compares open-source load testing tools (JMeter, Locust, k6, Artillery), details script development with realistic user behavior and data injection, explains environment isolation via traffic labeling and shadow databases, and teaches multi-dimensional result analysis beyond basic TPS metrics.
ArtilleryCI/CDJMeter
0 likes · 10 min read

Based on 27 real projects across finance, healthcare, and government, this article compares JMeter, k6, Gatling, Locust, and Artillery across programmability, observability, scalability, and engineering integration, revealing why k6 and Locust excel in cloud-native DevOps while JMeter remains viable for Java-heavy teams.
DevOpsGatlingJMeter
0 likes · 7 min read

This article provides a collection of fifteen ready‑to‑use performance‑testing templates covering web page load, API peak load, database slow‑query, cache‑break, file‑upload bandwidth, WebSocket connections, microservice latency, OAuth2 flow, message‑queue lag, memory‑leak detection, SSL/TLS handshake, container CPU limits, and chaos‑mesh failover, each with clear objectives, tools, and sample code.
LocustPlaywrightload-testing
0 likes · 20 min read

This guide presents ten ready‑to‑use Python scripts covering API testing with Requests, data‑driven tests using DDT, Selenium UI automation, Locust performance testing, unified logging, pytest‑Allure reporting, CSV data handling, SMTP email alerts, Git automation, and coverage measurement, each with installation tips.
APILocustPython
0 likes · 9 min read

This guide walks through installing HttpRunner and Locust, creating a simple YAML test case, converting it to a Locust script, running load tests, customizing behavior, and analyzing performance metrics to evaluate API reliability under load.
APIHttpRunnerLocust
0 likes · 5 min read

This guide explains how to set up and run Locust load tests for WebSocket connections and Redis interactions in Python, including client implementations, heartbeat simulation, and practical tips for resource management and concurrency control.
LocustPythonRedis
0 likes · 5 min read

This guide outlines essential Locust load‑testing practices, covering resource and error handling, realistic user behavior simulation, distributed test setup, environment consistency, monitoring and reporting, security considerations, and systematic performance bottleneck identification.
Distributed TestingLocustPython
0 likes · 5 min read

This article explains how to use Locust's command‑line options, configure scripts with wait_time and task weighting, create custom clients, and apply advanced settings such as catch_response and lifecycle hooks to perform precise load testing of web applications.
LocustPythoncommand-line
0 likes · 5 min read

Locust provides a built‑in web UI for real‑time monitoring of metrics such as RPS, average response time, failures, and active users, supports headless CSV export for deeper analysis, and allows custom statistics via event listeners in your test scripts, enabling comprehensive user access reporting.
CSV exportLocustPerformance Monitoring
0 likes · 5 min read

This guide explains how to configure custom HTTP request headers in Locust for GET, POST, and shared header scenarios, providing code examples, best practices for security, dynamic updates, and error handling to ensure effective load testing of APIs.
HTTPHeadersLocust
0 likes · 4 min read

This tutorial explains how to install Locust, write Python scripts with HttpUser tasks for GET and POST requests, run the tool, configure the web UI, and apply advanced features like custom headers, cookies, and response handling for effective load testing.
HTTP requestsLocustload-testing
0 likes · 5 min read

This article demonstrates how to integrate SQL database interactions into Locust, a performance testing framework, using Python's mysql-connector-python library to execute read/write operations, enabling data validation and test data retrieval within load testing scenarios.
LocustSQLbackend development
0 likes · 3 min read

This guide explains how to use Locust to add query parameters to GET requests and send JSON or form‑encoded data in POST requests, including combined examples with custom headers for comprehensive HTTP request configuration.
GETHTTPLocust
0 likes · 4 min read

This guide explains how to leverage Locust's built‑in statistics and reporting features to monitor HTTP requests in real time via its web UI, export results as CSV files, customize metric collection in scripts, and analyze the data with external tools.
CSV exportLocustPerformance Monitoring
0 likes · 5 min read

This article explains how to implement exception handling in Locust to ensure robust test scripts that can handle network timeouts, request failures, and other exceptions effectively.
HTTP requestsLocustPython
0 likes · 4 min read

This article demonstrates how to use Python's standard file handling libraries within Locust load‑testing scripts to read, write, and upload files, including example code, best‑practice tips, exception handling, and concurrency considerations for reliable file operations during performance testing.
LocustPythonfile operations
0 likes · 5 min read

This guide explains how to integrate multiple custom clients in Locust, covering the definition of client classes for HTTP and WebSocket, their use within a user class, configuration of run parameters, and important considerations such as resource management and exception handling.
Custom ClientHTTPLocust
0 likes · 6 min read

This article explains how to configure Locust’s user spawn rate—the number of virtual users started per second—using command‑line options or the Web interface, includes example commands, steps to launch the service, and considerations for dynamic adjustment and test safety.
CLILocustUser Spawn Rate
0 likes · 4 min read

The article explains Locust's event system, detailing common events such as init, test_start, test_stop, request_success, request_failure, quitting, worker_report, and hatch_complete, and provides Python code examples for attaching listeners to customize load‑testing behavior.
Event SystemLocustPerformance Monitoring
0 likes · 4 min read

This guide demonstrates how to add WebSocket support to Locust by installing the websockets library, creating a custom WebSocket client class, defining user tasks, handling connection events, and running the load test against a WebSocket server.
LocustPythonWebSocket
0 likes · 5 min read

This guide explains how to install Locust, write a Python test script, launch the tool, configure load parameters, analyze real‑time results, and explore advanced features such as custom clients and distributed testing for web performance evaluation.
LocustPythonWeb Performance
0 likes · 4 min read

This guide explains how to accelerate applications by deploying Alibaba Cloud Tair (Redis‑compatible) as a cache, covering account setup, one‑click resource stack deployment, cache validation, Locust performance testing, result analysis, and resource cleanup to handle high‑traffic scenarios efficiently.
Alibaba CloudCacheLocust
0 likes · 8 min read

Learn how to deploy Alibaba Cloud Tair (Redis) with ECS and RDS, verify caching functionality, conduct Locust performance tests, and clean up resources, all through a step‑by‑step guide that demonstrates significant latency reduction and database load mitigation.
Alibaba CloudLocustRedis
0 likes · 7 min read

This article explains why full‑link performance testing is essential for e‑commerce systems, provides step‑by‑step Python Locust scripts to simulate user actions such as login, product browsing and ordering, shows how to run the tests, and demonstrates multi‑domain testing with weighted tasks.
LocustPythonload-testing
0 likes · 6 min read

The article describes the background, architecture, tool selection, key features, implementation challenges (including Go code for TCP/WebSocket handling), and real‑world deployment of a distributed simulation load‑testing platform that supports dynamic QPS control, multi‑protocol testing, and end‑to‑end data verification.
GoLocustSimulation
0 likes · 8 min read

The article explains performance testing as a non‑functional testing activity within continuous testing, describes its various types, compares process/thread/coroutine execution models, evaluates tools like LoadRunner, JMeter and Locust, and outlines desired features for container‑friendly performance testing solutions.
CI/CDDevOpsJMeter
0 likes · 9 min read

This article explains what performance testing is, when to conduct it, typical scenarios, step‑by‑step execution—including requirements, test design, tool selection, script examples with Locust, result analysis, and key metrics such as throughput, response time, P90, and optimal concurrency.
JMeterLocustload-testing
0 likes · 27 min read

This article benchmarks four load‑testing frameworks—JMeter, k6, Locust, and FunTester—across multiple concurrency levels, measuring CPU, memory, QPS and response time to reveal each tool’s strengths, weaknesses, and scalability limits.
FunTesterJMeterLocust
0 likes · 11 min read

This article introduces the Python‑based Locust load‑testing framework, explains its event‑driven architecture, weight‑based task distribution, command‑line and web UI operation, distributed execution, and practical usage patterns, then evaluates its advantages, drawbacks, and suitability for performance testing projects.
Distributed TestingLocustPython
0 likes · 10 min read

This article introduces Locust, an open‑source Python load‑testing framework, explains how to install it (including optional pyzmq for distributed mode), describes its core components, walks through a sample test script with database integration, and shows how to run and interpret results via the web UI or command line.
Distributed TestingLocustPython
0 likes · 7 min read

This article explains load testing fundamentals, including its purpose, key performance indicators such as TPS and response time, detailed testing steps, scenario design considerations, a practical example, common issue analysis, and an overview of tools like JMeter and Locust.
JMeterLocustScenario Design
0 likes · 6 min read


ITPUBJun 12, 2017 · Operations
This article explains why load testing is essential, compares three popular tools—ab, wrk, and Locust—including their command‑line usage and key parameters, and offers practical tips and additional options for accurate performance testing.
Locustabload-testing
0 likes · 7 min read

This article compares JMeter, LoadRunner, Locust, asyncio (Python) and Go-based load testing tools by measuring CPU, memory, Nginx response and TPS under varying concurrency levels, concluding that Go delivers the highest throughput while Python coroutines offer significant improvements over older Python versions.
JMeterLocustasyncio
0 likes · 10 min read

This article explains how to containerize Locust's distributed load‑testing mode using Docker, detailing image design, environment‑variable configuration, master‑slave networking, and example commands to run a scalable testing setup on Linux systems.
ContainerizationDockerLocust
0 likes · 5 min read

This article introduces Locust, a Python‑based load‑testing framework, explains its origins, and provides a detailed solution for sharing account data among users and hooking the stop event to restore data, including code snippets and event‑handling explanations.
Event HookLocustPython
0 likes · 5 min read
