comparison tuning.sh @ 57:397089dccb32

Compile with -O2. Add tuning parameters and tuning results script
author Mike Pavone <pavone@retrodev.com>
date Sun, 15 Jul 2012 23:55:29 -0700
parents
children
comparison
equal deleted inserted replaced
54:a37ceb0a4f5c 57:397089dccb32
1 #!/bin/sh
2 echo $@ >> tuningresults.txt
3 echo >> tuningresults.txt
4
5 for file in maps/contest1.map maps/contest2.map maps/contest3.map maps/contest4.map maps/contest5.map maps/contest6.map maps/contest7.map maps/contest8.map; do
6 /usr/bin/time -f %E -o tuntiming.txt bin/lifter $@ < $file 2>tunout.txt
7 text=`tail -n 6 tunout.txt`
8 score=`echo $text | sed 's/.*score: \([0-9]*\).*/\1/'`
9 time=`cat tuntiming.txt`
10 echo "$file: $score ($time)";
11 echo "$file: $score ($time)" >> tuningresults.txt
12 done