Comments (15)
+1 π
from gin.
App Engine is actually on Go 1.2, I suggest to dont break compatibility.
from gin.
shit
from gin.
https://github.com/gin-gonic/gin/tree/sync_pool
from gin.
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.
And static routing: Gin is ~149 times lighter than martini
from gin.
+1
Who knows when App Engine will support 1.3? May take a long time...
from gin.
https://groups.google.com/forum/#!topic/google-appengine-go/fUNE3jpYFeU
from gin.
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.
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.
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.
I do not know how you got that situation, but it could be a bug in the Go toolkit codebase
from gin.
@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.
@alexandernyquist @manucorporat you're right, it works. Thanks
from gin.
Thanks @alexandernyquist, you help me too.
from gin.
Related Issues (20)
- url parameters / path parameters /something(:id) HOT 7
- Is there any way to change the http request method? HOT 2
- Golang-Gin HOT 4
- How to use βAcceptedβ HOT 1
- Trailers sent twice if no body written HOT 2
- Pass variable in rout HOT 1
- Register tauri:// scheme (or allow custom schemes upstream?)
- please support get parms from Transfer-Encoding:compress-deflate
- unexpected EOF during install HOT 1
- sse panic on fasthttphandler HOT 1
- Will it be made into a more comprehensive framework later on? HOT 4
- How does the gin close the log file? HOT 3
- Should we use url.PathUnescape instead of url.QueryUnescape when UnescapePathValues is true
- go get failed: The requested name is valid, but no data of the requested type was found HOT 1
- Attach Response Headers (or middlewares) to redirected requests (CORS issues) HOT 1
- Should context.GetRawData() also copy body to BodyBytesKey? HOT 3
- YAML BindBody should not parse JSON content HOT 1
- Gin do not support javascript ? HOT 5
- Does gin.Recovery() run before or after Group middleware? HOT 1
- How can i prevent a http connection to close HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gin.