@Test public void doesNotDownsampleSmallSample() { MultisetStatistics stats = new MultisetStatistics(); stats.addValue(3.14, 1); Mockito.when(mockResult.getStatistics()).thenReturn(stats); assertThat(PerformanceResults.getData(mockRunResult)).containsExactlyElementsOf(ImmutableList.of(3.14)); }
@VisibleForTesting static List<Double> getData(RunResult result) { return getRawResults(result.getPrimaryResult().getStatistics()); }
PerformanceResults { @VisibleForTesting static List<Double> getData(RunResult result) { return getRawResults(result.getPrimaryResult().getStatistics()); } }
PerformanceResults { @VisibleForTesting static List<Double> getData(RunResult result) { return getRawResults(result.getPrimaryResult().getStatistics()); } PerformanceResults(Collection<RunResult> results); }
PerformanceResults { @VisibleForTesting static List<Double> getData(RunResult result) { return getRawResults(result.getPrimaryResult().getStatistics()); } PerformanceResults(Collection<RunResult> results); void writeToFile(File file); }
PerformanceResults { @VisibleForTesting static List<Double> getData(RunResult result) { return getRawResults(result.getPrimaryResult().getStatistics()); } PerformanceResults(Collection<RunResult> results); void writeToFile(File file); static final int DOWNSAMPLE_MAXIMUM_SIZE; }