Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SetParallelism (0.24 sec)

  1. internal/grid/benchmark_test.go

    				defer cancel()
    				b.ReportAllocs()
    				b.SetBytes(int64(len(payload) * 2))
    				b.ResetTimer()
    				t := time.Now()
    				var ops int64
    				var lat int64
    				b.SetParallelism(par)
    				b.RunParallel(func(pb *testing.PB) {
    					rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    					n := 0
    					var latency int64
    					managers := grid.Managers
    					hosts := grid.Hosts
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  2. internal/dsync/dsync_test.go

    			mu.Unlock(context.Background())
    		}
    	})
    }
    
    func benchmarkMutex(b *testing.B, slack, work bool) {
    	b.ResetTimer()
    	b.ReportAllocs()
    
    	mu := NewDRWMutex(ds, "")
    	if slack {
    		b.SetParallelism(10)
    	}
    	b.RunParallel(func(pb *testing.PB) {
    		foo := 0
    		for pb.Next() {
    			mu.Lock(id, source)
    			mu.Unlock(context.Background())
    			if work {
    				for i := 0; i < 100; i++ {
    					foo *= 2
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  3. api/go1.3.txt

    pkg syscall (windows-amd64), type TCPKeepalive struct, OnOff uint32
    pkg syscall (windows-amd64), type TCPKeepalive struct, Time uint32
    pkg testing, method (*B) RunParallel(func(*PB))
    pkg testing, method (*B) SetParallelism(int)
    pkg testing, method (*PB) Next() bool
    pkg testing, type PB struct
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                InternalSession.from(session);
                this.repositories = RepositoryUtils.toRepos(request.getRemoteRepositories());
                this.executor = createExecutor(getParallelism(request));
                if (localProjects) {
                    this.modelPool = new ReactorModelPool();
                    this.transformerContextBuilder = modelBuilder.newTransformerContextBuilder();
                } else {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 55.2K bytes
    - Viewed (0)
Back to top