Skip to content

Commit 74221b8

Browse files
appleboyjavierprovecho
authored andcommittedJul 19, 2017
docs(benchmark): update benchmark data (gin-gonic#1035)
* feat(Benchmark): update benchmark data * fix format. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * docs(benchmarks): re indent column, feature gin * docs(benchmark): fix newline on vm details * docs(readme): beautify bench table, explain result
1 parent 88566b9 commit 74221b8

File tree

2 files changed

+635
-330
lines changed

2 files changed

+635
-330
lines changed
 

‎BENCHMARKS.md

+601-295
Large diffs are not rendered by default.

‎README.md

+34-35
Original file line numberDiff line numberDiff line change
@@ -44,41 +44,40 @@ Gin uses a custom version of [HttpRouter](https://github.com/julienschmidt/httpr
4444

4545
[See all benchmarks](/BENCHMARKS.md)
4646

47-
48-
Benchmark name | (1) | (2) | (3) | (4)
49-
--------------------------------|----------:|----------:|----------:|------:
50-
BenchmarkAce_GithubAll | 10000 | 109482 | 13792 | 167
51-
BenchmarkBear_GithubAll | 10000 | 287490 | 79952 | 943
52-
BenchmarkBeego_GithubAll | 3000 | 562184 | 146272 | 2092
53-
BenchmarkBone_GithubAll | 500 | 2578716 | 648016 | 8119
54-
BenchmarkDenco_GithubAll | 20000 | 94955 | 20224 | 167
55-
BenchmarkEcho_GithubAll | 30000 | 58705 | 0 | 0
56-
**BenchmarkGin_GithubAll** | **30000** | **50991** | **0** | **0**
57-
BenchmarkGocraftWeb_GithubAll | 5000 | 449648 | 133280 | 1889
58-
BenchmarkGoji_GithubAll | 2000 | 689748 | 56113 | 334
59-
BenchmarkGoJsonRest_GithubAll | 5000 | 537769 | 135995 | 2940
60-
BenchmarkGoRestful_GithubAll | 100 | 18410628 | 797236 | 7725
61-
BenchmarkGorillaMux_GithubAll | 200 | 8036360 | 153137 | 1791
62-
BenchmarkHttpRouter_GithubAll | 20000 | 63506 | 13792 | 167
63-
BenchmarkHttpTreeMux_GithubAll | 10000 | 165927 | 56112 | 334
64-
BenchmarkKocha_GithubAll | 10000 | 171362 | 23304 | 843
65-
BenchmarkMacaron_GithubAll | 2000 | 817008 | 224960 | 2315
66-
BenchmarkMartini_GithubAll | 100 | 12609209 | 237952 | 2686
67-
BenchmarkPat_GithubAll | 300 | 4830398 | 1504101 | 32222
68-
BenchmarkPossum_GithubAll | 10000 | 301716 | 97440 | 812
69-
BenchmarkR2router_GithubAll | 10000 | 270691 | 77328 | 1182
70-
BenchmarkRevel_GithubAll | 1000 | 1491919 | 345553 | 5918
71-
BenchmarkRivet_GithubAll | 10000 | 283860 | 84272 | 1079
72-
BenchmarkTango_GithubAll | 5000 | 473821 | 87078 | 2470
73-
BenchmarkTigerTonic_GithubAll | 2000 | 1120131 | 241088 | 6052
74-
BenchmarkTraffic_GithubAll | 200 | 8708979 | 2664762 | 22390
75-
BenchmarkVulcan_GithubAll | 5000 | 353392 | 19894 | 609
76-
BenchmarkZeus_GithubAll | 2000 | 944234 | 300688 | 2648
77-
78-
(1): Total Repetitions
79-
(2): Single Repetition Duration (ns/op)
80-
(3): Heap Memory (B/op)
81-
(4): Average Allocations per Repetition (allocs/op)
47+
Benchmark name | (1) | (2) | (3) | (4)
48+
--------------------------------------------|-----------:|------------:|-----------:|---------:
49+
**BenchmarkGin_GithubAll** | **30000** | **48375** | **0** | **0**
50+
BenchmarkAce_GithubAll | 10000 | 134059 | 13792 | 167
51+
BenchmarkBear_GithubAll | 5000 | 534445 | 86448 | 943
52+
BenchmarkBeego_GithubAll | 3000 | 592444 | 74705 | 812
53+
BenchmarkBone_GithubAll | 200 | 6957308 | 698784 | 8453
54+
BenchmarkDenco_GithubAll | 10000 | 158819 | 20224 | 167
55+
BenchmarkEcho_GithubAll | 10000 | 154700 | 6496 | 203
56+
BenchmarkGocraftWeb_GithubAll | 3000 | 570806 | 131656 | 1686
57+
BenchmarkGoji_GithubAll | 2000 | 818034 | 56112 | 334
58+
BenchmarkGojiv2_GithubAll | 2000 | 1213973 | 274768 | 3712
59+
BenchmarkGoJsonRest_GithubAll | 2000 | 785796 | 134371 | 2737
60+
BenchmarkGoRestful_GithubAll | 300 | 5238188 | 689672 | 4519
61+
BenchmarkGorillaMux_GithubAll | 100 | 10257726 | 211840 | 2272
62+
BenchmarkHttpRouter_GithubAll | 20000 | 105414 | 13792 | 167
63+
BenchmarkHttpTreeMux_GithubAll | 10000 | 319934 | 65856 | 671
64+
BenchmarkKocha_GithubAll | 10000 | 209442 | 23304 | 843
65+
BenchmarkLARS_GithubAll | 20000 | 62565 | 0 | 0
66+
BenchmarkMacaron_GithubAll | 2000 | 1161270 | 204194 | 2000
67+
BenchmarkMartini_GithubAll | 200 | 9991713 | 226549 | 2325
68+
BenchmarkPat_GithubAll | 200 | 5590793 | 1499568 | 27435
69+
BenchmarkPossum_GithubAll | 10000 | 319768 | 84448 | 609
70+
BenchmarkR2router_GithubAll | 10000 | 305134 | 77328 | 979
71+
BenchmarkRivet_GithubAll | 10000 | 132134 | 16272 | 167
72+
BenchmarkTango_GithubAll | 3000 | 552754 | 63826 | 1618
73+
BenchmarkTigerTonic_GithubAll | 1000 | 1439483 | 239104 | 5374
74+
BenchmarkTraffic_GithubAll | 100 | 11383067 | 2659329 | 21848
75+
BenchmarkVulcan_GithubAll | 5000 | 394253 | 19894 | 609
76+
77+
(1): Total Repetitions achieved in constant time, higher means more confident result
78+
(2): Single Repetition Duration (ns/op), lower is better
79+
(3): Heap Memory (B/op), lower is better
80+
(4): Average Allocations per Repetition (allocs/op), lower is better
8281

8382
## Gin v1. stable
8483

0 commit comments

Comments
 (0)
Please sign in to comment.