Skip to content

Instantly share code, notes, and snippets.

@bosky101
bosky101 / benchmark.sh
Last active August 29, 2015 13:58 — forked from emersonmoretto/benchmark.sh
benchmark a bunch of urls with POST and plot them in the same graph as points
#!/bin/bash
echo -e "\nbenchmark.sh <title> -n<number of requests> -c<number of concurrency> <URL1> <URL2> ..."
echo -e "\nEx: benchmark.sh example -n100 -c10 http://www.google.com/ http://www.bing.com/ will create benchmar-example-n100-c10.png\n"
## Gnuplot settings
echo "set terminal png
set output 'benchmark-${1}${2}${3}.png'
set title 'Benchmark: ${1} with ab ${2} ${3}'