Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for arraysSortOrderingFromNatural (0.17 sec)

  1. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

          new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
              return o1.compareTo(o2);
            }
          };
    
      @Benchmark
      int arraysSortOrderingFromNatural(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
          sort(copy, Ordering.from(NATURAL_INTEGER));
          tmp += copy[0];
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top