Skip to content

Commit

Permalink
day 32 - add benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Oct 1, 2018
1 parent 4e564c8 commit af172f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions day32/problem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ func TestArbitrage(t *testing.T) {
}
}
}

func BenchmarkArbitrage(b *testing.B) {
for i := 0; i < b.N; i++ {
for _, tc := range testcases {
Arbitrage(tc.rates)
}
}
}

0 comments on commit af172f3

Please sign in to comment.