[hackers] [scroll] perf: replace jot by $seq and set posix var for getopt(3) || Jan Klemkow
commit b539656abde01eaf06fb7c427aae35546c233a08
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Sun May 3 22:43:17 2020 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Sun May 3 22:43:17 2020 +0200
perf: replace jot by $seq and set posix var for getopt(3)
diff --git a/perf.sh b/perf.sh
index b6d514c..ab1fb21 100755
--- a/perf.sh
+++ b/perf.sh
_AT_@ -2,6 +2,7 @@
set -eu
+export POSIXLY_CORRECT=1
num=1000000
seq=seq
_AT_@ -12,17 +13,17 @@ fi
rm -f perf_*.log
for i in `$seq 10`; do
- /usr/bin/time st -e jot $num 2>>perf_0.log
+ /usr/bin/time st -e $seq $num 2>>perf_0.log
done
for i in `$seq 10`; do
- /usr/bin/time st -e ./ptty jot $num 2>>perf_1.log
+ /usr/bin/time st -e ./ptty $seq $num 2>>perf_1.log
done
for i in `$seq 10`; do
- /usr/bin/time st -e ./ptty ./ptty jot $num 2>>perf_2.log
+ /usr/bin/time st -e ./ptty ./ptty $seq $num 2>>perf_2.log
done
for i in `$seq 10`; do
- /usr/bin/time st -e ./ptty ./ptty ./ptty jot $num 2>>perf_3.log
+ /usr/bin/time st -e ./ptty ./ptty ./ptty $seq $num 2>>perf_3.log
done
Received on Sun May 03 2020 - 22:44:16 CEST
This archive was generated by hypermail 2.3.0
: Sun May 03 2020 - 22:48:37 CEST