Skip to content

Instantly share code, notes, and snippets.

@campoy
Created February 12, 2018 17:33
Show Gist options
  • Save campoy/18c6d9901c9fd4994298c02574c72428 to your computer and use it in GitHub Desktop.
Save campoy/18c6d9901c9fd4994298c02574c72428 to your computer and use it in GitHub Desktop.
gist 4 for episode 28 of justforfunc
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