Sorting Algorithm Comparison Laboratory
Execute 2 to 6 algorithms side-by-side using an identical input array. Observe live differences in comparisons, swaps, memory writes, and measured CPU benchmark speed.
Shared Input Array & Pattern Selection
Every compared algorithm receives an exact, independent copy of this input data.
Input Patterns:
Concurrent Visual Execution
Relative Operations Comparison (Comparisons, Swaps & Writes)
Operations Graph
Fairness & Methodology Note: Each algorithm operates on an independent, identical copy of the current original array. Measured runtime is determined via median CPU execution time using high-precision
performance.now() timers across repeated runs. For small inputs (N < 20), CPU measurements reflect browser scheduling noise, whereas logical operation counters (comparisons, swaps, writes) provide mathematically exact comparisons.