Giter VIP home page Giter VIP logo

Comments (15)

allochi avatar allochi commented on April 19, 2024

+1 πŸ˜„

from gin.

javierprovecho avatar javierprovecho commented on April 19, 2024

App Engine is actually on Go 1.2, I suggest to dont break compatibility.

from gin.

manucorporat avatar manucorporat commented on April 19, 2024

shit

from gin.

manucorporat avatar manucorporat commented on April 19, 2024

https://github.com/gin-gonic/gin/tree/sync_pool

from gin.

manucorporat avatar manucorporat commented on April 19, 2024

I am about to release a new branch (sync_pool + tons of performance improvements)
Up to 57x times faster than Martini!

BenchmarkGin_Param  10000000           208 ns/op          33 B/op          1 allocs/op
BenchmarkMartini_Param    500000          6657 ns/op        1251 B/op         12 allocs/op
BenchmarkGin_Param5  5000000           395 ns/op         162 B/op          1 allocs/op
BenchmarkMartini_Param5   200000         13237 ns/op        1376 B/op         12 allocs/op
BenchmarkGin_Param20     1000000          1044 ns/op         646 B/op          1 allocs/op
BenchmarkMartini_Param20       50000         59637 ns/op        3765 B/op         14 allocs/op
BenchmarkGin_ParamWrite  5000000           320 ns/op          41 B/op          1 allocs/op
BenchmarkMartini_ParamWrite   200000          7988 ns/op        1359 B/op         15 allocs/op
BenchmarkGin_GithubStatic   20000000           135 ns/op           0 B/op          0 allocs/op
BenchmarkMartini_GithubStatic     100000         20145 ns/op         927 B/op         11 allocs/op
BenchmarkGin_GithubParam     5000000           398 ns/op          97 B/op          1 allocs/op
BenchmarkMartini_GithubParam      100000         24053 ns/op        1283 B/op         12 allocs/op
BenchmarkGin_GithubAll     50000         70572 ns/op       14040 B/op        168 allocs/op
BenchmarkMartini_GithubAll       100      10542475 ns/op      258437 B/op       2714 allocs/op
BenchmarkGin_GPlusStatic    20000000            94.3 ns/op         0 B/op          0 allocs/op
BenchmarkMartini_GPlusStatic      500000          5202 ns/op         927 B/op         11 allocs/op
BenchmarkGin_GPlusParam 10000000           276 ns/op          65 B/op          1 allocs/op
BenchmarkMartini_GPlusParam   200000          9448 ns/op        1251 B/op         12 allocs/op
BenchmarkGin_GPlus2Params    5000000           315 ns/op          65 B/op          1 allocs/op
BenchmarkMartini_GPlus2Params     100000         29714 ns/op        1383 B/op         16 allocs/op
BenchmarkGin_GPlusAll     500000          3568 ns/op         655 B/op         11 allocs/op
BenchmarkMartini_GPlusAll   
   10000        165488 ns/op       16373 B/op        179 allocs/op
BenchmarkGin_ParseStatic    20000000            96.5 ns/op         0 B/op          0 allocs/op
BenchmarkMartini_ParseStatic      500000          5878 ns/op         927 B/op         11 allocs/op
BenchmarkGin_ParseParam 10000000           248 ns/op          65 B/op          1 allocs/op
BenchmarkMartini_ParseParam   200000          8125 ns/op        1251 B/op         12 allocs/op
BenchmarkGin_Parse2Params   10000000           273 ns/op          65 B/op          1 allocs/op
BenchmarkMartini_Parse2Params     200000          8255 ns/op        1284 B/op         12 allocs/op
BenchmarkGin_ParseAll     500000          5579 ns/op         660 B/op         16 allocs/op
BenchmarkMartini_ParseAll      10000        213725 ns/op       29389 B/op        305 allocs/op
BenchmarkGin_StaticAll     50000         37651 ns/op        3632 B/op         32 allocs/op
BenchmarkMartini_StaticAll       500       3810406 ns/op      156048 B/op       2351 allocs/op

from gin.

manucorporat avatar manucorporat commented on April 19, 2024

And static routing: Gin is ~149 times lighter than martini

from gin.

rogeriomarques avatar rogeriomarques commented on April 19, 2024

+1

Who knows when App Engine will support 1.3? May take a long time...

from gin.

manucorporat avatar manucorporat commented on April 19, 2024

https://groups.google.com/forum/#!topic/google-appengine-go/fUNE3jpYFeU

from gin.

javierprovecho avatar javierprovecho commented on April 19, 2024

Hey! Checkout the latest compatible changes of Gin for App Engine at this branch:
https://github.com/gin-gonic/gin/tree/app_engine

from gin.

maximelamure avatar maximelamure commented on April 19, 2024

Hey,
With Go 1.3 I have this error with go get github.com/gin-gonic/gin

go/src/github.com/gin-gonic/gin/deprecated.go:4: import /XXX/projects/go/pkg/darwin_amd64/github.com/gin-gonic/gin/binding.a: object is [darwin amd64 go1.2.2 X:none] expected [darwin amd64 go1.3 X:precisestack]

from gin.

manucorporat avatar manucorporat commented on April 19, 2024

weird... the CI is passing for Go1.3.
it looks like something is outdated. you could remove the pkg folder and rebuild it...

gin/binding is compiled for Go1.2.2... you should remove /XXX/projects/go/pkg/darwin_amd64/github.com/gin-gonic/gin/binding.a

I guess, it will be compiled automatically for Go1.3

from gin.

manucorporat avatar manucorporat commented on April 19, 2024

I do not know how you got that situation, but it could be a bug in the Go toolkit codebase

from gin.

pinscript avatar pinscript commented on April 19, 2024

@manucorporat You are right. I guess that @maximelamure updated his Go version and missed to remove any compiled libraries.

Remove your $GOPATH/pkg folder and you should be fine.

from gin.

maximelamure avatar maximelamure commented on April 19, 2024

@alexandernyquist @manucorporat you're right, it works. Thanks

from gin.

brunousml avatar brunousml commented on April 19, 2024

Thanks @alexandernyquist, you help me too.

from gin.

Related Issues (20)

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.