Skip to content

Commit

Permalink
Fail if missmatch between native and vm
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Dec 5, 2024
1 parent 9aba898 commit a300476
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plotting/plot_execution_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@ def process_row(row):
.agg(
total_time=("time", "sum"),
mean_time=("time", "mean"),
samples=("time", "size"),
)
.unstack("executor")
)
data.columns = data.columns.map("_".join)

if (data["samples_native"] != data["samples_vm"]).any():
raise Exception("Native and VM should have the same number of samples")

# calculate speedup
data["speedup"] = data["total_time_vm"] / data["total_time_native"]

Expand Down

0 comments on commit a300476

Please sign in to comment.