add benchmark

This commit is contained in:
onyx-and-iris 2024-12-01 18:25:08 +00:00
parent 3a10d377ef
commit cacbb11b7c
2 changed files with 17 additions and 0 deletions

6
day-01/benchmark Normal file
View File

@ -0,0 +1,6 @@
goos: linux
goarch: amd64
pkg: github.com/onyx-and-iris/aoc2024/day-01
cpu: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
BenchmarkMain-12 1000000000 0.001628 ns/op
ok github.com/onyx-and-iris/aoc2024/day-01 0.015s

View File

@ -0,0 +1,11 @@
package main
import (
"os"
"testing"
)
func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull)
main()
}