tsenart/vegeta — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Go based HTTP load testing tool that I can run from the terminal and also use as a Go library.

I want to give it one or more target requests, set a steady request rate and duration, then have it hit those URLs and save the raw results. After that I should be able to generate easy reports with latency, status codes, throughput, success rate, and errors. It should also be able to output JSON reports and create a simple HTML plot from a results file.

Make the command line feel pipe friendly, so I can do things like echo a request into an attack command, tee the results to a file, then pipe that file into report or plot. Please support common real world options like custom headers, request body files, timeouts, redirects, TLS settings, HTTP2, DNS settings, and writing output to a file.

Include clear usage examples, tests, and a clean README. Look up current Go docs if you need to.

Want more depth? Deep Reverse