summaryrefslogtreecommitdiff
path: root/2022/01/calories/elfs_test.go
diff options
context:
space:
mode:
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)
+ }
+}