Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active August 6, 2021 11:39
Show Gist options
  • Save percybolmer/759ecb9b216b7b4b6423cfecf45c6046 to your computer and use it in GitHub Desktop.
Save percybolmer/759ecb9b216b7b4b6423cfecf45c6046 to your computer and use it in GitHub Desktop.
// BenchmarkSimplestNTimes runs a benchmark N amount of times.
func BenchmarkSimplestNTimes(b *testing.B) {
for i := 0; i < b.N; i++ {
// Run function to benchmark here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment