show node:sqlite3 benchmark instead

Author: jestarrayCreated Sep 15, 2026Updated Sep 15, 2026

The node sqlite3 libraries in the readme are largely deprecated and unworked on and not worth comparing to. Nodejs has a built in sqlite3 module since v22 and here are the results:

AMD Ryzen 7 7800X3D 8-Core Desktop Linux Node.js v26.8.2

Generating tables...
--- reading rows individually ---
better-sqlite3 x 115,544 ops/sec ±0.07%
node:sqlite    x 112,696 ops/sec ±0.06%

--- reading 100 rows into an array ---
better-sqlite3 x 36,904 ops/sec ±0.12%
node:sqlite    x 23,015 ops/sec ±0.11%

--- iterating over 100 rows ---
better-sqlite3 x 19,486 ops/sec ±0.1%
node:sqlite    x 12,463 ops/sec ±0.18%

--- inserting rows individually ---
better-sqlite3 x 20,368 ops/sec ±3.27%
node:sqlite    x 20,695 ops/sec ±1.06%

--- inserting 100 rows in a single transaction ---
better-sqlite3 x 2,760 ops/sec ±2.73%
node:sqlite    x 2,798 ops/sec ±2.8%