Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkSplicePipeNativeParallel (0.64 sec)

  1. src/internal/poll/splice_linux_test.go

    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			p, err := poll.GetPipe()
    			if err != nil {
    				continue
    			}
    			poll.PutPipe(p)
    		}
    	})
    }
    
    func BenchmarkSplicePipeNativeParallel(b *testing.B) {
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			p := poll.NewPipe()
    			if p == nil {
    				b.Skip("newPipe returned nil")
    			}
    			poll.DestroyPipe(p)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top