Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 358 for repl (0.34 sec)

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

      int length;
    
      private String originalString;
    
      @BeforeExperiment
      void setUp() {
        originalString = Strings.repeat("x", length);
      }
    
      @Benchmark
      void oldRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = oldRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
            throw new RuntimeException("Wrong length: " + x);
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

        return datasets[i & 0xFF].clone();
      }
    
      @Benchmark
      double median(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
          dummy += algorithm.singleQuantile(1, 2, dataset(i));
        }
        return dummy;
      }
    
      @Benchmark
      double percentile90(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
          dummy += algorithm.singleQuantile(90, 100, dataset(i));
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. .github/workflows/check-bad-merge.yml

                ${{ env.OUTPUT }}
                \`\`\`
                `;
                github.rest.issues.createComment({
                  issue_number: context.issue.number,
                  owner: context.repo.owner,
                  repo: context.repo.repo,
                  body: output
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 02 09:13:16 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

          ints[i] = RANDOM_SOURCE.nextInt();
        }
      }
    
      @Benchmark
      int pow(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += IntMath.pow(positive[j], exponent[j]);
        }
        return tmp;
      }
    
      @Benchmark
      int mod(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += IntMath.mod(ints[j], positive[j]);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      @Benchmark
      int joinerWithStringDelimiter(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy ^= JOINER_ON_STRING.join(components).length();
        }
        return dummy;
      }
    
      /** {@link Joiner} with a character delimiter. */
      @Benchmark
      int joinerWithCharacterDelimiter(int reps) {
        int dummy = 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
    - 4.9K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

      // CRC32C
    
      @Benchmark
      byte crc32cHashFunction(int reps) {
        return runHashFunction(reps, Hashing.crc32c());
      }
    
      // Adler32
    
      @Benchmark
      byte adler32HashFunction(int reps) {
        return runHashFunction(reps, Hashing.adler32());
      }
    
      @Benchmark
      byte adler32Checksum(int reps) throws Exception {
        byte result = 0x01;
        for (int i = 0; i < reps; i++) {
          Adler32 checksum = new Adler32();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 13 16:19:15 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        return striped;
      }
    
      @Benchmark
      long timeConstruct(long reps) {
        long rvalue = 0;
        int numStripesLocal = numStripes;
        Impl implLocal = impl;
        for (long i = 0; i < reps; i++) {
          rvalue += implLocal.get(numStripesLocal).hashCode();
        }
        return rvalue;
      }
    
      @Benchmark
      long timeGetAt(long reps) {
        long rvalue = 0;
        int[] stripesLocal = stripes;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

      @Benchmark
      long stopwatch(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          Stopwatch s = Stopwatch.createStarted();
          // here is where you would do something
          total += s.elapsed(TimeUnit.NANOSECONDS);
        }
        return total;
      }
    
      @Benchmark
      long manual(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          long start = System.nanoTime();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

      }
    
      @Benchmark
      int collections(int reps) {
        int dummy = 0;
        // Yes, this could be done more elegantly
        if (mutable) {
          for (int i = 0; i < reps; i++) {
            List<Integer> copy = new ArrayList<>(input);
            Collections.sort(copy);
            dummy += copy.get(0);
          }
        } else {
          for (int i = 0; i < reps; i++) {
            List<Integer> copy = new ArrayList<>(input);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

        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++) {
          total += Iterables.size(STRING_SPLITTER.split(input));
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.7K bytes
    - Viewed (0)
Back to top