P
Pulse Post
A tiny, zero-dependency keep-alive JSON POST load tester in Python for checking API headroom under concurrency.
pulsepost is a lightweight, zero-dependency Python utility designed to perform rapid JSON POST load testing. Running as a single-file script, it uses Python’s native thread and HTTP libraries to spawn concurrent workers that keep TCP/TLS connections alive, allowing developers to quickly check API headroom, request latencies, and response error rates without deploying massive load testing frameworks.
Key Features of pulsepost
- Zero Dependencies: Runs on vanilla Python 3 installations using only standard built-in libraries like
http.clientandthreading. - Persistent Keep-Alive Connections: Reuses TCP/TLS sockets across worker iterations to measure true application performance rather than connection handshake latencies.
- Customizable Payload Generation: Simulates dynamic request payloads by injecting random integer values into configured post body keys.
- Built-in CLI Summary: Calculates and prints execution summaries including average, median, p90, and p99 response times alongside status code distributions.
Benefits of Using pulsepost
- Immediate Benchmarking: Bootstraps basic API concurrency tests in seconds with a single command.
- Accurate Connection Reuse Testing: Simulates realistic client behavior by avoiding the high overhead of socket re-establishment.
- Ultra-Lightweight Footprint: Requires no heavy runtime dependencies, node packages, or complex configuration files.
For backend developers and api designers, pulsepost provides an indispensable tool for quick sanity testing, enabling immediate validation of endpoint capacity and connection handling limits under concurrency.
Tags:
Python GistJSON POSTLoad TestingKeep-AliveLightweight


