Browse Source

reproducing plots

avadapal 2 years ago
parent
commit
0da97fc107
1 changed files with 27 additions and 0 deletions
  1. 27 0
      repro/reproduce_plots

+ 27 - 0
repro/reproduce_plots

@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# Replace "python3" with your Python interpreter if needed
+DS="Heap" 
+Operation="Extract" 
+output=$(python3 extract_data.py out2)
+# Read the output into an array
+IFS=$'\n' read -d '' -r -a values <<< "$output"
+
+# Store each value in different variables
+heapsize=${values[0]}
+optimization_flag=${values[1]}
+insert_wc=${values[2]}
+insert_bw=${values[3]}
+extract_wc=${values[4]}
+extract_bw=${values[5]}
+datafile="data"
+# Print the values to verify
+echo "heapsize: $heapsize"
+echo "is_optimized: $optimization_flag"
+echo "insert heaps, wallclock : $insert_wc"
+echo "insert heaps, bw: $insert_bw"
+echo "extract heaps, wallclock: $extract_wc"
+echo "extract heaps, bw: $extract_bw"
+
+python3 append-experiment-results.py $datafile $DS $Operation $optimization_flag $heapsize $insert_wc
+