🥇 .NET Object Mappers Benchmark

Comparison between

  • AutoMapper : A convention-based object-object mapper in .NET - website
  • ExpressMapper : .Net open source library - lightweight, lighting fast .Net mapper to map one type of object(s) to another in automated and easy way
  • TinyMapper : A quick object-object mapper for .NET - website
  • AgileMapper : A zero-configuration, highly-configurable object-object mapper with viewable execution plans - website
  • Manual mapping : Generated by MappingGenerator, an "AutoMapper" like, Roslyn based, code fix provider that allows to generate mapping code in design time - Visual Studio Extension
  • Mapster : A fast, fun and stimulating object to object Mapper

Run benchmark

Run run the following command.

dotnet run --configuration Release

Result

Tip : AgileMapper mean time was different (about 1,900 or 15,000 ns) in several times! Benchmark