From 6c4eb1aa31b670d32910d4881b0801eac8265057 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 3 Nov 2024 10:15:49 -0300 Subject: Setup Makefile project structure with empty src/urubu.go source --- tests/benchmarks/never-matching-lexer/urubu.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/benchmarks/never-matching-lexer/urubu.go (limited to 'tests/benchmarks/never-matching-lexer/urubu.go') 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) + } +} -- cgit v1.2.3