summaryrefslogtreecommitdiff
path: root/2022/01/calories/elfs_test.go
blob: ca7ee6557b231a784e50797fcb7b9ae6d0c34355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
	}
}