Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added figures/bbox-filtering_large_cost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_large_cost_breakdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_large_cost_vs_perf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_large_cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_large_cv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_large_median_bars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_large_network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_large_violin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_size_scaling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_small_cost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_small_cost_breakdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/bbox-filtering_small_cost_vs_perf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/bbox-filtering_small_cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/bbox-filtering_small_cv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/bbox-filtering_small_median_bars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/bbox-filtering_small_network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/bbox-filtering_small_violin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/coverage_heatmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/cross_workload_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/cross_workload_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figures/databricks_metrics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/knn-search_large_cost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/knn-search_large_cost_breakdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/knn-search_large_cost_vs_perf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/knn-search_large_cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figures/knn-search_large_cv.png
Binary file added figures/knn-search_large_median_bars.png
Binary file added figures/knn-search_large_network.png
Binary file added figures/knn-search_large_violin.png
Binary file added figures/knn-search_size_scaling.png
Binary file added figures/knn-search_small_cost.png
Binary file added figures/knn-search_small_cost_breakdown.png
Binary file added figures/knn-search_small_cost_vs_perf.png
Binary file modified figures/knn-search_small_cpu.png
Binary file modified figures/knn-search_small_cv.png
Binary file modified figures/knn-search_small_median_bars.png
Binary file modified figures/knn-search_small_network.png
Binary file modified figures/knn-search_small_violin.png
Binary file modified figures/national-scale-spatial-join_large_cpu.png
Binary file modified figures/national-scale-spatial-join_large_cv.png
Binary file modified figures/national-scale-spatial-join_large_median_bars.png
Binary file modified figures/national-scale-spatial-join_large_network.png
Binary file modified figures/national-scale-spatial-join_large_violin.png
Binary file added figures/national-scale-spatial-join_small_cv.png
Binary file added figures/point-in-polygon-lookup_large_cost.png
Binary file added figures/point-in-polygon-lookup_large_cpu.png
Binary file added figures/point-in-polygon-lookup_large_cv.png
Binary file added figures/point-in-polygon-lookup_large_violin.png
Binary file added figures/point-in-polygon-lookup_size_scaling.png
Binary file added figures/point-in-polygon-lookup_small_cost.png
Binary file modified figures/point-in-polygon-lookup_small_cpu.png
Binary file modified figures/point-in-polygon-lookup_small_cv.png
Binary file modified figures/point-in-polygon-lookup_small_median_bars.png
Binary file modified figures/point-in-polygon-lookup_small_network.png
Binary file modified figures/point-in-polygon-lookup_small_violin.png
Binary file modified figures/scaling_curve_large.png
Binary file added figures/scaling_curve_medium.png
Binary file added figures/scaling_curve_small.png
3,274 changes: 2,525 additions & 749 deletions rq1-analysis.ipynb

Large diffs are not rendered by default.

2,240 changes: 1,784 additions & 456 deletions rq2-analysis.ipynb

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .loading import (
enrich_costs,
enrich_samples,
extract_strategy,
extract_worker_count,
Expand All @@ -20,13 +21,15 @@
LATEX_COLUMN_RENAMES,
LATEX_INDEX_RENAMES,
build_consistency_table,
build_cost_summary,
build_cross_pass_table,
build_descriptive_table,
build_pairwise_table,
build_rq1_ranking,
build_scaling_table,
compact_descriptive_table,
format_consistency_table,
format_cost_table,
format_ranking_table,
split_pairwise_effects,
split_pairwise_significance,
Expand Down
21 changes: 21 additions & 0 deletions src/analysis/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,27 @@ def enrich_samples(
return samples_df


def enrich_costs(
costs_df: pd.DataFrame,
experiments: dict[str, dict],
workload_types: list[str],
) -> pd.DataFrame:
if costs_df.empty:
return costs_df

parsed = costs_df["query_id"].apply(
lambda qid: parse_query_id(qid, experiments, workload_types)
)
valid = parsed.notna()
costs_df = costs_df[valid].copy()
parsed = parsed[valid]

costs_df["workload_type"] = parsed.apply(lambda x: x[0])
costs_df["configuration"] = parsed.apply(lambda x: x[1])
costs_df["dataset_size"] = parsed.apply(lambda x: x[2])
return costs_df


def extract_worker_count(config: str) -> int | None:
m = re.search(r"(\d+)-nodes?", config)
return int(m.group(1)) if m else None
Expand Down
66 changes: 66 additions & 0 deletions src/analysis/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,72 @@ def _get_headline_median(qid: str, metric: str) -> float | None:
return table


COST_BREAKDOWN_COLS = [
"compute_cost",
"storage_cost",
"network_cost",
"operations_cost",
]


def build_cost_summary(
costs_df: pd.DataFrame,
) -> pd.DataFrame:
if costs_df.empty:
return pd.DataFrame()

group_keys = ["workload_type", "dataset_size", "configuration"]
agg = (
costs_df.groupby(group_keys + ["cost_type"])
.agg(
total_cost=("total_cost", "sum"),
compute_cost=("compute_cost", "sum"),
storage_cost=("storage_cost", "sum"),
network_cost=("network_cost", "sum"),
operations_cost=("operations_cost", "sum"),
)
.reset_index()
)

pivot = agg.pivot_table(
index=group_keys,
columns="cost_type",
values="total_cost",
aggfunc="sum",
fill_value=0.0,
)
pivot.columns = [f"cost_{ct}" for ct in pivot.columns]
pivot["total_cost"] = pivot.sum(axis=1)

breakdown = (
costs_df.groupby(group_keys)[COST_BREAKDOWN_COLS]
.sum()
)
result = pivot.join(breakdown)
return result.sort_index()


def format_cost_table(cost_summary: pd.DataFrame) -> pd.DataFrame:
if cost_summary.empty:
return cost_summary
df = cost_summary.copy()
df.index = df.index.rename(LATEX_INDEX_RENAMES)

usd_cols = [c for c in df.columns if "cost" in c]
for c in usd_cols:
df[c] = df[c].apply(lambda v: f"\\${v:.4f}" if not np.isnan(v) else "---")

renames = {
"total_cost": "Total (USD)",
"compute_cost": "Compute",
"storage_cost": "Storage",
"network_cost": "Network",
"operations_cost": "Operations",
}
df = df.rename(columns={k: v for k, v in renames.items() if k in df.columns})
return df


# ── LaTeX formatting helpers ───────────────────────────────────────────────

LATEX_COLUMN_RENAMES: dict[str, str] = {
Expand Down
4 changes: 4 additions & 0 deletions src/plotting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from .charts import (
plot_cost_bars,
plot_cost_breakdown,
plot_cost_performance,
plot_coverage_heatmap,
plot_cpu_breakdown,
plot_cross_workload,
plot_cv_iqr,
Expand Down
Loading
Loading