Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkStaggeredTickerLatency (0.47 sec)

  1. src/time/sleep_test.go

    	b.ReportMetric(float64(max.Nanoseconds()), "max-late-ns")
    }
    
    // Benchmark timer latency with staggered wakeup times and varying CPU bound
    // workloads. https://golang.org/issue/38860
    func BenchmarkStaggeredTickerLatency(b *testing.B) {
    	gmp := runtime.GOMAXPROCS(0)
    	if gmp < 2 || runtime.NumCPU() < gmp {
    		b.Skip("skipping with GOMAXPROCS < 2 or NumCPU < GOMAXPROCS")
    	}
    
    	const delay = 3 * Millisecond
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top