Hacker News new | ask | show | jobs
by boblol123 5877 days ago
The number of objects is far too small to provide a very meaningful result.
2 comments

I changed it to run with one million names and ran with the optimized foreach. I only did one pass.

foreach 00:00:01.7348710 linq 00:00:01.8607973

Yeah, I got that feeling too, when time measurements are in the microsecond range. I wonder how CPU cache and memory access patterns affect the results.