https://github.com/qustavo/go-sql-benchmark
Benchmark among different sql libraries in Go
https://github.com/qustavo/go-sql-benchmark
Last synced: about 1 month ago
JSON representation
Benchmark among different sql libraries in Go
- Host: GitHub
- URL: https://github.com/qustavo/go-sql-benchmark
- Owner: qustavo
- Created: 2014-12-15T00:11:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-25T03:15:15.000Z (almost 9 years ago)
- Last Synced: 2025-03-05T17:50:25.878Z (about 2 months ago)
- Language: Go
- Size: 176 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
go-sql-benchmark
================Benchmark among different SQL libraries in Go
Go-sql-benchmark will compare the following SQL libraries:
- Native [database/sql](http://golang.org/pkg/database/sql/driver/)
- https://github.com/jmoiron/sqlx
- https://github.com/gchaincl/dotsql
- https://github.com/lann/squirrel
- https://github.com/astaxie/beego
- https://github.com/jinzhu/gormUsage:
Run the shell script: ./run.sh
The benchmarks mentioned bellow were run on the following computer:
Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
8G Ram - 256GB SSDBenchmark Output:
PASS
BenchmarkNative 100000 13476 ns/op 376 B/op 14 allocs/op
BenchmarkSqlX 100000 16334 ns/op 537 B/op 17 allocs/op
BenchmarkDotSQL 100000 13361 ns/op 376 B/op 14 allocs/op
BenchmarkSqrl 50000 29306 ns/op 2564 B/op 53 allocs/op
BenchmarkBeego 50000 32154 ns/op 1813 B/op 74 allocs/op
BenchmarkGorm 10000 642476 ns/op 13048 B/op 227 allocs/op
ok _/go-sql-benchmark 13.007s