Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for iterateWithKeySetAndGet (0.07 seconds)

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

          for (Map.Entry<Element, Element> entry : map.entrySet()) {
            dummy ^= entry.getKey() != entry.getValue();
          }
        }
        return dummy;
      }
    
      @Benchmark
      boolean iterateWithKeySetAndGet(int reps) {
        Map<Element, Element> map = mapToTest;
    
        boolean dummy = false;
        for (int i = 0; i < reps; i++) {
          for (Element key : map.keySet()) {
            Element value = map.get(key);
    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)
Back to Top