fix: alias didn't work
This commit is contained in:
parent
381c646172
commit
da0019e298
1 changed files with 5 additions and 7 deletions
12
main.sh
12
main.sh
|
@ -57,35 +57,33 @@ echo
|
||||||
echo '==> Starting Unbound'
|
echo '==> Starting Unbound'
|
||||||
unbound -c ./unbound.conf -dp 2>unbound.log &
|
unbound -c ./unbound.conf -dp 2>unbound.log &
|
||||||
unbound_pid=$!
|
unbound_pid=$!
|
||||||
sleep 2
|
sleep 4
|
||||||
|
|
||||||
|
|
||||||
alias bench='hyperfine -N -w 40'
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo '==> Benchmarks for A domain.tld.'
|
echo '==> Benchmarks for A domain.tld.'
|
||||||
bench \
|
hyperfine -N -w 30 \
|
||||||
"$exe_dig -p 2253 domain.tld @127.0.0.1" \
|
"$exe_dig -p 2253 domain.tld @127.0.0.1" \
|
||||||
"$exe_drill -p 2253 domain.tld @127.0.0.1" \
|
"$exe_drill -p 2253 domain.tld @127.0.0.1" \
|
||||||
"$exe_hr -n 127.0.0.1:2253 domain.tld"
|
"$exe_hr -n 127.0.0.1:2253 domain.tld"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo '==> Benchmarks for AAAA domain.tld.'
|
echo '==> Benchmarks for AAAA domain.tld.'
|
||||||
bench \
|
hyperfine -N -w 30 \
|
||||||
"$exe_dig -p 2253 aaaa domain.tld @127.0.0.1" \
|
"$exe_dig -p 2253 aaaa domain.tld @127.0.0.1" \
|
||||||
"$exe_drill -p 2253 aaaa domain.tld @127.0.0.1" \
|
"$exe_drill -p 2253 aaaa domain.tld @127.0.0.1" \
|
||||||
"$exe_hr -n 127.0.0.1:2253 -t AAAA domain.tld"
|
"$exe_hr -n 127.0.0.1:2253 -t AAAA domain.tld"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo '==> Benchmarks for MX domain.tld.'
|
echo '==> Benchmarks for MX domain.tld.'
|
||||||
bench \
|
hyperfine -N -w 30 \
|
||||||
"$exe_dig -p 2253 mx domain.tld @127.0.0.1" \
|
"$exe_dig -p 2253 mx domain.tld @127.0.0.1" \
|
||||||
"$exe_drill -p 2253 mx domain.tld @127.0.0.1" \
|
"$exe_drill -p 2253 mx domain.tld @127.0.0.1" \
|
||||||
"$exe_hr -n 127.0.0.1:2253 -t MX domain.tld"
|
"$exe_hr -n 127.0.0.1:2253 -t MX domain.tld"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo '==> Benchmarks for CNAME mail.domain.tld.'
|
echo '==> Benchmarks for CNAME mail.domain.tld.'
|
||||||
bench \
|
hyperfine -N -w 30 \
|
||||||
"$exe_dig -p 2253 mail.domain.tld @127.0.0.1" \
|
"$exe_dig -p 2253 mail.domain.tld @127.0.0.1" \
|
||||||
"$exe_drill -p 2253 mail.domain.tld @127.0.0.1" \
|
"$exe_drill -p 2253 mail.domain.tld @127.0.0.1" \
|
||||||
"$exe_hr -n 127.0.0.1:2253 mail.domain.tld"
|
"$exe_hr -n 127.0.0.1:2253 mail.domain.tld"
|
||||||
|
|
Loading…
Add table
Reference in a new issue