-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eskip: add BenchmarkJsonUnmarshal (#2876)
Add a benchmark of unmarshalling 10000 routes from JSON and compare its performance to eskip parsing. This establishes a baseline for future optimizations. ``` $ benchstat -col .name <(go test ./eskip -run=NONE -bench='BenchmarkJsonUnmarshal|BenchmarkParse$' -count=10) goos: linux goarch: amd64 pkg: github.com/zalando/skipper/eskip │ Parse │ JsonUnmarshal │ │ sec/op │ sec/op vs base │ *-8 247.1m ± 1% 1281.4m ± 16% +418.51% (p=0.000 n=10) │ Parse │ JsonUnmarshal │ │ B/op │ B/op vs base │ *-8 49.02Mi ± 0% 46.54Mi ± 0% -5.06% (p=0.000 n=10) │ Parse │ JsonUnmarshal │ │ allocs/op │ allocs/op vs base │ *-8 1.080M ± 0% 1.420M ± 0% +31.48% (p=0.000 n=10) ``` Signed-off-by: Alexander Yastrebov <[email protected]>
- Loading branch information
1 parent
4a0606a
commit acacf3e
Showing
2 changed files
with
44 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters