From cfc153f9da8ca0505cb22f8c20d8e8fd980e183d Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 18 Mar 2024 10:10:31 +0100 Subject: [PATCH] add smaller sample sizes in benchmark --- bench_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bench_test.go b/bench_test.go index 92f8a6d..16c36d3 100644 --- a/bench_test.go +++ b/bench_test.go @@ -3,8 +3,9 @@ package main_test import ( "context" "fmt" - "math/rand/v2" "testing" + + "math/rand/v2" ) const key = "key" @@ -13,6 +14,8 @@ func BenchmarkContext(b *testing.B) { benchmarks := []struct { times uint64 }{ + {10}, + {100}, {1_000}, {10_000}, {100_000},