fix benchmark for daysix package

This commit is contained in:
onyx-and-iris 2024-12-06 20:12:08 +00:00
parent 567ca72402
commit df605fba15
3 changed files with 31 additions and 2 deletions

View File

@ -1 +1,15 @@
? github.com/onyx-and-iris/aoc2024/day-06 [no test files]
goos: linux
goarch: amd64
pkg: github.com/onyx-and-iris/aoc2024/day-06
cpu: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
BenchmarkSolve-12 1 1815042506 ns/op
BenchmarkSolve-12 1 1670139306 ns/op
BenchmarkSolve-12 1 1708459605 ns/op
BenchmarkSolve-12 1 1687274507 ns/op
BenchmarkSolve-12 1 1722070212 ns/op
BenchmarkSolve-12 1 1728997012 ns/op
BenchmarkSolve-12 1 1738883012 ns/op
BenchmarkSolve-12 1 1686811712 ns/op
BenchmarkSolve-12 1 1701938016 ns/op
BenchmarkSolve-12 1 1701384522 ns/op
ok github.com/onyx-and-iris/aoc2024/day-06 17.190s

View File

@ -1,4 +1,4 @@
package name
package daysix
import (
"github.com/onyx-and-iris/aoc2024/day-06/internal/one"

View File

@ -0,0 +1,15 @@
package daysix
import (
_ "embed"
"os"
"testing"
)
//go:embed testdata/input.txt
var data []byte
func BenchmarkSolve(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull)
Solve(data)
}