You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SharpCoreDB is a high-performance embedded database for .NET 10. This document presents comprehensive benchmark results comparing SharpCoreDB against SQLite and LiteDB.
Key Findings
Operation
SharpCoreDB
SQLite
LiteDB
Winner
Analytics (SIMD)
1.38 µs
590 µs
25.8 ms
✅ SharpCoreDB 18,700x faster than LiteDB
INSERT (1K batch)
11.89 ms
6.35 ms
6.55 ms
✅ SharpCoreDB competitive
SELECT (Full Scan)
847 µs
N/A
N/A
✅ SharpCoreDB fastest
UPDATE (500 random)
7.91 ms
6.44 ms
60.4 ms
✅ SharpCoreDB 7.6x faster than LiteDB
🚀 Latest Benchmark Results (March 14, 2026)
Performance Trend: 3 Runs Compared (Feb 8 → Feb 20 → Mar 14)
Major performance gains observed after the IAsyncDisposable lifecycle refactor and SQL lexer/parser fixes:
📈 Notable Improvements
Benchmark
Feb 8
Feb 20
Mar 14
Improvement
SCDB_Single_Unencrypted_Select
4.01 ms
2.52 ms
1.81 ms
📈 55% faster (vs Feb 8)
SCDB_Single_Encrypted_Select
2.74 ms
2.35 ms
1.57 ms
📈 43% faster (vs Feb 8)
AppendOnly_Update
143.42 ms
113.69 ms
70.36 ms
📈 51% faster (vs Feb 8)
SCDB_Dir_Encrypted_Update
9.16 ms
11.13 ms
7.91 ms
📈 14% faster (vs Feb 8)
SCDB_Dir_Unencrypted_Insert
17.68 ms
12.59 ms
11.89 ms
📈 33% faster (vs Feb 8)
✅ Stable (No Regressions)
Benchmark
Feb 8
Feb 20
Mar 14
Status
Columnar_SIMD_Sum
0.18 µs
1.40 µs
1.38 µs
✅ Stable
SQLite_Sum
600 µs
658 µs
590 µs
✅ Stable
SQLite_Insert
6.42 ms
5.93 ms
6.35 ms
✅ Stable
SQLite_Update
6.99 ms
6.52 ms
6.44 ms
✅ Stable
PageBased_Select
891 µs
921 µs
847 µs
✅ Stable
SCDB_Dir_Unencrypted_Select
951 µs
926 µs
950 µs
✅ Stable
PageBased_Insert
11.82 ms
15.25 ms
11.93 ms
✅ Stable
PageBased_Update
12.85 ms
10.72 ms
12.80 ms
✅ Stable
SCDB_Single_Unencrypted_Insert
127.86 ms
130.84 ms
134.04 ms
✅ Stable
SCDB_Single_Encrypted_Insert
131.21 ms
130.41 ms
136.91 ms
✅ Stable
SCDB_Single_Unencrypted_Update
117.29 ms
128.01 ms
120.55 ms
✅ Stable
SCDB_Single_Encrypted_Update
126.89 ms
126.97 ms
124.70 ms
✅ Stable
Full BenchmarkDotNet Results (March 14, 2026)
BenchmarkDotNet v0.15.8, Windows 11 (10.0.26200.8037/25H2)
Intel Core i7-10850H CPU 2.70GHz, 1 CPU, 12 logical and 6 physical cores
.NET SDK 10.0.200 — .NET 10.0.4, X64 RyuJIT x86-64-v3
| Method | Categories | Mean | Allocated |
|------------------------------- |----------- |---------------:|-----------:|
| Columnar_SIMD_Sum | Analytics | 1.375 us | - |
| SQLite_Sum | Analytics | 590.125 us | 4408 B |
| LiteDB_Sum | Analytics | 25,756.675 us | 11396424 B |
| | | | |
| SQLite_Insert | Insert | 6,352.110 us | 926008 B |
| LiteDB_Insert | Insert | 6,545.620 us | 12686912 B |
| SCDB_Dir_Unencrypted_Insert | Insert | 11,889.640 us | 13948448 B |
| SCDB_Dir_Encrypted_Insert | Insert | 12,006.990 us | 13948048 B |
| PageBased_Insert | Insert | 11,929.020 us | 14012576 B |
| AppendOnly_Insert | Insert | 21,787.660 us | 13421312 B |
| SCDB_Single_Unencrypted_Insert | Insert | 134,036.120 us | 13940672 B |
| SCDB_Single_Encrypted_Insert | Insert | 136,905.480 us | 13940392 B |
| | | | |
| PageBased_Select | Select | 847.100 us | 2593680 B |
| SCDB_Dir_Unencrypted_Select | Select | 950.460 us | 2593680 B |
| SCDB_Dir_Encrypted_Select | Select | 1,316.580 us | 2599184 B |
| SCDB_Single_Encrypted_Select | Select | 1,574.025 us | 2364776 B |
| SCDB_Single_Unencrypted_Select | Select | 1,805.330 us | 2364488 B |
| AppendOnly_Select | Select | 2,527.000 us | 2987608 B |
| | | | |
| SQLite_Update | Update | 6,442.690 us | 202104 B |
| SCDB_Dir_Encrypted_Update | Update | 7,912.880 us | 2222040 B |
| SCDB_Dir_Unencrypted_Update | Update | 11,071.375 us | 2222704 B |
| PageBased_Update | Update | 12,801.960 us | 2227184 B |
| AppendOnly_Update | Update | 70,363.175 us | 22454680 B |
| LiteDB_Update | Update | 60,370.060 us | 24333040 B |
| SCDB_Single_Unencrypted_Update | Update | 120,546.125 us | 4239312 B |
| SCDB_Single_Encrypted_Update | Update | 124,702.460 us | 4242360 B |