Performance of .Net 2.0 vs .Net 3.5

.net-2.0.net-3.5

Microsoft claims that the .Net 3.5 framework has many speed improvements over 2.0. Is anyone able to verify this claim?

I am especially interested in computational type stuff (math, graphics, etc), but also more generally?

Best Answer

The 3.5 CLR does seem to be faster for certain tasks.

Here's a fairly simple comparison of sorting differences on 2.0 vs 3.5, showing decent performance improvements in .Net 3.5.

http://systematicgaming.wordpress.com/2009/01/13/performance-c-vs-c-part-2/

What exactly caused the improvements is unclear, but structs were not well handled under 2.0 and inlining has improved in 3.5, both of which can make a big difference under the right circumstances.