- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for arraysSortOrderingNatural (0.15 sec)
-
guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java
int tmp = 0; for (int i = 0; i < reps; i++) { Integer[] copy = inputArrays[i & 0xFF].clone(); sort(copy); tmp += copy[0]; } return tmp; } @Benchmark int arraysSortOrderingNatural(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { Integer[] copy = inputArrays[i & 0xFF].clone(); sort(copy, Ordering.natural()); tmp += copy[0]; } return tmp;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.5K bytes - Viewed (0)