Parallel HTTP request execution
- Takes values from a text file and converts them into HTTP requests (against an echo service with a request execution time of 150ms - 200ms).
- splits the text file into chunks of
$CHUNKSnumber of items which get executed in sequence by a single
curlinvocation that reuses the connection (reducing TCP and TLS overhead)
$PARALLELnumber of chunks are executed concurrently by
sem(of GNU parallel)
The demo generates
100 requests. Each request's response is stored to disk (because why not).