Appearance
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.
| Library | Mean | Median | P95 | StdDev | Allocated | BDN Rank |
|---|---|---|---|---|---|---|
| JASE | 2.711 ms | 2.613 ms | 3.479 ms | 0.420 ms | 7.5 KB | 1 |
| RepoDB | 2.866 ms | 2.703 ms | 3.737 ms | 0.718 ms | 12.83 KB | 1 |
| LinqToDB | 2.937 ms | 2.831 ms | 3.640 ms | 0.544 ms | 43.34 KB | 1 |
| Dapper | 3.030 ms | 2.645 ms | 5.010 ms | 1.388 ms | 11.43 KB | 1 |
| EF | 3.058 ms | 2.985 ms | 3.672 ms | 0.371 ms | 29.3 KB | 2 |
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*"