You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: priv/partials/readme_content.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,16 @@ All commands should work from then on.
26
26
27
27
run `mix test` to ensure all solutions are working okay. To run test for a particular year and day, type `mix test --only y<last-two-digits-of-year><zero-padded-day>`. For example: `mix test --only y1501` tests for `2015` as year and `1` as day.
28
28
29
+
## Benchmarking
30
+
31
+
To benchmark solutions and update the [Benchmarks](BENCHMARKS.md) report, use the provided script:
32
+
33
+
-`scripts/gen_benchmark.py`: Runs all solved problems across all years.
34
+
-`scripts/gen_benchmark.py <year>`: Benchmarks all days for a specific year.
35
+
-`scripts/gen_benchmark.py <year> <day>`: Benchmarks a single problem (useful after a new solve).
36
+
37
+
The script saves results to a persistent JSON file at `priv/data/benchmark.json`, allowing you to update specific results without re-running everything.
38
+
29
39
## Updating README and Stats
30
40
31
41
If you want to update the `README.md` (i.e. this file) please do not update `README.me` directly, instead update the static content (not stats related) on `priv/partials/readme_content.md` and then run `mix readme` to regenerate this file.
0 commit comments