mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 22:30:47 +00:00
add benchmark
This commit is contained in:
parent
3a10d377ef
commit
cacbb11b7c
6
day-01/benchmark
Normal file
6
day-01/benchmark
Normal 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
|
11
day-01/main_internal_test.go
Normal file
11
day-01/main_internal_test.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func BenchmarkMain(b *testing.B) {
|
||||||
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
|
main()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user