Added a temp shell script to compare our instruction counts vs. Microsoft's. trunk
authorRyan C. Gordon <icculus@icculus.org>
Tue, 03 Jun 2008 14:37:10 -0400
branchtrunk
changeset 357 4b267433af82
parent 356 8e23d7eb90d9
child 358 f63e18cf642f
Added a temp shell script to compare our instruction counts vs. Microsoft's.
counts.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/counts.sh	Tue Jun 03 14:37:10 2008 -0400
@@ -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
+