init 711 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #! /bin/awk -f
  2. BEGIN {
  3. purpose = "Report time used to initialize a thread."
  4. nmach = 0;
  5. test_single = "1";
  6. test_v0 = "14";
  7. test_v2 = "15";
  8. test_v4 = "16";
  9. test_v8 = "17";
  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. }