Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 389 for BenchmarkZ (1.72 sec)

  1. guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      @BeforeExperiment
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
      void charSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(CHAR_SPLITTER.split(input));
        }
      }
    
      @Benchmark
      void stringSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.7K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;
    
    /**
     * Benchmark for HashMultiset.add for an already-present element.
     *
     * @author Louis Wasserman
     */
    public class HashMultisetAddPresentBenchmark {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.base;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    
    /**
     * Microbenchmark for {@link com.google.common.base.Strings#repeat}
     *
     * @author Mike Cripps
     */
    public class StringsRepeatBenchmark {
      @Param({"1", "5", "25", "125"})
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  4. pilot/pkg/xds/testdata/benchmarks/knative-gateway.yaml

        protocol: HTTP
      resolution: STATIC
      endpoints:
      - address: 1.1.1.1
        labels:
          istio.io/benchmark: "true"
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: Gateway
    metadata:
      name: knative-ingress-gateway
      namespace: knative-serving
    spec:
      selector:
        istio.io/benchmark: "true"
      servers:
      - hosts:
        - '*'
        port:
          name: http
          number: 80
          protocol: HTTP
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 19 16:50:51 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  5. src/go/doc/example.go

    //     example function, zero test, fuzz test, or benchmark function, and at
    //     least one top-level function, type, variable, or constant declaration
    //     other than the example function.
    func Examples(testFiles ...*ast.File) []*Example {
    	var list []*Example
    	for _, file := range testFiles {
    		hasTests := false // file contains tests, fuzz test, or benchmarks
    		numDecl := 0      // number of non-import declarations in the file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

     */
    
    package com.google.common.cache;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.cache.LocalCache.Segment;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Benchmark for {@code LocalCache.Segment.removeEntryFromChain}.
     *
     * @author Charles Fry
     */
    @SuppressWarnings("CheckReturnValue")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/cache/SegmentBenchmark.java

    import static com.google.common.base.Preconditions.checkState;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.cache.LocalCache.Segment;
    import java.util.concurrent.atomic.AtomicReferenceArray;
    
    /**
     * Benchmark for {@code LocalCache.Segment.expand()}.
     *
     * @author Charles Fry
     */
    public class SegmentBenchmark {
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 23 16:59:39 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/AbstractTaskOutputPackagingBenchmark.java

    package org.gradle.caching.internal.tasks;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMap;
    import org.apache.commons.io.FileUtils;
    import org.openjdk.jmh.annotations.Benchmark;
    import org.openjdk.jmh.annotations.Fork;
    import org.openjdk.jmh.annotations.Level;
    import org.openjdk.jmh.annotations.Measurement;
    import org.openjdk.jmh.annotations.Scope;
    import org.openjdk.jmh.annotations.Setup;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. src/math/big/calibrate_test.go

    	}
    }
    
    func karatsubaLoad(b *testing.B) {
    	BenchmarkMul(b)
    }
    
    // measureKaratsuba returns the time to run a Karatsuba-relevant benchmark
    // given Karatsuba threshold th.
    func measureKaratsuba(th int) time.Duration {
    	th, karatsubaThreshold = karatsubaThreshold, th
    	res := testing.Benchmark(karatsubaLoad)
    	karatsubaThreshold = th
    	return time.Duration(res.NsPerOp())
    }
    
    func computeKaratsubaThresholds() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_benchmark_1x.txt

    -- x_test.go --
    package bench
    
    import (
    	"fmt"
    	"os"
    	"testing"
    )
    
    var called = false
    
    func TestMain(m *testing.M) {
    	m.Run()
    	if !called {
    		fmt.Println("benchmark never called")
    		os.Exit(1)
    	}
    }
    
    func Benchmark(b *testing.B) {
    	if b.N > 1 {
    		b.Fatalf("called with b.N=%d; want b.N=1 only", b.N)
    	}
    	if called {
    		b.Fatal("called twice")
    	}
    	called = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 21:46:33 UTC 2021
    - 532 bytes
    - Viewed (0)
Back to top