cswap 537 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #! /bin/awk -f
  2. BEGIN {
  3. purpose = "report time used by int only and int+fp cswaps";
  4. nmach = 0;
  5. test_int = "7";
  6. test_fp = "8";
  7. }
  8. {
  9. mach = $1
  10. test = $2
  11. iter = $3
  12. time = $6 + $8
  13. if (machi[mach] == 0) {
  14. machn[nmach] = mach;
  15. machi[mach] = 1;
  16. ++nmach;
  17. }
  18. us_per_op = time / iter * 1000000
  19. times[mach "_" test] = us_per_op;
  20. }
  21. END {
  22. for (i=0; i<nmach; ++i) {
  23. m = machn[i];
  24. integer = times[m "_" test_int];
  25. fp = times[m "_" test_fp];
  26. printf ("%s|%3.1f|%3.1f\n", m, integer, fp);
  27. }
  28. }