Created
August 17, 2018 21:06
-
-
Save sayden/f9b119f3418d4f8b5d59ef05a545ed7d to your computer and use it in GitHub Desktop.
time after test
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
package time_profile | |
import "testing" | |
func Benchmark_TimeAfter(b *testing.B) { | |
ch := timeAfter() | |
for n := 0; n < b.N; n++ { | |
ch <- struct{}{} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment