Skip to content
Draft
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
26 changes: 15 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,29 @@ RESULTS := cpp/results
SCRIPTS := cpp/scripts
NPROC := $(shell sysctl -n hw.ncpu 2>/dev/null || nproc)

.PHONY: build run plot cms-point-query clean
.PHONY: build cms-point-query cms-point-query-plot clean

# Build the C++ binary
build:
@mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) && cmake .. && make -j$(NPROC)

# Run CMS point query profile and generate plot
# Run CMS point query profile (all 3 skew regimes) and generate plots
cms-point-query: build
$(BINARY) cms-point-query > $(RESULTS)/cms_point_query.tsv
uv run $(SCRIPTS)/plot_cms_point_query.py $(RESULTS)/cms_point_query.tsv cms_point_query_error.svg
$(BINARY) cms-point-query
uv run $(SCRIPTS)/plot_cms_point_query.py \
$(RESULTS)/cms_point_query_high_skew.tsv \
$(RESULTS)/cms_point_query_medium_skew.tsv \
$(RESULTS)/cms_point_query_low_skew.tsv
@echo "Generated: cms_point_query_error.svg cms_rel_error_vs_freq_rank.svg"

# Just rebuild and run (no plot)
run: build
$(BINARY) cms-point-query > $(RESULTS)/cms_point_query.tsv

# Just regenerate the plot from existing TSV
plot:
uv run $(SCRIPTS)/plot_cms_point_query.py $(RESULTS)/cms_point_query.tsv cms_point_query_error.svg
# Just regenerate plots from existing TSV files
cms-point-query-plot:
uv run $(SCRIPTS)/plot_cms_point_query.py \
$(RESULTS)/cms_point_query_high_skew.tsv \
$(RESULTS)/cms_point_query_medium_skew.tsv \
$(RESULTS)/cms_point_query_low_skew.tsv
@echo "Generated: cms_point_query_error.svg cms_rel_error_vs_freq_rank.svg"

clean:
rm -rf $(BUILD_DIR)
6,271 changes: 6,271 additions & 0 deletions cpp/results/cms_point_query_high_skew.tsv

Large diffs are not rendered by default.

8,203 changes: 8,203 additions & 0 deletions cpp/results/cms_point_query_low_skew.tsv

Large diffs are not rendered by default.

8,203 changes: 8,203 additions & 0 deletions cpp/results/cms_point_query_medium_skew.tsv

Large diffs are not rendered by default.

Loading