Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created September 18, 2021 14:48
Show Gist options
  • Save agusrichard/d37dc23c1dfd3b6e66b2342b90ce1b74 to your computer and use it in GitHub Desktop.
Save agusrichard/d37dc23c1dfd3b6e66b2342b90ce1b74 to your computer and use it in GitHub Desktop.
main_test.go
package main
import "testing"
func BenchmarkCalculate(b *testing.B) {
for n := 0; n < b.N; n++ {
Calculate(1, 2)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment