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)
- How can i prevent a http connection to close HOT 3
- BasicAuth is not suitable for proxy auth
- Can't get status as expected from context.Status() HOT 1
- Gin Context implementation breaks context.Context contract HOT 4
- [Suggestions] Introducing an AI-powered robot to assist with daily issue and pull request (PR) tasks.
- Need c.JSON() response like behaviour for c.SSEvent() response for supporting first party clients like OpenAI SDK HOT 2
- custom time.Time type can not use bindQuery get a value. HOT 3
- configure server parameters HOT 1
- The binding:"required" tag does not seem to work for struct types HOT 3
- Is there a way to preserve order in JSON on response? HOT 1
- redirect is not success HOT 1
- I want to use shouldmindbodywith first and then use formafile, but it doesn't work right now HOT 3
- Extend the routing tree entry
- Transparent decompression for gzip, deflate, etc? HOT 1
- Custom time.Time type can not use bindQuery get a value 2 HOT 2
- http: response.Write on hijacked connection from github.com/gin-gonic/gin.(*responseWriter).Write (response_writer.go:83) HOT 1
- Suggestion: Move Print Debug to Run() functions? HOT 7
- AbortWithStatusJSON doesn't abort context HOT 2
- I translated `tree.go` into java
- GetUint and GetUint64 wrong return HOT 1
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.