Maybe your default graphics card driver settings have VSync/GSync or similar enabled.
I don't know your code, but you should already have some limiting factor, otherwise you wouldn't be able to visualize the sorting, as it would be done within milliseconds and take less that a frame.
If you want it to go faster, then you'll just need to adjust that code, that currently slows down the process.