I ran a full BenchmarkDotNet suite comparing:
EF Core (Tracked β / NoTracking β)
Dapper (Raw SQL, no ORM fluff)
We tested:
- SelectById
- SelectMany (1000 rows)
- Insert speed
- Memory usage & allocations
π₯ Results?
Dapper crushed EF in insert performance (65x faster)
Tracking in EF adds more overhead than you think
This is a real-world test, not just theory.
πΉ Watch the video and see the numbers for yourself.
Top comments (1)
not ideal when to comment you have to sign-in
dapper and EF are doing different things but if you wanting to compare like this it would also benifit from comparing if the same feature exists...
Example:
this would be closer to Dapper in terms of doing the same thing... and on performance..
i just think its important to understand the tooling and whats it offers, strength and weeknesses.
would love to see a big project... with lots of funcactionlity changed at wim to a different DB all together...
dont get me wrong i think both have their place, and if used correctly can be very powerful.