go 710 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #! /bin/awk -f
  2. BEGIN {
  3. purpose = "report times used for init/start/stop";
  4. nmach = 0;
  5. test_single = "6";
  6. test_v0 = "10";
  7. test_v2 = "11";
  8. test_v4 = "12";
  9. test_v8 = "13";
  10. }
  11. {
  12. mach = $1
  13. test = $2
  14. iter = $3
  15. time = $6 + $8
  16. if (machi[mach] == 0) {
  17. machn[nmach] = mach;
  18. machi[mach] = 1;
  19. ++nmach;
  20. }
  21. us_per_op = time / iter * 1000000
  22. times[mach "_" test] = us_per_op;
  23. }
  24. END {
  25. for (i=0; i<nmach; ++i) {
  26. m = machn[i];
  27. single = times[m "_" test_single];
  28. v0 = times[m "_" test_v0];
  29. v2 = times[m "_" test_v2];
  30. v4 = times[m "_" test_v4];
  31. v8 = times[m "_" test_v8];
  32. printf ("%s|%3.1f|%3.1f|%3.1f|%3.1f|%3.1f\n", m, single, v0, v2, v4, v8);
  33. }
  34. }