Skip to content

Commit

Permalink
Use constants. Update comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jan 31, 2025
1 parent df591dd commit 5114a28
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ public void testCompareStandardAndOptimizedMapConstructor() {
System.out.println("Done with standard in " + duration + "ms");
}
/*
* The CI systems tend to produce outliers that lead to false failures so skip the longest two runs.
* The CI systems tend to produce outliers that lead to false failures so skip the longest NUM_SKIP runs.
*/
long standardTotalDuration =
standardDurations.stream().sorted().limit(NUM_TESTS - 2).reduce(Long::sum).get().longValue();
standardDurations.stream().sorted().limit(NUM_TESTS - NUM_SKIP).reduce(Long::sum).get().longValue();

List<Long> optimizedDurations = new ArrayList<>();
for (int i = 0; i < NUM_TESTS; i++) {
Expand All @@ -79,7 +79,7 @@ public void testCompareStandardAndOptimizedMapConstructor() {
System.out.println("Done with optimized in " + duration + "ms");
}
/*
* The CI systems tend to produce outliers that lead to false failures so skip the longest two runs.
* The CI systems tend to produce outliers that lead to false failures so skip the longest NUM_SKIP runs.
*/
long optimizedTotalDuration =
optimizedDurations.stream().sorted().limit(NUM_TESTS - NUM_SKIP).reduce(Long::sum).get().longValue();
Expand Down

0 comments on commit 5114a28

Please sign in to comment.