Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added a temp shell script to compare our instruction counts vs. Micro…
…soft's.

--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 3, 2008
1 parent 7dadb98 commit 3c9e340
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions counts.sh
@@ -0,0 +1,9 @@
#!/bin/sh

for feh in ??_?_?/*.bytecode ; do
echo -n "$feh "
echo -n `./testparse glsl $feh |grep "INSTRUCTION COUNT: " |perl -w -p -e 's/\AINSTRUCTION COUNT://;'`
echo -n " vs. "
grep "instruction slots used" `echo $feh |perl -w -p -e 's/bytecode\Z/disasm/;'` |perl -w -p -e 's#\A// approximately (\d+) instruction slots used .*?\Z#$1#;'
done

0 comments on commit 3c9e340

Please sign in to comment.