Skip to content

Instantly share code, notes, and snippets.

View dadvir's full-sized avatar
👨‍💻
in the ZONE

Yuki Dvir dadvir

👨‍💻
in the ZONE
View GitHub Profile
@dadvir
dadvir / bench.sh
Last active November 30, 2021 10:24 — forked from james2doyle/bench.sh
A website benchmarking script using Apache ab. This script hits a target with requests and then generates a small report for each case.
#!/usr/bin/env bash
# if you are testing a base url, you need a trailing slash
SITE="http://example.com/"
OUTFILE=${1:-output.txt}
new_line() {
echo -e "" >>$OUTFILE
}