add smaller sample sizes in benchmark

This commit is contained in:
Gabriel Augendre 2024-03-18 10:10:31 +01:00
parent 59fdc7e792
commit cfc153f9da

View file

@ -3,8 +3,9 @@ package main_test
import ( import (
"context" "context"
"fmt" "fmt"
"math/rand/v2"
"testing" "testing"
"math/rand/v2"
) )
const key = "key" const key = "key"
@ -13,6 +14,8 @@ func BenchmarkContext(b *testing.B) {
benchmarks := []struct { benchmarks := []struct {
times uint64 times uint64
}{ }{
{10},
{100},
{1_000}, {1_000},
{10_000}, {10_000},
{100_000}, {100_000},