2 ms·
I think it should be more clear that it's using bubble sort to purposely take a longer time than necessary. I'd expect sorting an array of 50k elements to be i
by jlarocco 11y ago
I think it should be more clear that it's using bubble sort to purposely take a longer time than necessary.
I'd expect sorting an array of 50k elements to be instantaneous on a modern machine, even in Javascript.
My first thought was, "WTF? Sorting 50k elements is a big deal?"
- qw 11y agoIt seems that there are significant differences in browsers as well. Windows 8 -------------------- Firefox v38 | 2629ms Chrome v40 | 4281ms IE v11 | 7899ms