Please wait...
x

This program runs various sorting algorithms both in main UI-thread and in parallel threads using Web Workers.

By running the sorting in the UI-thread the UI is blocked until the sorting function is terminated.

However, running the sorting in a parallel thread (as a background Worker) the sorting and the UI don't block each other.

i
Run script in
Array built-in sort
Insertion sort
Bubble sort
Quick sort
Merge sort
Heap sort
Selection sort
Pigeonhole sort
Bucket sort