Package com.github.rlacher.sortbench
Class MainCommand
java.lang.Object
com.github.rlacher.sortbench.MainCommand
The entry point for the sorting algorithm benchmarking application.
This class runs the sorting algorithms.
-
Method Summary
-
Method Details
-
call
Initialises and runs the sorting algorithm benchmarking process.This method is called when the command line interface (CLI) is executed. It sets up the logging format, validates the input parameters, and runs the benchmark. It uses the
Sorterclass to run the benchmark and theBenchmarkRunnerclass to orchestrate the benchmarking process. It also uses theResultAggregatorclass to process the benchmark results and theAsciiTableFormatterclass to format the output. -
main
The main method, which starts the sorting algorithm benchmarking process.This method merely executes the command line interface (CLI) using the
CommandLineclass and processes its exit code.- Parameters:
args- Command-line arguments.
-