29 lines
505 B
Bash
Executable file
29 lines
505 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export POSIXLY_CORRECT=1
|
|
num=1000000
|
|
seq=seq
|
|
|
|
if [ -x /usr/bin/jot ]; then
|
|
seq=jot
|
|
fi
|
|
|
|
rm -f perf_*.log
|
|
|
|
for i in `$seq 10`; do
|
|
/usr/bin/time st -e $seq $num 2>>perf_0.log
|
|
done
|
|
|
|
for i in `$seq 10`; do
|
|
/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 $seq $num 2>>perf_2.log
|
|
done
|
|
|
|
for i in `$seq 10`; do
|
|
/usr/bin/time st -e ./ptty ./ptty ./ptty $seq $num 2>>perf_3.log
|
|
done
|