scroll

scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log | Files | Refs | README | LICENSE

perf.sh (505B)


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