Skip to content

Performance regression with echo 4.2.0 #1777

Closed
@stffabi

Description

Issue Description

We have just updated to echo 4.2.0 and have seen a relatively high performance regression with that release. With bisecting
it seems like commit 2d79ff3 has introduced a perfomance penalty of about 30-40%.

The following benchstat has been generated with https://github.com/vishr/web-framework-benchmark comparing commit
cf2fcad to 2d79ff3.

name             old time/op    new time/op    delta
EchoStatic-8       29.5µs ± 2%    38.1µs ± 2%  +29.26%  (p=0.000 n=9+8)
EchoGitHubAPI-8    46.2µs ± 1%    62.8µs ± 1%  +35.93%  (p=0.000 n=8+9)
EchoGplusAPI-8     2.29µs ± 4%    3.23µs ± 1%  +41.25%  (p=0.000 n=9+9)
EchoParseAPI-8     3.99µs ± 1%    5.67µs ± 1%  +42.00%  (p=0.000 n=9+9)

Steps to reproduce

Run https://github.com/vishr/web-framework-benchmark benchmark with commit 2d79ff3 and cf2fcad

Version/commit

4.2.0 first commit with regression 2d79ff3

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions