mirror of
https://github.com/Crocmagnon/fat-contexts-article-companion.git
synced 2024-12-21 22:01: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 (
|
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},
|
||||||
|
|
Loading…
Reference in a new issue