Benchmarks for Golang SQLite Drivers
Note This work is sponsored by Monibot - Website, Server and Application Monitoring. Try out Monibot for free at https://monibot.io.
For benchmarks I used the following libraries:
bvinc, github.com/bvinc/go-sqlite-lite, a CGO-based solution. This is not a database/sql driver.
craw, github.com/crawshaw/sqlite, a CGO-based solution. This is not a database/sql driver.
eaton, github.com/eatonphil/gosqlite, a CGO-based solution. This is not a database/sql driver. (addded by @c4rlo)
glebarez, github.com/glebarez/go-sqlite, a pure Go solution. This is a newer library, based on the modernc libraries (added by @dcarbone). This is a database/sql driver.
mattn, github.com/mattn/go-sqlite3, a CGO-based solution. This library is (still) the de-facto standard and widely used. This is a database/sql driver.
modernc, modernc.org/sqlite, a pure Go solution. This is a newer library, based on the SQLite C code transpiled to Go. This is a database/sql driver.
ncruces, github.com/ncruces/go-sqlite3, a pure Go solution based on SQLite's WASM build and wazero. This is a database/sql driver.
... continue reading