diff options
author | EuAndreh <eu@euandre.org> | 2024-11-03 10:15:49 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-11-19 19:10:45 -0300 |
commit | 6c4eb1aa31b670d32910d4881b0801eac8265057 (patch) | |
tree | 85fc6f0615fb503317da6782d073fa127bc71e60 /tests/benchmarks/never-matching-lexer/urubu.go | |
parent | Add byte position to nodes of a syntax tree (diff) | |
download | cotia-6c4eb1aa31b670d32910d4881b0801eac8265057.tar.gz cotia-6c4eb1aa31b670d32910d4881b0801eac8265057.tar.xz |
Setup Makefile project structure with empty src/urubu.go source
Diffstat (limited to 'tests/benchmarks/never-matching-lexer/urubu.go')
-rw-r--r-- | tests/benchmarks/never-matching-lexer/urubu.go | 24 |
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) + } +} |