tasks_size_overhead.gp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. OUTPUT=tasks_size_overhead.output
  3. VALS=$(sed -n -e '3p' < $OUTPUT)
  4. VAL1=$(echo "$VALS" | cut -d ' ' -f 3)
  5. VAL2=$(echo "$VALS" | cut -d ' ' -f 5)
  6. VAL3=$(echo "$VALS" | cut -d ' ' -f 7)
  7. VAL4=$(echo "$VALS" | cut -d ' ' -f 9)
  8. VAL5=$(echo "$VALS" | cut -d ' ' -f 11)
  9. VAL6=$(echo "$VALS" | cut -d ' ' -f 13)
  10. VAL7=$(echo "$VALS" | cut -d ' ' -f 15)
  11. VAL8=$(echo "$VALS" | cut -d ' ' -f 17)
  12. VAL9=$(echo "$VALS" | cut -d ' ' -f 19)
  13. VAL10=$(echo "$VALS" | cut -d ' ' -f 21)
  14. VAL11=$(echo "$VALS" | cut -d ' ' -f 23)
  15. gnuplot << EOF
  16. set terminal eps
  17. set output "tasks_size_overhead.eps"
  18. set key top left
  19. set xlabel "number of cores"
  20. set ylabel "speedup"
  21. plot \
  22. "$OUTPUT" using 1:($VAL1)/(\$3) with linespoints title columnheader(2), \
  23. "$OUTPUT" using 1:($VAL2)/(\$5) with linespoints title columnheader(4), \
  24. "$OUTPUT" using 1:($VAL3)/(\$7) with linespoints title columnheader(6), \
  25. "$OUTPUT" using 1:($VAL4)/(\$9) with linespoints title columnheader(8), \
  26. "$OUTPUT" using 1:($VAL5)/(\$11) with linespoints title columnheader(10), \
  27. "$OUTPUT" using 1:($VAL6)/(\$13) with linespoints title columnheader(12), \
  28. "$OUTPUT" using 1:($VAL7)/(\$15) with linespoints title columnheader(14), \
  29. "$OUTPUT" using 1:($VAL8)/(\$17) with linespoints title columnheader(16), \
  30. "$OUTPUT" using 1:($VAL9)/(\$19) with linespoints title columnheader(18), \
  31. "$OUTPUT" using 1:($VAL10)/(\$21) with linespoints title columnheader(20), \
  32. "$OUTPUT" using 1:($VAL11)/(\$23) with linespoints title columnheader(22), \
  33. x title "linear"
  34. EOF