views:

1221

answers:

4

Now that VS2010 is in RC it seems it's only matter of weeks until first new 'core' runtime release since 2.0. Whilst I do not have immediate needs to upgrade I'm wondering if anyone has done some performance testing/benchmarking between the two.

If there are any noticeable performance gains then it would be beneficial to recompile existing, working, applications.

TIA, Dejan

+1  A: 

Its too early to have an answer to this question has we just now have the RC release.

Mendy
Well, sure.But it being Release Candidate of Visual Studio, I'd expect that .net runtime itself is pretty frozen at the moment. IOW, it's highly unlikely there will be any significant differences between RC and RTM.
Dejan Stanič
+2  A: 

I have found .NET 4.0 to be just a tiny bit slower in one test suite we run. The test runs a bunch of queries against a SQLite database using System.Data.Sqlite, and they run 1-2% faster on .NET 3.5 compared to 4.0. Not sure why they are faster, but we are talking about milliseconds here so I'm not too worried.

John JJ Curtis
@Jeff: Interesting. Is System.Data.Sqlite 'native' 4.0 version or is it running side-by-side on 2.0?
Dejan Stanič
@Dejan we are using the mixed mode System.Data.Sqlite that has the native code in it along with the CLR code.
John JJ Curtis
@Jeff, which 4.0?
Henk Holterman
@Dejan System.Data.Sqlite.dll is the .NET 2.0 build from July 2009.
John JJ Curtis
@Dejan fascinating, I recompiled the System.Data.Sqlite code into my .NET 4.0 project and now the times are about identical to the .NET 2.0 version.
John JJ Curtis
@Jeff: That makes sense - probably memory usage went down also?
Dejan Stanič
@Dejan yes it looks like it
John JJ Curtis
+2  A: 

Don't get your hopes up, .NET 4.0 is definitely not a perf oriented release. Before anything else, it is a compatibility release. Five long years of MSFT not being able to release a side-by-side installable version of the CLR and the base class libraries come to end.

Better yet, it is a SxS version that even supports running old versions of the CLR together with the new version in one process. That's an awesome accomplishment, I didn't think it was possible. The many BCL additions are cream on the cake.

Hans Passant
+2  A: 
ASP.NET 4 Runtime 
      o Focused on two areas
            + Performance
            + Extensibility
      o New resource monitoring options
      o New performance features
            + Session state
            + Improving perceived application startup
      o Output cache extensibility

Check this link http://ecn.channel9.msdn.com/o9/pdc09/ppt/FT57.pptx

jalchr