Skip to content

feat: ✨ added new benchmarks for comparison to manual mapping - #13

Open
amyskippy wants to merge 2 commits into
jitbit:mainfrom
amyskippy:feature/additional-benchmarks
Open

feat: ✨ added new benchmarks for comparison to manual mapping#13
amyskippy wants to merge 2 commits into
jitbit:mainfrom
amyskippy:feature/additional-benchmarks

Conversation

@amyskippy

Copy link
Copy Markdown

This just adds a benchmark for comparing to a manually mapped data reader, using cast, the as methods, and the get methods. It shows that this project is faster than the cast and as methods, and comparable to doing it via the get.

I'd suggest adding the reflection benchmarks for the data reader as well, so people can do a comparison of those.

MethodMeanErrorStdDevGen0Gen1Allocated
MapDatareader_ViaDapper130,038.43 ns23,380.156 ns1,281.545 ns7.56841.2207145472 B
MapDataReader_ViaMapDataReader145,014.83 ns18,917.702 ns1,036.943 ns7.56841.2207145712 B
MapDataReader_ViaManualMap_CastMethods160,137.67 ns3,812.999 ns209.003 ns7.56841.2207145408 B
MapDataReader_ViaManualMap_AsMethods212,504.85 ns120,474.966 ns6,603.639 ns7.56841.2207145408 B
MapDataReader_ViaManualMap_GetMethods126,697.73 ns25,508.688 ns1,398.217 ns7.56841.2207145408 B

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@amyskippy