Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for averages (0.14 sec)

  1. internal/bucket/bandwidth/measurement.go

    package bandwidth
    
    import (
    	"sync"
    	"sync/atomic"
    	"time"
    )
    
    const (
    	// betaBucket is the weight used to calculate exponential moving average
    	betaBucket = 0.1 // Number of averages considered = 1/(1-betaObject)
    )
    
    // bucketMeasurement captures the bandwidth details for one bucket
    type bucketMeasurement struct {
    	lock                 sync.Mutex
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 03 20:41:51 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. internal/bucket/bandwidth/monitor.go

    	bucketsThrottle    map[BucketOptions]*bucketThrottle
    	bucketsMeasurement map[BucketOptions]*bucketMeasurement // Buckets with objects in flight
    
    	bucketMovingAvgTicker *time.Ticker    // Ticker for calculating moving averages
    	ctx                   context.Context // Context for generate
    	NodeCount             uint64
    }
    
    // NewMonitor returns a monitor with defaults.
    func NewMonitor(ctx context.Context, numNodes uint64) *Monitor {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. cmd/site-replication-metrics.go

    	// Total Replica received
    	ReplicaCount int64                `json:"replicaCount"`
    	M            map[string]*SRStatus `json:"srStatusMap"`
    
    	movingAvgTicker *time.Ticker // Ticker for calculating moving averages
    	lock            sync.RWMutex // mutex for srStats
    }
    
    // SRStatus has replication stats at deployment level
    type SRStatus struct {
    	ReplicatedSize int64 `json:"completedReplicationSize"`
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/DataSeriesTest.groovy

            expect:
            series.size() == 3
            series.average == v2
            series.average == v2
            series.min == v1
            series.max == v3
        }
    
        def "can be empty"() {
            def series = new DataSeries([null, null])
    
            expect:
            series.empty
            series.average == null
            series.median == null
            series.min == null
            series.max == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator.go

    	return x == y || x != nil && y != nil && x.Duration == y.Duration && x.Min == y.Min && x.Max == y.Max && (x.Average == y.Average || math.IsNaN(x.Average) && math.IsNaN(y.Average)) && (x.Deviation == y.Deviation || math.IsNaN(x.Deviation) && math.IsNaN(y.Deviation))
    }
    
    type integrator struct {
    	name  string
    	clock clock.PassiveClock
    	sync.Mutex
    	lastTime time.Time
    	x        float64
    	moments  Moments
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 17:37:20 UTC 2022
    - 5K bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataSeries.java

            median = medianLeft.plus(medianRight).div(2);
            average = total.div(size());
            this.min = min;
            this.max = max;
    
            BigDecimal sumSquares = BigDecimal.ZERO;
            Units<Q> baseUnits = average.getUnits().getBaseUnits();
            BigDecimal averageValue = average.toUnits(baseUnits).getValue();
            for (Amount<Q> amount : this) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator_test.go

    	rToo := igr.Reset()
    	if e := (IntegratorResults{Duration: time.Second.Seconds(), Average: 3, Deviation: 0, Min: 0, Max: 3}); !e.Equal(&results) {
    		t.Errorf("expected %#+v, got %#+v", e, results)
    	}
    	if !results.Equal(&rToo) {
    		t.Errorf("expected %#+v, got %#+v", results, rToo)
    	}
    	igr.Set(2)
    	results = igr.GetResults()
    	if e := (IntegratorResults{Duration: 0, Average: math.NaN(), Deviation: math.NaN(), Min: 2, Max: 3}); !e.Equal(&results) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 27 21:11:44 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/borrowing_test.go

    			}
    			if results0.Average < 15.5 || results0.Average > 16.1 {
    				t.Errorf("Flow 0 got average concurrency of %v but expected about 16", results0.Average)
    			} else {
    				t.Logf("Flow 0 got average concurrency of %v and expected about 16", results0.Average)
    			}
    			if results1.Average < 5.5 || results1.Average > 6.1 {
    				t.Errorf("Flow 1 got average concurrency of %v but expected about 6", results1.Average)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/fixture/CrossVersionPerformanceTestExecutionTest.groovy

    class CrossVersionPerformanceTestExecutionTest extends ResultSpecification {
        def result = new CrossVersionPerformanceResults(testProject: "some-project", tasks: [], cleanTasks: [])
    
        def "passes when average execution time for current release is smaller than average execution time for previous releases"() {
            given:
            result.baseline("1.0").results.add(operation(totalTime: 110))
            result.baseline("1.0").results.add(operation(totalTime: 100))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/testing/allocs.go

    package testing
    
    import (
    	"runtime"
    )
    
    // AllocsPerRun returns the average number of allocations during calls to f.
    // Although the return value has type float64, it will always be an integral value.
    //
    // To compute the number of allocations, the function will first be run once as
    // a warm-up. The average number of allocations over the specified number of
    // runs will then be measured and returned.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 1.4K bytes
    - Viewed (0)
Back to top