示例#1
0
func BenchmarkReflectMerge1InputLargeAmountValues(b *testing.B) {
	for n := 0; n < b.N; n++ {
		is := giveMeSomeChannelsI(1)
		o := make(chan int)

		merge.ReflectMerge(o, is...)

		sendIntsToChanI(large, is)
		go consumeSomeInts(large, o)
	}
}
示例#2
0
func BenchmarkReflectMerge50InputSmallAmountValues(b *testing.B) {
	for n := 0; n < b.N; n++ {
		is := giveMeSomeChannelsI(50)
		o := make(chan int)

		merge.ReflectMerge(o, is...)

		sendIntsToChanI(small, is)
		go consumeSomeInts(small*50, o)
	}
}