aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks/interface-add64/stm.go
blob: a6e95a3244e2f596e33d60f80c8c6988a53aac0f (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 stm

import (
	"flag"
)



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

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

	var v Int[int64] = NewInt64(0)
	for i := 0; i < n; i++ {
		v.Add(1)
	}
}