Skip to content

bench: average simple harnesses over k runs (default 3)#81

Merged
mmurshed merged 1 commit into
mainfrom
bench/k-averaged-runs
May 31, 2026
Merged

bench: average simple harnesses over k runs (default 3)#81
mmurshed merged 1 commit into
mainfrom
bench/k-averaged-runs

Conversation

@mmurshed

Copy link
Copy Markdown
Owner

What

multperf_simple and divperf_simple now time each size k times and report the arithmetic mean instead of a single run. k is read from argv[1], default 3, clamped to ≥1.

./multperf_simple 5   # avg of 5 runs per size
./divperf_simple 5

Correctness validation still runs (products / quotients matched limb-for-limb; results are identical across runs).

Docs

  • README: documents the k flag on both simple harnesses.
  • BENCHMARK.md: new "In-tree simple harnesses (k-averaged, no GMP)" section with fresh k=5 numbers (2026-05-31, M1 Max, -O2). Existing GMP-comparison tables from bench_vs_gmp.cpp are untouched — different harness/methodology.

🤖 Generated with Claude Code

multperf_simple and divperf_simple now time each size k times and report
the arithmetic mean. k is read from argv[1], default 3, clamped to >=1.
Correctness validation still runs (results identical across runs).

Document the k flag in README and add a k=5 results section to BENCHMARK.md
(in-tree harness numbers, no GMP).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mmurshed mmurshed merged commit 8fc64f7 into main May 31, 2026
4 of 5 checks passed
@mmurshed mmurshed deleted the bench/k-averaged-runs branch May 31, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant