News for hackers. Stuff that matters.
Re:LINQ is better than foreach by boblol123 on Tuesday May 11, 2010 @11:06AM (#1338068)
The number of objects is far too small to provide a very meaningful result.
Re:LINQ is better than foreach by kodefuguru on Tuesday May 11, 2010 @02:08PM (#1338723)
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

Re:LINQ is better than foreach by zokier on Tuesday May 11, 2010 @12:51PM (#1338475)
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.