package stm import ( "flag" "fmt" "sync/atomic" ) var nFlag = flag.Int( "n", 1_000, "The number of iterations to execute", ) func MainTest() { flag.Parse() n := *nFlag v := atomic.Value{} for i := 0; i < n; i++ { v.Store(fmt.Sprint(i)) } }