Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,413 for iterations (0.27 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(ITERATIONS / 2, map.size());
        assertEquals(nonZeroKeys, map.asMap().keySet());
      }
    
      public void testClear() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
        }
        assertEquals(ITERATIONS, map.size());
    
        map.clear();
        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(ITERATIONS / 2, map.size());
        assertEquals(nonZeroKeys, map.asMap().keySet());
      }
    
      public void testClear() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
        }
        assertEquals(ITERATIONS, map.size());
    
        map.clear();
        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractPluginValidatingSmokeTest.groovy

                $buildScriptConfigurationForValidation
            """
            configureValidation(id, version)
    
            expect:
            performValidation(version)
    
            where:
            iterations << iterations()
            (id, version) = iterations
        }
    
        void configureValidation(String testedPluginId, String version) {
            allPlugins.alwaysPasses = true
        }
    
        void performValidation(String version) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. test/chan/doubleselect.go

    // both end up running. See http://codereview.appspot.com/180068.
    
    package main
    
    import (
    	"flag"
    	"runtime"
    )
    
    var iterations *int = flag.Int("n", 100000, "number of iterations")
    
    // sender sends a counter to one of four different channels. If two
    // cases both end up running in the same iteration, the same value will be sent
    // to two different channels.
    func sender(n int, c1, c2, c3, c4 chan<- int) {
    	defer close(c1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 01:34:14 UTC 2017
    - 2K bytes
    - Viewed (0)
  5. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/nativeplatform/NativeCleanBuildPerformanceTest.groovy

                ])
        ])
        def "clean assemble (native)"() {
            given:
            def iterations = runner.testProject in ['smallNative', 'smallCppApp', 'smallCppMulti'] ? 40 : null
            runner.tasksToRun = ["assemble"]
            runner.cleanTasks = ["clean"]
            runner.runs = iterations
            runner.warmUpRuns = iterations
    
            when:
            def result = runner.run()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. src/testing/benchmark.go

    type PB struct {
    	globalN *atomic.Uint64 // shared between all worker goroutines iteration counter
    	grain   uint64         // acquire that many iterations from globalN at once
    	cache   uint64         // local cache of acquired iterations
    	bN      uint64         // total number of iterations to execute (b.N)
    }
    
    // Next reports whether there are more iterations to execute.
    func (pb *PB) Next() bool {
    	if pb.cache == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/java/JavaIDETaskExecutionPerformanceTest.groovy

            then:
            result.assertCurrentVersionHasNotRegressedWithHighRelativeMedianDifference()
        }
    
        private setupRunner() {
            def iterations = determineIterations()
            runner.warmUpRuns = iterations
            runner.runs = iterations
        }
    
        private determineIterations() {
            return runner.testProject == LARGE_MONOLITHIC_JAVA_PROJECT.projectName ? 200 : 40
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/TestPlatform.java

     */
    
    package com.google.common.primitives;
    
    import com.google.common.annotations.GwtCompatible;
    
    @GwtCompatible(emulated = true)
    class TestPlatform {
      static int reduceIterationsIfGwt(int iterations) {
        return iterations;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 07 20:59:23 UTC 2017
    - 829 bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ConcurrentDependencyResolutionIntegrationTest.groovy

                        }
                    }
                }
    
            '''
            int groups = 20
            int iterations = 100
            groups.times { group ->
                def pfile = file("project$group/build.gradle")
                pfile << """
    
                    dependencies {
                """
                iterations.times { i ->
                    file("project_${i}/build.gradle") << ''
                    pfile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/jmh/java/org/gradle/internal/deprecation/DeprecationIdCreationBenchmark.java

    import org.openjdk.jmh.infra.Blackhole;
    
    import static org.gradle.internal.deprecation.DeprecationMessageBuilder.createDefaultDeprecationId;
    
    @SuppressWarnings("Since15")
    @Threads(2)
    @Warmup(iterations = 5)
    @Measurement(iterations = 5)
    @State(Scope.Benchmark)
    public class DeprecationIdCreationBenchmark {
    
        @Benchmark
        public void idCreation(Blackhole bh) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 06:13:13 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top