Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
505 B

  1. #!/bin/sh
  2. set -eu
  3. export POSIXLY_CORRECT=1
  4. num=1000000
  5. seq=seq
  6. if [ -x /usr/bin/jot ]; then
  7. seq=jot
  8. fi
  9. rm -f perf_*.log
  10. for i in `$seq 10`; do
  11. /usr/bin/time st -e $seq $num 2>>perf_0.log
  12. done
  13. for i in `$seq 10`; do
  14. /usr/bin/time st -e ./ptty $seq $num 2>>perf_1.log
  15. done
  16. for i in `$seq 10`; do
  17. /usr/bin/time st -e ./ptty ./ptty $seq $num 2>>perf_2.log
  18. done
  19. for i in `$seq 10`; do
  20. /usr/bin/time st -e ./ptty ./ptty ./ptty $seq $num 2>>perf_3.log
  21. done