• Jesper Meyer's avatar
    Updated Hand Coded benchmarks (#1206) · 3b0cd9a9
    Jesper Meyer authored
    Hand coded version did not operate under the same circumstances as others.
    
    - Add CommandBehavior.SingleResult and CommandBehavior.SingleRow. All other framworks does this under the hood.
    - Run SqlCommand.Prepare() (perhaps it should be benchmarked as "Compiled"?)
    - Use GetNullableValue because it's easier to read and slightly faster
    - _table.Rows was incrementally added, which made the benchmark run slower the longer it executed. Added _table.Rows.Clear() to prevent the growth.
    - Changed select to use * like other benchmarks
    3b0cd9a9
Benchmarks.HandCoded.cs 3.27 KB