Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for linkedListFor (0.14 sec)

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

        int sum = 0;
        for (int i = 0; i < reps; i++) {
          for (Object value : arrayList.toArray()) {
            sum += value.hashCode();
          }
        }
        return sum;
      }
    
      @Benchmark
      int linkedListFor(int reps) {
        int sum = 0;
        for (int i = 0; i < reps; i++) {
          for (Object value : linkedList) {
            sum += value.hashCode();
          }
        }
        return sum;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java

        int sum = 0;
        for (int i = 0; i < reps; i++) {
          for (Object value : arrayList.toArray()) {
            sum += value.hashCode();
          }
        }
        return sum;
      }
    
      @Benchmark
      int linkedListFor(int reps) {
        int sum = 0;
        for (int i = 0; i < reps; i++) {
          for (Object value : linkedList) {
            sum += value.hashCode();
          }
        }
        return sum;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.1K bytes
    - Viewed (0)
Back to top