Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
DZone MVB

Links

Social

Writing object to object mapper: my mapper vs AutoMapper

As my object to object mapper is now almost completed and I am sure it is good idea to stay on LCG (Lightweight Code Generation) I can now compare the performance of my mapper to AutoMapper.

NB! If you are building applications that will run on public servers then use AutoMapper as it is widely used and tested. AutoMapper has tons of features that my little mapper doesn’t have. Also it is easier to get support for AutoMapper if you face the troubles.

Okay, but let’s compare results. Because my mapper has no powerful features and is therefore very light it performs a little bit faster. Take look at the following report.

 My mapper vs AutoMapper

~6 times faster - not bad at all for my little feature-free mapper or what do you think?

There are some improvements I plan to add to my mapper but as these improvements doesn’t affect copying operation. I will write my final version of mapper in near future and provide it in this blog as binary and Visual Studio 2008 project.


kick it on DotNetKicks.com Shout it! 顶 Progg it Shout it
Posted: Feb 12 2010, 08:10 AM by DigiMortal | with 8 comment(s)
Filed under: , ,

Comments

DigiMortal said:

Thanks for feedback, Morten! :)

I will check it out as soon as I have time enough. As topic is still actual and fresh I hope to get there soon.

# February 14, 2010 4:55 PM