Hacker News new | past | comments | ask | show | jobs | submit login

I agree, but what I'm saying is, it only generates the numbers once and then sorts them 500 times. Yes it's a flawed measurement because it measures the generation time + 500 sorts, but the time to generate the numbers is probably minuscule compared to the sorting.

There are many more flaws, as you say, the biggest flaw is the stable vs unstable sort comparison, but it looks like the article author (not OP) has fixed it half an hour ago and updated the article.




You’re right, it uses the same array 500 times and then runs an outer loop (with a new array each time) 5 times.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: