Created
February 12, 2018 17:33
-
-
Save campoy/18c6d9901c9fd4994298c02574c72428 to your computer and use it in GitHub Desktop.
gist 4 for episode 28 of justforfunc
This file contains 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
func BenchmarkMergeReflect(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
c := mergeReflect(asChan(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)) | |
for range c { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment