Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for measurements (0.06 sec)

  1. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        return tmp;
      }
    
      @Benchmark
      long parseUnsignedLong(int reps) {
        long tmp = 0;
        // Given that we make three calls per pass, we scale reps down in order
        // to do a comparable amount of work to other measurements.
        int scaledReps = reps / 3 + 1;
        for (int i = 0; i < scaledReps; i++) {
          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.parseUnsignedLong(decimalStrings[j]);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. internal/bucket/bandwidth/measurement.go

    	atomic.AddUint64(&m.bytesSinceLastWindow, bytes)
    }
    
    // updateExponentialMovingAverage processes the measurements captured so far.
    func (m *bucketMeasurement) updateExponentialMovingAverage(endTime time.Time) {
    	// Calculate aggregate avg bandwidth and exp window avg
    	m.lock.Lock()
    	defer func() {
    		m.startTime = endTime
    		m.lock.Unlock()
    	}()
    
    	if m.startTime.IsZero() {
    		return
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sat Jun 03 20:41:51 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  3. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

            Thread.sleep(10); // Small delay
            Instant third = MonotonicClock.now();
    
            assertTrue(first.isBefore(second), "Time should progress forward between measurements");
            assertTrue(second.isBefore(third), "Time should progress forward between measurements");
        }
    
        @Test
        @DisplayName("MonotonicClock elapsed time should increase")
        void testElapsedTime() throws InterruptedException {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/MonotonicClock.java

     * <p>
     * This class provides precise time measurements using {@link System#nanoTime()}
     * while maintaining wall-clock time information in UTC. The wall-clock time
     * is computed from the monotonic duration since system start to ensure consistency
     * between time measurements.
     * <p>
     * This implementation is singleton-based and always uses UTC timezone. The clock
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 15 06:28:29 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        return tmp;
      }
    
      @Benchmark
      long parseUnsignedLong(int reps) {
        long tmp = 0;
        // Given that we make three calls per pass, we scale reps down in order
        // to do a comparable amount of work to other measurements.
        int scaledReps = reps / 3 + 1;
        for (int i = 0; i < scaledReps; i++) {
          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.parseUnsignedLong(decimalStrings[j]);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. compat/maven-model/src/test/java/org/apache/maven/model/v4/Xpp3DomPerfTest.java

    import org.apache.maven.api.model.InputSource;
    import org.openjdk.jmh.annotations.Benchmark;
    import org.openjdk.jmh.annotations.BenchmarkMode;
    import org.openjdk.jmh.annotations.Level;
    import org.openjdk.jmh.annotations.Measurement;
    import org.openjdk.jmh.annotations.Mode;
    import org.openjdk.jmh.annotations.OutputTimeUnit;
    import org.openjdk.jmh.annotations.Scope;
    import org.openjdk.jmh.annotations.Setup;
    import org.openjdk.jmh.annotations.State;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Stopwatch.java

     * <i>can</i> be subtracted to obtain a {@link Duration} (such as by {@link Duration#between}), but
     * doing so does <i>not</i> give a reliable measurement of elapsed time, because wall time readings
     * are inherently approximate, routinely affected by periodic clock corrections. Because this class
     * (by default) uses {@link System#nanoTime}, it is unaffected by these changes.
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. internal/bucket/bandwidth/monitor.go

    	*rate.Limiter
    	NodeBandwidthPerSec int64
    }
    
    // Monitor holds the state of the global bucket monitor
    type Monitor struct {
    	tlock sync.RWMutex // mutex for bucket throttling
    	mlock sync.RWMutex // mutex for bucket measurement
    
    	bucketsThrottle    map[BucketOptions]*bucketThrottle
    	bucketsMeasurement map[BucketOptions]*bucketMeasurement // Buckets with objects in flight
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top