aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks/interface-add64
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/interface-add64')
l---------tests/benchmarks/interface-add64/main.go1
-rw-r--r--tests/benchmarks/interface-add64/stm.go23
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/benchmarks/interface-add64/main.go b/tests/benchmarks/interface-add64/main.go
new file mode 120000
index 0000000..f67563d
--- /dev/null
+++ b/tests/benchmarks/interface-add64/main.go
@@ -0,0 +1 @@
+../../main.go \ No newline at end of file
diff --git a/tests/benchmarks/interface-add64/stm.go b/tests/benchmarks/interface-add64/stm.go
new file mode 100644
index 0000000..a6e95a3
--- /dev/null
+++ b/tests/benchmarks/interface-add64/stm.go
@@ -0,0 +1,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)
+ }
+}