Skip to content

Database Benchmarks – InsertSingle ​

This benchmark measures inserting one ComplexPoco using BenchmarkDotNet.

Results - PostgreSQL (local Docker) ​

Local run 2026-09-18 after removing the Dapper per-row transaction wrapper. Postgres localhost / ormbench, AMD Ryzen 7 PRO 7840U, .NET 10.0.11. BenchmarkDotNet Monitoring: LaunchCount=2, WarmupCount=10, IterationCount=100.

LibraryMeanMedianP95StdDevAllocatedBDN Rank
JASE2.711 ms2.613 ms3.479 ms0.420 ms7.5 KB1
RepoDB2.866 ms2.703 ms3.737 ms0.718 ms12.83 KB1
LinqToDB2.937 ms2.831 ms3.640 ms0.544 ms43.34 KB1
Dapper3.030 ms2.645 ms5.010 ms1.388 ms11.43 KB1
EF3.058 ms2.985 ms3.672 ms0.371 ms29.3 KB2

How to read this ​

  • Latency: BDN ranked JASE / RepoDB / LinqToDB / Dapper together (rank 1). Gaps are small and noisy — claim competitive, not “fastest insert ORM.”
  • Memory: JASE’s allocation (~7.5 KB) remains the clearest differentiator vs Dapper/RepoDB (~11–13 KB) and EF (~29 KB).
  • This is a single-row insert of narrow ComplexPoco, not bulk insert.
  • Absolute ms are not comparable to the older ProxMox-lab table (different host). Relative story after the Dapper fairness fix: Dapper is in the same rank band as JASE.

Re-run *InsertSingle* before quoting on a different machine. Environment notes: database.md.

How to run ​

powershell
$env:JASE_BENCH_Postgres__ConnectionString = "Host=localhost;Port=5432;Database=ormbench;Username=orm_bench;Password=P@ssBench123!"
dotnet run --project Benchmarks/DbBenchmarks --configuration Release -- --filter "*InsertSingle*"