From a30047624451894bfd8c824197e006e7a85802eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Thu, 5 Dec 2024 16:16:28 -0300 Subject: [PATCH] Fail if missmatch between native and vm --- plotting/plot_execution_time.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plotting/plot_execution_time.py b/plotting/plot_execution_time.py index 00a0cec..bef5bf4 100644 --- a/plotting/plot_execution_time.py +++ b/plotting/plot_execution_time.py @@ -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"]