- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for arrayListForWithHolder (0.26 sec)
-
guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java
int sum = 0; for (int i = 0; i < reps; i++) { for (Object value : arrayList) { sum += value.hashCode(); } } return sum; } @Benchmark int arrayListForWithHolder(int reps) { int[] sumHolder = {0}; for (int i = 0; i < reps; i++) { for (Object value : arrayList) { sumHolder[0] += value.hashCode(); } } return sumHolder[0];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.1K bytes - Viewed (0)