Given a simple test:
Using Dapper:
for (int i = 0; i < 10000; i++)
{
Connection.Execute("UPDATE User SET Name = 'Max'");
}
The duration of this operation is as follows measured with a StopWatch:
RunTime 00:00:37.51 Duration: 00:00:37.5150734 Duration in Milli seconds: 37515
Using Dapper plus:
User user = new User();
user.Name = "Max";
DapperPlusManager.Entity<User>().Table("User");
for (int i = 0; i < 10000; i++)
{
Connection.BulkUpdate(user);
}
The duration of this operation is as follows measured with a StopWatch:
RunTime 00:00:39.85 Duration: 00:00:39.8553959 Duration in Milli seconds: 39855
I did this test in different scenarios and Dapper is always faster than Dapper plus
The question is clear, why is Dapper faster than Dapper Plus? What can cause such a thing?
Note: i'm using Sqlite with entity framework