@@ -57,17 +57,17 @@ the same settings after the full run encountered transient storage latency.
5757Absolute throughput varies by machine; the relationships between drivers are
5858the useful part.
5959
60- | Scenario | @photostructure/sqlite | better-sqlite3 | node: sqlite | vs node: sqlite |
61- | ----------------------- | ---------------------: | ------------------: | ------------------: | -------------: |
62- | SELECT by Primary Key | 97 ,000 ops/s ±0.6 % | 120,000 ops/s ±0.6 % | 110,000 ops/s ±0.5 % | 0.90x |
63- | SELECT Range | 420 ops/s ±0.5 % | 1,500 ops/s ±3.5 % | 580 ops/s ±1.6 % | 0.71x |
64- | SELECT with Iterator | 520 ops/s ±0.8 % | 1,400 ops/s ±1.1 % | 1,100 ops/s ±1.2 % | 0.45x |
65- | INSERT Single Row † | 65 ops/s ±3.4 % | 65 ops/s ±2 .1% | 65 ops/s ±2.2 % | 1.00x |
66- | INSERT in Transaction ‡ | 57 ops/s ±2.7 % | 58 ops/s ±2.5 % | 59 ops/s ±2.9 % | 0.97x |
67- | SELECT with JOIN | 1,700 ops/s ±1.4 % | 1,700 ops/s ±0.4 % | 1,600 ops/s ±0 .7% | 1.02x |
68- | INSERT with BLOB † | 730 ops/s ±1.6 % | 730 ops/s ±0.4 % | 720 ops/s ±1.8 % | 1.01x |
69- | UPDATE with Index † | 740 ops/s ±4.5 % | 740 ops/s ±3.2 % | 750 ops/s ±4.5 % | 0.99x |
70- | DELETE Bulk ‡ | 81 ops/s ±3 .9% | 83 ops/s ±3.3 % | 88 ops/s ±4.6 % | 0.92x |
60+ | Scenario | @photostructure/sqlite | better-sqlite3 | node: sqlite | @ photostructure/sqlite vs node: sqlite |
61+ | ----------------------- | ---------------------: | ------------------: | ------------------: | ------------------------------------ : |
62+ | SELECT by Primary Key | 100 ,000 ops/s ±1.2 % | 120,000 ops/s ±1.1 % | 110,000 ops/s ±1.3 % | 0.89× |
63+ | SELECT Range | 640 ops/s ±1.9 % | 1,500 ops/s ±2.1 % | 1,200 ops/s ±2.8 % | 0.52× |
64+ | SELECT with Iterator | 520 ops/s ±1.9 % | 1,400 ops/s ±1.2 % | 1,100 ops/s ±2.0 % | 0.46× |
65+ | INSERT Single Row † | 720 ops/s ±2.7 % | 710 ops/s ±1 .1% | 720 ops/s ±2.5 % | 1.00× |
66+ | INSERT in Transaction ‡ | 310 ops/s ±1.8 % | 330 ops/s ±0.8 % | 400 ops/s ±4.7 % | 0.77× |
67+ | SELECT with JOIN | 1,600 ops/s ±1.5 % | 1,700 ops/s ±1.5 % | 1,600 ops/s ±1 .7% | 1.02× |
68+ | INSERT with BLOB † | 670 ops/s ±8.9 % | 670 ops/s ±3.0 % | 680 ops/s ±3.7 % | 0.99× |
69+ | UPDATE with Index † | 700 ops/s ±1.4 % | 700 ops/s ±1.1 % | 650 ops/s ±10.1 % | 1.08× |
70+ | DELETE Bulk ‡ | 270 ops/s ±0 .9% | 290 ops/s ±1.2 % | 340 ops/s ±1.3 % | 0.80× |
7171
7272† Single-operation writes commit once per operation. With rollback journaling
7373and ` synchronous=FULL ` , durable storage sync dominates and the drivers tie.
0 commit comments