mirror of
https://github.com/Crocmagnon/fat-contexts-article-companion.git
synced 2024-12-21 13:51:47 +01:00
add smaller sample sizes in benchmark
This commit is contained in:
parent
59fdc7e792
commit
cfc153f9da
1 changed files with 4 additions and 1 deletions
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue