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. sqinn, github.com/cvilsmeier/sqinn-go, a solution without CGO. It uses github.com/cvilsmeier/sqinn to access SQLite database files. This is not a database/sql driver. zombie, github.com/zombiezen/go-sqlite, a rewrite of the crawshaw driver, using the modernc libraries. This is not a database/sql driver. The test setup is as follows: OS: Debian/GNU Linux amd64 version 12.11 CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 8 cores RAM: 32GB Disk: 1TB NVME SSD go version go1.24.5 linux/amd64 The benchmark was run on 2025-08-17, with current library versions, see go.mod file. Each test was run twice. The better result was then recorded. This is not very scientific. A general note on benchmarks and this repository: Do not trust benchmarks, write your own. This specific benchmark is modelled after my very own database usage scenarios. Your scenarios may be totally dif...
First seen: 2025-08-22 01:42
Last seen: 2025-08-22 04:51