BACK TO TEMPLATES
promptany
Latency and Throughput Benchmark Suite Prompt
Prompt for generating performance benchmarking scripts measuring ops/sec, p50/p99 latency, and RAM usage.
When to use this
Use this prompt to build automated performance micro-benchmarking scripts in Node.js, Python, Rust, or Go.
The template
Generate an automated benchmarking script in `[LANGUAGE]` measuring execution performance for the target implementation. Requirements: 1. Measure operations per second (ops/sec), p50, p90, p95, and p99 execution latency distributions. 2. Track peak heap memory allocation before and after benchmarking runs. 3. Include a warmup phase to ensure JIT/VM optimization stabilization. 4. Output results in a Markdown table format. Implementation Code: ```[LANGUAGE] [PASTE CODE HERE] ```
How to use
Run when measuring execution speed improvements between code revisions.
Last verified 2026-07-26