Sorting Lab
Animate and compare Bubble, Insertion, Merge and Quick Sort with comparisons, writes and complexity notes.
Comparison counts and writes are algorithm metrics. Animation speed does not measure execution performance.
Result data
Usage statistics
Processing happens on your device. When usage statistics are enabled for this tool, actions, settings, entered data and generated results may be sent to the site’s analytics database. You can disable this using Usage statistics below. Normal hosting access logs may still apply.
Checking the service…
Using Sorting Lab
Animate and compare Bubble, Insertion, Merge and Quick Sort with comparisons, writes and complexity notes.
Try it
Use the same values for two algorithms and compare their operations. Pause or advance one frame at a time; animation duration is not a CPU benchmark.
Processing & privacy
Processing happens on your device. When usage statistics are enabled for this tool, actions, settings, entered data and generated results may be sent to the site’s analytics database. You can disable this using Usage statistics below. Normal hosting access logs may still apply.