Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 229 for benchmarks (0.2 seconds)

  1. benchmarks/src/main/java/org/elasticsearch/benchmark/search/aggregations/TermsReduceBenchmark.java

     * 2.0 and the Server Side Public License, v 1; you may not use this file except
     * in compliance with, at your election, the Elastic License 2.0 or the Server
     * Side Public License, v 1.
     */
    package org.elasticsearch.benchmark.search.aggregations;
    
    import org.apache.lucene.search.ScoreDoc;
    import org.apache.lucene.search.TopDocs;
    import org.apache.lucene.search.TotalHits;
    import org.apache.lucene.util.BytesRef;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Aug 20 15:45:38 GMT 2021
    - 8.1K bytes
    - Click Count (0)
  2. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

     */
    
    package com.google.common.base;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.BitSet;
    import java.util.Random;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Benchmark for the {@link CharMatcher#whitespace} implementation. */
    @NullUnmarked
    public class WhitespaceMatcherBenchmark {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  3. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

     */
    
    package com.google.common.base;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.BitSet;
    import java.util.Random;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Benchmark for the {@link CharMatcher#whitespace} implementation. */
    @NullUnmarked
    public class WhitespaceMatcherBenchmark {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  4. guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java

          factorials[i] = RANDOM_SOURCE.nextInt(100);
        }
      }
    
      @Benchmark
      long log2(int reps) {
        long tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += Double.doubleToRawLongBits(DoubleMath.log2(positiveDoubles[j]));
        }
        return tmp;
      }
    
      @Benchmark
      long factorial(int reps) {
        long tmp = 0;
        for (int i = 0; i < reps; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  5. benchmarks/src/main/java/org/elasticsearch/benchmark/fs/AvailableIndexFoldersBenchmark.java

     * Side Public License, v 1.
     */
    package org.elasticsearch.benchmark.fs;
    
    import org.elasticsearch.common.logging.LogConfigurator;
    import org.elasticsearch.common.settings.Settings;
    import org.elasticsearch.env.Environment;
    import org.elasticsearch.env.NodeEnvironment;
    import org.openjdk.jmh.annotations.Benchmark;
    import org.openjdk.jmh.annotations.BenchmarkMode;
    import org.openjdk.jmh.annotations.Fork;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Apr 27 15:29:12 GMT 2021
    - 3K bytes
    - Click Count (0)
  6. benchmarks/src/main/java/org/elasticsearch/benchmark/script/ScriptScoreBenchmark.java

                    w.addDocument(List.of(new SortedNumericDocValuesField("n", i)));
                }
                w.commit();
            }
            reader = DirectoryReader.open(directory);
        }
    
        @Benchmark
        public TopDocs benchmark() throws IOException {
            TopDocs topDocs = new IndexSearcher(reader).search(scriptScoreQuery(factory), 10);
            if (topDocs.scoreDocs[0].score != 1_000_000) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 20 13:45:50 GMT 2021
    - 8.1K bytes
    - Click Count (0)
  7. guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

        }
        this.mapToTest = impl.create(values);
        this.queries = sampleData.getQueries();
      }
    
      @Benchmark
      boolean get(int reps) {
        // Paranoia: acting on hearsay that accessing fields might be slow
        // Should write a benchmark to test that!
        Map<Element, Element> map = mapToTest;
        Element[] queries = this.queries;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  8. benchmarks/src/main/java/org/elasticsearch/common/bytes/BytesArrayReadLongBenchmark.java

    import org.elasticsearch.common.io.stream.StreamInput;
    import org.elasticsearch.common.unit.ByteSizeUnit;
    import org.elasticsearch.common.unit.ByteSizeValue;
    import org.openjdk.jmh.annotations.Benchmark;
    import org.openjdk.jmh.annotations.BenchmarkMode;
    import org.openjdk.jmh.annotations.Fork;
    import org.openjdk.jmh.annotations.Measurement;
    import org.openjdk.jmh.annotations.Mode;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Apr 12 20:25:06 GMT 2021
    - 2.3K bytes
    - Click Count (0)
  9. benchmarks/src/main/java/org/elasticsearch/common/bytes/PagedBytesReferenceReadLongBenchmark.java

    import org.elasticsearch.common.io.stream.StreamInput;
    import org.elasticsearch.common.unit.ByteSizeUnit;
    import org.elasticsearch.common.unit.ByteSizeValue;
    import org.openjdk.jmh.annotations.Benchmark;
    import org.openjdk.jmh.annotations.BenchmarkMode;
    import org.openjdk.jmh.annotations.Fork;
    import org.openjdk.jmh.annotations.Measurement;
    import org.openjdk.jmh.annotations.Mode;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Apr 12 20:25:06 GMT 2021
    - 2.3K bytes
    - Click Count (0)
  10. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static java.util.Collections.sort;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Random;
    import java.util.Set;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.5K bytes
    - Click Count (0)
Back to Top