assim 750 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #! /bin/awk -f
  2. BEGIN {
  3. nmach = 0;
  4. init_test = "1";
  5. abort_test = "6";
  6. blocki_test = "7";
  7. block_test = "8";
  8. }
  9. {
  10. mach = $1
  11. test = $2
  12. iter = $3
  13. time = $6 + $8
  14. if (machi[mach] == 0) {
  15. machn[nmach] = mach;
  16. machi[mach] = 1;
  17. ++nmach;
  18. }
  19. us_per_op = time / iter * 1000000
  20. times[mach "_" test] = us_per_op;
  21. }
  22. END {
  23. for (i=0; i<nmach; ++i) {
  24. m = machn[i];
  25. init = times[m "_" init_test];
  26. printf ("init %s | %f\n", m, init);
  27. init_abort_blocki = times[m "_" abort_test];
  28. abort_blocki = init_abort_blocki - init;
  29. blocki = times[m "_" blocki_test];
  30. abort = abort_blocki - blocki;
  31. blockf = times[m "_" block_test];
  32. printf ("swap %s | %f | %f | %f\n", m, abort, blocki, blockf);
  33. }
  34. }