4 ms·
Your function isn't close to linear. Here are my benchmarks for 10 iterations of sorting: patio11: 100000 -- 120.469834 10000 -- 1.218803
by klochner 15y ago
Your function isn't close to linear. Here are my benchmarks for 10 iterations of sorting:
patio11:
100000 -- 120.469834
10000 -- 1.218803
1000 -- 0.019961
100 -- 0.000958
Array.shuffle:
100000 -- 0.054125
10000 -- 0.002993
1000 -- 0.000302
100 -- 4.1e-05