Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkMutexNoSpin (0.07 sec)

  1. internal/dsync/dsync_test.go

    }
    
    func BenchmarkMutexWork(b *testing.B) {
    	benchmarkMutex(b, false, true)
    }
    
    func BenchmarkMutexWorkSlack(b *testing.B) {
    	benchmarkMutex(b, true, true)
    }
    
    func BenchmarkMutexNoSpin(b *testing.B) {
    	b.ResetTimer()
    	b.ReportAllocs()
    
    	// This benchmark models a situation where spinning in the mutex should be
    	// non-profitable and allows to confirm that spinning does not do harm.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top