Skip to content
Permalink
Browse files
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 3c9e3409a5e2b576a7c37ecc616e488157da8e00
Showing with 9 additions and 0 deletions.
  1. +9 −0 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.