3 ms·
out of curiosity i tried this with javascript. seems like chrome is a lot of faster than firefox. ~6 times with f25, but f25 is a bit too coarse. jsperf (which
by stefs 12y ago
out of curiosity i tried this with javascript. seems like chrome is a lot of faster than firefox. ~6 times with f25, but f25 is a bit too coarse. jsperf (which isn't really the right tool for this job anyway) identified me as a spammer while i was adjusting the test cases though. with lower f's the difference would be even higher.
i tried it out in the browser, sum of fN(N) from [0..1000[ yields a ~2-3 times difference.
- stefs 12y agocorrection: it was fM(N) where N=[0..1000[ and constant M=20 (i think; 20 didn't take too long for 1000 iterations). results were added up and printed at the end and outside the benchmarking loop.