Title Image

Don Xml's Grok This

The home of Don Demsak
Welcome to Don Xml's Grok This Sign in | Help
in Search

This Blog

Syndication

Site Sponsors

DonXml's All Things Techie

DataMapper Performance Statistics On VS2005 Beta 1 and SQL Server 2005 Beta2

I took the code from my previous DataMapper examples, which was written for .Net 1.1 and SQL2K, and ported it to VS2005 Beta 1 with SQL Server 2K5.  I did not have to change one line of code in either the sprocs or in the 1.1 C# code (great going VS & SQL team).  Since my example code also used the DAAB 3.1, I decided to port that too, with no issues.  Since I was going to be testing the beta versions running in VPC, I new that I would not be able to compare my original stats to the new stats.  But since what I’m really after was performance differences versus a baseline of the DataReader, and comparing those numbers, running on a host OS versus a VPC OS should not be a factor (as long as the OS is the same, which it was, Windows XP).

So let’s look at the numbers. 

The original stats (using .Net 1.1)

DataReader 341
DataSet 411 21%
Xpath 450 32%
XmlSerialization 542 59%

Using .Net 2.0 beta 1 with SQL Server 2K5 Beta 2

DataReader 1545
DataSet 1772 15%
Xpath 1993 29%
XmlSerialization 2069 34%

So, when comparing to a 2.0 base of DataReader, the other 3 techniques all picked up their performance (relative to the 1.1 ratios).  The biggest gain was in XmlSerialization performance which cut the ratio in half (which makes sense since most of hard lifting is done in the generated code).  Now I need to get down and dirty and do 2 things, tweak the .Net code to use 2.0 features (like generics and the new XPathNav) and then tweak the SQL Server sprocs to take advantage of the better SQLXML features.

But overall, considering this is still beta code and not totally performance tuned, these are incredible numbers.

 

Published Wednesday, August 04, 2004 5:37 PM by donxml
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

TrackBack said:

August 9, 2004 8:27 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About donxml

I’m an independent consultant, specializing in .Net solutions architecture, based out of New Jersey who also doubles as an evangelist for XML, Domain Driven Design, enterprise architecture and .Net. I do not work for Microsoft, the W3C or any other big company that you may know of (at least not yet). I’ve been an indie for over ten years, and although I’ve been tempted a couple times to take a job with companies like Microsoft, I’ve haven’t found something better than my current situation. I work mostly with the large pharmaceuticals that are based here in New Jersey, and usually find myself on long term contracts. Definitely not the prototypical indie consultant, but it lets me dedicate time to my non-income generating activities like the developer community stuff, plus financing open source projects like XPathmania and MVP-XML. If you would like to talk to me about doing some contract work, just contact me via the contact page. My rates vary widely, depending on lots of different variables, but mostly distance from Jersey, and type of work. Plus, I’ve been known to donate some of my code for various projects.
Powered by Community Server, by Telligent Systems