Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkSelectProdCons (0.25 sec)

  1. src/runtime/chan_test.go

    func BenchmarkChanProdConsWork10(b *testing.B) {
    	benchmarkChanProdCons(b, 10, 100)
    }
    
    func BenchmarkChanProdConsWork100(b *testing.B) {
    	benchmarkChanProdCons(b, 100, 100)
    }
    
    func BenchmarkSelectProdCons(b *testing.B) {
    	const CallsPerSched = 1000
    	procs := runtime.GOMAXPROCS(-1)
    	N := int32(b.N / CallsPerSched)
    	c := make(chan bool, 2*procs)
    	myc := make(chan int, 128)
    	myclose := make(chan bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
Back to top