summaryrefslogtreecommitdiff
path: root/2022/01/calories/elfs_test.go
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-02-26 23:26:57 +0100
committerMike Vink <mike1994vink@gmail.com>2023-02-26 23:26:57 +0100
commit35ba4364313f82643332bf10d96740deaa366bea (patch)
tree27219f146a5b2e39485294bffc4b0386c96b641b /2022/01/calories/elfs_test.go
parent975cb8653cd64b5f26c71339e7ec3151d077ba5e (diff)
add testsmain
Diffstat (limited to '2022/01/calories/elfs_test.go')
-rw-r--r--2022/01/calories/elfs_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/2022/01/calories/elfs_test.go b/2022/01/calories/elfs_test.go
new file mode 100644
index 0000000..ca7ee65
--- /dev/null
+++ b/2022/01/calories/elfs_test.go
@@ -0,0 +1,18 @@
+package calories
+
+import (
+ "testing"
+
+ . "github.com/onsi/ginkgo/v2"
+)
+
+var _ = Describe("Elfs", func() {
+})
+
+var data = make([]int, 1000000)
+
+func BenchmarkSum(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ sum(data)
+ }
+}