Class MedianAggregator

java.lang.Object
com.github.rlacher.sortbench.processing.MedianAggregator
All Implemented Interfaces:
Function<List<BenchmarkResult>,Double>

public class MedianAggregator extends Object implements Function<List<BenchmarkResult>,Double>
Aggregates a list of BenchmarkResult instances to calculate the median value.

This aggregator aims to provide a more robust and representative summary of benchmark results by using the median, which is less susceptible to outliers caused by factors like garbage collection or JVM optimisations.

  • Constructor Details

    • MedianAggregator

      public MedianAggregator()
      Constructs a default instance of MedianAggregator. This constructor performs no custom initialisation.
  • Method Details