Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for doBench (0.12 sec)

  1. src/testing/benchmark.go

    			fmt.Fprintf(b.w, "cpu: %s\n", cpu)
    		}
    	})
    	if b.context != nil {
    		// Running go test --test.bench
    		b.context.processBench(b) // Must call doBench.
    	} else {
    		// Running func Benchmark.
    		b.doBench()
    	}
    }
    
    func (b *B) doBench() BenchmarkResult {
    	go b.launch()
    	<-b.signal
    	return b.result
    }
    
    // launch launches the benchmark function. It gradually increases the number
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. internal/s3select/message.go

    func (writer *messageWriter) Finish(bytesScanned, bytesProcessed int64) error {
    	select {
    	case <-writer.doneCh:
    		return fmt.Errorf("messageWriter is done")
    	default:
    		writer.finBytesScanned = bytesScanned
    		writer.finBytesProcessed = bytesProcessed
    		close(writer.payloadCh)
    		// Wait until the `start` go-routine is done.
    		<-writer.doneCh
    		return nil
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 30 15:26:43 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  3. cmd/storage-rest-server.go

    				}
    				return
    			}
    		}
    	}()
    	return func(err error) {
    		if doneCh == nil {
    			return
    		}
    
    		// Indicate we are ready to write.
    		doneCh <- err
    
    		// Wait for channel to be closed so we don't race on writes.
    		<-doneCh
    
    		// Clear so we can be called multiple times without crashing.
    		doneCh = nil
    	}, &closeNotifier{rc: r.Body, done: bodyDoneCh}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  4. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

    				}
    			}(pod, group)
    		}
    
    		var (
    			doneCh = make(chan struct{})
    			timer  = m.clock.NewTimer(time.Duration(group.ShutdownGracePeriodSeconds) * time.Second)
    		)
    		go func() {
    			defer close(doneCh)
    			wg.Wait()
    		}()
    
    		select {
    		case <-doneCh:
    			timer.Stop()
    		case <-timer.C():
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 08:02:40 UTC 2022
    - 15.5K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-rebalance.go

    		return ps.Participating && ps.Info.Status == rebalStarted
    	}
    	return false
    }
    
    func (z *erasureServerPools) rebalanceBuckets(ctx context.Context, poolIdx int) (err error) {
    	doneCh := make(chan error, 1)
    	defer xioutil.SafeClose(doneCh)
    
    	// Save rebalance.bin periodically.
    	go func() {
    		// Update rebalance.bin periodically once every 5-10s, chosen randomly
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go

    	defer cancel()
    
    	expectedError := errors.New("Expected error")
    	var attempt int
    	f := ConditionFunc(func() (bool, error) {
    		attempt++
    		return false, expectedError
    	})
    
    	doneCh := make(chan struct{})
    	go func() {
    		defer close(doneCh)
    		if err := loopConditionUntilContext(ctx, timerWithClock(backoff.Timer(), fakeClock), false, true, f.WithContext()); err == nil || err != expectedError {
    			t.Errorf("unexpected error: %v", err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 02:48:08 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go

    type signalInterceptingTestStep struct {
    	doneCh chan struct{}
    }
    
    func (ts signalInterceptingTestStep) done() <-chan struct{} {
    	return ts.doneCh
    }
    func (ts signalInterceptingTestStep) execute(fn func()) {
    	defer close(ts.doneCh)
    	fn()
    }
    func newSignalInterceptingTestStep() *signalInterceptingTestStep {
    	return &signalInterceptingTestStep{
    		doneCh: make(chan struct{}),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalBuildIntegrationTest.groovy

            when:
            buildFile << """
            model {
                components {
                    hello {
                        binaries.all {
                            ${helloWorldApp.compilerArgs("-DFRENCH")}
                        }
                    }
                }
            }
    """
    
            maybeWait()
            run "installMainExecutable"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.3K bytes
    - Viewed (0)
Back to top