volatiletech / boilbench Goto Github PK
View Code? Open in Web Editor NEWBenchmarks for SQLBoiler.
License: BSD 3-Clause "New" or "Revised" License
Benchmarks for SQLBoiler.
License: BSD 3-Clause "New" or "Revised" License
Hi!
We use sqlboiler for a lot of our projects. Recently we discovered a new promising ORM in the Go ecosystem - Ent github.com/ent/ent. We hope it could help us with nested joins and graph queries.
What do you think about adding a benchmark for Ent into this repo?
I wonder if it's a good practice to use next method for extending models .
Adding files in same package for extending model
Example
Sqlboiler generates files in model directory example model/user.go we can create model/user_ext.go
function (user User) DoSomethingAwesome(awesome string) {
fmt.Println(user.ID,awesome) // yes it's awesome :)
}
If this method is not in documentation most probably it has too many downsides (are they critical?).
It reports mimic
is unknown.
boilbench (master) โ go test -bench . -benchmem
`mimic` is not officially supported, running under compatibility mode.
goos: darwin
goarch: amd64
pkg: github.com/volatiletech/boilbench
BenchmarkGORMDelete/gorm-8 200000 10849 ns/op 4666 B/op 95 allocs/op
BenchmarkGORPDelete/gorp-8 1000000 1404 ns/op 352 B/op 13 allocs/op
panic: Unsupported driver name: mimic
goroutine 8 [running]:
github.com/volatiletech/boilbench.BenchmarkXORMDelete(0xc00022c4e0)
/Users/tao.yang/codes/gocodes/src/github.com/volatiletech/boilbench/delete_test.go:85 +0x296
testing.(*B).runN(0xc00022c4e0, 0x1)
/usr/local/go/src/testing/benchmark.go:176 +0xb3
testing.(*B).run1.func1(0xc00022c4e0)
/usr/local/go/src/testing/benchmark.go:249 +0x5a
created by testing.(*B).run1
/usr/local/go/src/testing/benchmark.go:242 +0x7d
exit status 2
FAIL github.com/volatiletech/boilbench 3.727s
I don't know if it's the reason below:
Xorm has transferred from GitHub to GiTea.
Your mimic driver imports github.com/go-xorm/core but the xorm itself imports xorm.io/core.
Maybe you should enable go mod for boilbench.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.