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 (
"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},