Skip to content

Instantly share code, notes, and snippets.

View alexvaque's full-sized avatar

Alex Vaque alexvaque

View GitHub Profile
@alexvaque
alexvaque / benchmark.sh
Created July 27, 2017 10:13 — forked from emersonmoretto/benchmark.sh
Apache bench + Gnuplot Script
#!/bin/bash
echo -e "\nbenchmark.sh -n<number of requests> -c<number of concurrency> <URL1> <URL2> ..."
echo -e "\nEx: benchmark.sh -n100 -c10 http://www.google.com/ http://www.bing.com/ \n"
## Gnuplot settings
echo "set terminal png
set output 'benchmark_${1}_${2}.png'
set title 'Benchmark: ${1} ${2}'