Benchmarks of sql-builder libraries for Golang.
go test -timeout=5h -bench=, -benchmem -count 5 -benchtime=100000x > results/results.out
All the benchmarks are performed in the Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz machine with 1M samples and 5 iterations where lower values are good.
| Function |
Chart View |
Table View |
| Insert |
 |
 |
| Select |
 |
 |
| Update |
 |
 |
| Delete |
 |
 |
| Function |
Chart View |
Table View |
| Insert |
 |
 |
| Select |
 |
 |
| Update |
 |
 |
| Delete |
 |
 |
| Function |
Chart View |
Table View |
| Insert |
 |
 |
| Select |
 |
 |
| Update |
 |
 |
| Delete |
 |
 |
⚠️ Please note that these libraries are benchmarked against storage of sample payloads (i.e. 1, 5, and 10 KB). You are encouraged to benchmark with your custom payloads.
- Doug Martin/Goqu - SQL builder and query library for golang
- Gocraft/Dbr - Additions to Go's database/sql for super fast performance and convenience.
- Masterminds/Squirrel - Fluent SQL generation for golang
- Stephenafamo/Bob - SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite.