day1_test.go 244 B

1234567891011121314151617
  1. package main
  2. import (
  3. "testing"
  4. )
  5. func BenchmarkExample(b *testing.B) {
  6. for i := 0; i < b.N; i++ {
  7. readInput("example.txt", false)
  8. }
  9. }
  10. func BenchmarkInput(b *testing.B) {
  11. for i := 0; i < b.N; i++ {
  12. readInput("input.txt", false)
  13. }
  14. }