Coder Social home page Coder Social logo

boilbench's People

Contributors

aarondl avatar aeneasr avatar dependabot[bot] avatar gemscng avatar nullbio avatar sergiishapoval avatar zikaeroh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

boilbench's Issues

Add ent benchmark

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?

Extending models in package .

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?).

Cannot run because go-xorm/core is gone

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.