Advertisement
teknoraver

tryall

Nov 27th, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. echo 'hash,time' >try.csv
  4.  
  5. hashes=$(git log --format=format:%h --reverse v1.2.8^..FETCH_HEAD)
  6. for h in $hashes; do
  7.     git reset --hard $h
  8.     git show -s --format=format:%h >>try.csv
  9.     make clean
  10.     CFLAGS='-march=native -O3' ./configure --static --const
  11.     make -s -j4
  12.     for i in . . . ; do
  13.         sleep 20
  14.         t=$(command time -f '%e' ./minigzip64 -9 <linux-4.14.1.tar 2>&1 >/dev/null)
  15.         echo -n ",$t" >>try.csv
  16.     done
  17.     echo >>try.csv
  18. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement