Advertisement
Guest User

Test script for cev/bev/lut

a guest
Dec 23rd, 2015
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1.  
  2. #!/bin/bash
  3.  
  4. OUTPUT=${1}
  5.  
  6. runtest() {
  7.   g++ -DS=1 -DSTR_SIZE=${1} -DSET_SIZE=${2} -DUNITS=nanoseconds -O3 -std=c++11 -march=native dectohex.cpp -o d2h && taskset -c 0 ./d2h | sed -e 's/mean:/,/g' -e 's/nanoseconds//g' -e 's/error:/,/g' -e 's/ //g' -e 's/Total://g' -e 's/)/),/g' -e 's/-//g' -e 's/\t//g' >> ${3}
  8. }
  9.  
  10. runtest 16 100 ${OUTPUT}
  11. runtest 32 100 ${OUTPUT}
  12. runtest 64 100 ${OUTPUT}
  13. runtest 256 100 ${OUTPUT}
  14. runtest 1024 100 ${OUTPUT}
  15. runtest 2048 100 ${OUTPUT}
  16. runtest 4192 100 ${OUTPUT}
  17. runtest 8192 100 ${OUTPUT}
  18. runtest 12384 100 ${OUTPUT}
  19.  
  20. grep ${OUTPUT} -e CEV -e BEV -e LUT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement