reproduce_plots 792 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # Replace "python3" with your Python interpreter if needed
  3. DS="Heap"
  4. Operation="Extract"
  5. output=$(python3 extract_data.py out2)
  6. # Read the output into an array
  7. IFS=$'\n' read -d '' -r -a values <<< "$output"
  8. # Store each value in different variables
  9. heapsize=${values[0]}
  10. optimization_flag=${values[1]}
  11. insert_wc=${values[2]}
  12. insert_bw=${values[3]}
  13. extract_wc=${values[4]}
  14. extract_bw=${values[5]}
  15. datafile="data"
  16. # Print the values to verify
  17. echo "heapsize: $heapsize"
  18. echo "is_optimized: $optimization_flag"
  19. echo "insert heaps, wallclock : $insert_wc"
  20. echo "insert heaps, bw: $insert_bw"
  21. echo "extract heaps, wallclock: $extract_wc"
  22. echo "extract heaps, bw: $extract_bw"
  23. python3 append-experiment-results.py $datafile $DS $Operation $optimization_flag $heapsize $insert_wc