aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks/sortedmap-builder-set/pds.go
blob: a354c4297fccfd9aad4b3c4288f0e554a92fe9c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package pds

import (
	"flag"
)



var nFlag = flag.Int(
	"n",
	1_000,
	"The number of iterations to execute",
)

func MainTest() {
	flag.Parse()
	n := *nFlag

	builder := NewSortedMapBuilder[int, int](nil)
	for i := 0; i < n; i++ {
		builder.Set(i, i)
	}
}