From da0019e2981cbb05c2ab4dc5f3a7f82ad4f16c71 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 20 Dec 2024 22:29:47 +0400 Subject: [PATCH] fix: alias didn't work --- main.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/main.sh b/main.sh index 2cb97b6..691eb09 100755 --- a/main.sh +++ b/main.sh @@ -57,35 +57,33 @@ echo echo '==> Starting Unbound' unbound -c ./unbound.conf -dp 2>unbound.log & unbound_pid=$! -sleep 2 +sleep 4 -alias bench='hyperfine -N -w 40' - echo echo '==> Benchmarks for A domain.tld.' -bench \ +hyperfine -N -w 30 \ "$exe_dig -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" echo echo '==> Benchmarks for AAAA domain.tld.' -bench \ +hyperfine -N -w 30 \ "$exe_dig -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" echo echo '==> Benchmarks for MX domain.tld.' -bench \ +hyperfine -N -w 30 \ "$exe_dig -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" echo echo '==> Benchmarks for CNAME mail.domain.tld.' -bench \ +hyperfine -N -w 30 \ "$exe_dig -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"