Skip to content

Latest commit

 

History

History
executable file
·
9 lines (7 loc) · 361 Bytes

counts.sh

File metadata and controls

executable file
·
9 lines (7 loc) · 361 Bytes
 
1
2
3
4
5
6
7
8
#!/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