Comparing the performance of different .NET object mappers.
- Mapperly⭐️: A .NET source generator for generating object mappings. No runtime reflection - docs
- Mapster⭐️: A fast, fun, and stimulating object-to-object Mapper - docs
- AutoMapper: A convention-based object-object mapper in .NET - docs
- EmitMapper: Powerful customisable tool for mapping entities to each other
- TinyMapper: A quick object-object mapper for .NET - docs
- ExpressMapper: .Net open source library - lightweight, lighting fast .Net mapper to map one type of object(s) to another in automated and easy way - docs
- AgileMapper: A zero-configuration, highly-configurable object-object mapper with viewable execution plans - docs
- Manual mapping: Generated by MappingGenerator visual studio extension, an "AutoMapper" like Roslyn based, code fix provider that allows to generate mapping code in design time.
Run the following command.
dotnet run -c Release
Mapperly
is the Fastest mapper.Mapster
is the second fastest mapper.