aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks/builtin-map-set/pds.go
blob: 0e2ea79f5204eb16092bc576c871ac3bd727f0ee (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_000,
	"The number of iterations to execute",
)

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

	m := map[int]int{}
	for i := 0; i < n; i++ {
		m[i] = i
	}
}