aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmarks/never-matching-lexer/urubu.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/never-matching-lexer/urubu.go')
-rw-r--r--tests/benchmarks/never-matching-lexer/urubu.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/benchmarks/never-matching-lexer/urubu.go b/tests/benchmarks/never-matching-lexer/urubu.go
new file mode 100644
index 0000000..9186769
--- /dev/null
+++ b/tests/benchmarks/never-matching-lexer/urubu.go
@@ -0,0 +1,24 @@
+package urubu
+
+import (
+ "flag"
+ "time"
+)
+
+
+
+var nFlag = flag.Int(
+ "n",
+ 1_000,
+ "The number of iterations to execute",
+)
+
+func MainTest() {
+ // FIXME
+ flag.Parse()
+ n := *nFlag
+
+ for i := 0; i < n; i++ {
+ time.Sleep(time.Millisecond * 1)
+ }
+}