aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks/atomic-set/stm.go
blob: 24aa95d0802ce71b6232f6de6bc150eadc2f258d (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"
	"time"
)



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

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

	for i := 0; i < n; i++ {
		time.Sleep(time.Millisecond * 1)
	}
}