

from __future__ import annotations

import csv
from pathlib import Path

from experiments import run_experiments, save_results_csv
from plot_results import build_graphs, load_average_results


def main():
    rows = run_experiments(n=10000, buckets_count=2048, repeats=5)
    save_results_csv(rows, "results.csv")
    averaged = load_average_results("results.csv")
    build_graphs(averaged, output_dir="docs/data")
    print("Done.")


if __name__ == "__main__":
    main()
