From b72519311a86a44348dc29a17e4d27a533f2d5b7 Mon Sep 17 00:00:00 2001 From: "Moe Charm (CI)" Date: Thu, 27 Nov 2025 13:48:21 +0900 Subject: [PATCH] Bench: Include params in output to prevent measurement confusion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Output now shows: Throughput = XXX ops/s [iter=N ws=M] time=Xs This prevents confusion when comparing results measured with different workset sizes (e.g., ws=256 gives 67M ops/s vs ws=8192 gives 18M ops/s). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- bench_random_mixed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench_random_mixed.c b/bench_random_mixed.c index 2efb036f..2a8dd0f6 100644 --- a/bench_random_mixed.c +++ b/bench_random_mixed.c @@ -137,7 +137,8 @@ int main(int argc, char** argv){ uint64_t end = now_ns(); double sec = (double)(end-start)/1e9; double tput = (double)cycles / (sec>0.0?sec:1e-9); - printf("Throughput = %9.0f operations per second, relative time: %.3fs.\n", tput, sec); + // Include params in output to avoid confusion about test conditions + printf("Throughput = %9.0f ops/s [iter=%d ws=%d] time=%.3fs\n", tput, cycles, ws, sec); (void)allocs; (void)frees; // Box BenchMeta: Use __libc_free to bypass hakmem wrapper