Created
October 2, 2020 23:53
-
-
Save sc0Vu/cc84843f07bb42adf2e2cce5438073ed to your computer and use it in GitHub Desktop.
fib test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package fib | |
| import ( | |
| "testing" | |
| ) | |
| func BenchmarkFib20(b *testing.B) { | |
| for n := 0; n < b.N; n++ { | |
| Fib(20) // run the Fib function b.N times | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment