Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Performance degradation #329

@JimmyPettersson85

Description

@JimmyPettersson85

This issue is in response to issue 88 for the micro framework echo.

First of all echo is about 8x faster than Gin in that benchmark. Second, Gin went from 69373 ns/op to 412886 ns/op, nearly 6 times slower, what happened?

Since performance is one of the main selling points for Gin I think this is worth discussing. I really like Gin but the reason I started using it was because of the performance, I assume this is the case for many others too.

Here are the relevant numbers

April 1, 2015
BenchmarkEcho_GithubAll 30000 42728 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GithubAll 20000 69373 ns/op 13792 B/op 167 allocs/op
June 3, 2015
BenchmarkEcho_GithubAll 30000 51470 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GithubAll 3000 412886 ns/op 0 B/op 0 allocs/op

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions