Client-side database benchmark

A head-to-head comparison of IndexedDB, SQLite, and PGlite (newer Postgres running as WASM) running entirely in your browser. One warmup run, three timed runs, median reported.

IndexedDB browser-native SQLite OPFS · SAH pool PGlite Postgres pages in IndexedDB
detecting environment…
rows
idle. click Run benchmark to begin

Load & init

Time from import to a ready, empty schema. Lower is better.

milliseconds

Bulk write

Insert N rows in a single transaction. Higher is better.

rows / sec

Sequential read

Read all N rows back in order. Higher is better.

rows / sec

Random point read

100 lookups by random primary key. Higher is better.

reads / sec

Indexed query

100 lookups by indexed email column. Higher is better.

reads / sec
Raw measurements
EngineOperationRowsMedian (ms)Min (ms)Max (ms)Ops/sec
no runs yet