Generates a full-featured Go CLI for HTTP load testing.
Create a high-performance HTTP benchmarking tool in Go. Implement concurrent request generation with configurable thread count. Add detailed statistics including latency, throughput, and error rates. Include support for HTTP/1.1, HTTP/2, and HTTP/3. Implement custom header and cookie management. Add request templating for dynamic content. Include response validation with regex and status code checking. Implement TLS configuration with certificate validation options. Add load profile configuration with ramp-up and steady-state phases. Include detailed reporting with percentiles and histograms. Implement distributed testing mode for high-load scenarios.
This prompt directs an AI to write a complete high-performance HTTP benchmarking tool in Go. The resulting code includes concurrency controls, multi-protocol support, statistics, templating, and distributed testing capabilities. Users receive ready-to-compile source that can be extended for custom benchmarking needs.
A complete main.go file implementing the described features, including command-line flags for threads, duration, and ramp-up, plus formatted percentile reports.
It produces Go source code that must be compiled first.
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by f. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.