can you please have a look at this "Performance" Test between latest Telerik & EF: The EF appears to be 4 times fast with 400000 records in a local SqlServer-Environment. I know this way of "performance-testing" is not the best, but we have lots of pro vs. cons ORM/Datareader/Writer:
public List<Car> CarsTelerikData { get; set; }
public List<Cars> CarsEFData { get; set; }
for (int i = 0; i < 6; i++) // 6 times 400000 records
{
Stopwatch sw;
sw =
new Stopwatch();
sw.Start();
CarsEFData = GetCarEFData();
sw.Stop();
ef.Add(sw.Elapsed.TotalSeconds);
Stopwatch sw1 =
new Stopwatch();
sw1.Start();
CarsTelerikData = GetCarTelerikData();
sw1.Stop();
telerik.Add(sw1.Elapsed.TotalSeconds);
}
}
private List<Cars> GetCarEFData()
{
using (SofiaCarRentalEntities context = new SofiaCarRentalEntities())
{
return context.Cars.Where(car => car.Model == "VW Touran").ToList();
}
}
private List<Car> GetCarTelerikData()
{
using (IObjectScope scope = SofiaCarRentalDBProvider.GetNewObjectScope())
{
return scope.Extent<Car>().Where(car => car.Model == "VW Touran").ToList();
}
}