mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-04-11 07:23:46 +01:00
Compare commits
2 Commits
e7aa98d637
...
b981b962a2
Author | SHA1 | Date | |
---|---|---|---|
b981b962a2 | |||
1ef43151b8 |
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ var files embed.FS
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
filename := flag.String("f", "input.txt", "input file")
|
filename := flag.String("f", "input.txt", "input file")
|
||||||
loglevel := flag.Int("l", int(log.InfoLevel), "log level (shorthand)")
|
loglevel := flag.Int("l", int(log.InfoLevel), "log level")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if slices.Contains(log.AllLevels, log.Level(*loglevel)) {
|
if slices.Contains(log.AllLevels, log.Level(*loglevel)) {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
//go:embed testdata/input.txt
|
//go:embed testdata/input.txt
|
||||||
var data []byte
|
var data []byte
|
||||||
|
|
||||||
func BenchmarkMain(b *testing.B) {
|
func BenchmarkSolve(b *testing.B) {
|
||||||
os.Stdout, _ = os.Open(os.DevNull)
|
os.Stdout, _ = os.Open(os.DevNull)
|
||||||
Solve(data)
|
Solve(data)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user