Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for benchmarkCreateGoroutines (0.15 sec)

  1. src/runtime/proc_test.go

    }
    
    func BenchmarkStackGrowthDeep(b *testing.B) {
    	benchmarkStackGrowth(b, 1024)
    }
    
    func BenchmarkCreateGoroutines(b *testing.B) {
    	benchmarkCreateGoroutines(b, 1)
    }
    
    func BenchmarkCreateGoroutinesParallel(b *testing.B) {
    	benchmarkCreateGoroutines(b, runtime.GOMAXPROCS(-1))
    }
    
    func benchmarkCreateGoroutines(b *testing.B, procs int) {
    	c := make(chan bool)
    	var f func(n int)
    	f = func(n int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
Back to top