Author: Sadykov Danial Language: Java
This project implements the Insertion Sort algorithm with performance tracking and testing.
To measure performance and see how the algorithm works with different input sizes:
Run the file: BenchmarkRunner.java
To check if the algorithm sorts arrays correctly (including edge cases):
Run the file: InsertionSortTest.java
src/main/java/
├── algorithms/InsertionSort.java
├── metrics/PerformanceTracker.java
└── cli/BenchmarkRunner.java
src/test/java/
└── algorithms/InsertionSortTest.java
InsertionSort.java— main sorting algorithmPerformanceTracker.java— collects comparisons, swaps, and time metricsBenchmarkRunner.java— runs benchmarks with random dataInsertionSortTest.java— unit tests for correctness