Skip to content

Commit 864fd10

Browse files
committed
bench and pprof results
1 parent cd0663d commit 864fd10

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
PASS
2+
BenchmarkNoCompression 200000 15274 ns/op
3+
BenchmarkCompression 200000 13176 ns/op
4+
BenchmarkRegExpLoop 2000 927813 ns/op
5+
ok github.com/ant0ine/go-json-rest/rest 7.980s
6+
PASS
7+
BenchmarkNoCompression 100000 14752 ns/op
8+
BenchmarkCompression 200000 12910 ns/op
9+
BenchmarkRegExpLoop 2000 926397 ns/op
10+
ok github.com/ant0ine/go-json-rest/rest 6.350s
11+
PASS
12+
BenchmarkNoCompression 100000 14903 ns/op
13+
BenchmarkCompression 200000 14032 ns/op
14+
BenchmarkRegExpLoop 2000 926376 ns/op
15+
ok github.com/ant0ine/go-json-rest/rest 6.594s

perf/pprof/cpu-cd0663d-2014-08-17.txt

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
Total: 272 samples
2+
39 14.3% 14.3% 115 42.3% runtime.mallocgc
3+
30 11.0% 25.4% 31 11.4% runtime.MSpan_Sweep
4+
24 8.8% 34.2% 24 8.8% scanblock
5+
22 8.1% 42.3% 23 8.5% settype
6+
15 5.5% 47.8% 15 5.5% ExternalCode
7+
13 4.8% 52.6% 145 53.3% github.com/ant0ine/go-json-rest/rest/trie.(*node).find
8+
12 4.4% 57.0% 19 7.0% runtime.mapaccess1_faststr
9+
10 3.7% 60.7% 17 6.2% net/url.escape
10+
7 2.6% 63.2% 56 20.6% cnew
11+
7 2.6% 65.8% 7 2.6% net/url.shouldEscape
12+
6 2.2% 68.0% 6 2.2% runtime.markscan
13+
5 1.8% 69.9% 8 2.9% hash_init
14+
5 1.8% 71.7% 5 1.8% runtime.memhash
15+
4 1.5% 73.2% 4 1.5% flushptrbuf
16+
4 1.5% 74.6% 40 14.7% hash_insert
17+
4 1.5% 76.1% 23 8.5% runtime.growslice
18+
4 1.5% 77.6% 4 1.5% runtime.mapaccess1_fast32
19+
4 1.5% 79.0% 4 1.5% runtime.markspan
20+
3 1.1% 80.1% 8 2.9% github.com/ant0ine/go-json-rest/rest.(*router).ofFirstDefinedRoute
21+
3 1.1% 81.2% 19 7.0% growslice1
22+
3 1.1% 82.4% 3 1.1% runtime.duffcopy
23+
3 1.1% 83.5% 3 1.1% runtime.fastrand1
24+
3 1.1% 84.6% 3 1.1% runtime.memclr
25+
3 1.1% 85.7% 3 1.1% runtime.memeqbody
26+
3 1.1% 86.8% 3 1.1% runtime.stringiter2
27+
3 1.1% 87.9% 13 4.8% strings.genSplit
28+
3 1.1% 89.0% 3 1.1% unicode.ToUpper
29+
2 0.7% 89.7% 29 10.7% MCentral_Grow
30+
2 0.7% 90.4% 2 0.7% MHeap_ReclaimList
31+
2 0.7% 91.2% 227 83.5% github.com/ant0ine/go-json-rest/rest.(*router).findRouteFromURL
32+
2 0.7% 91.9% 70 25.7% github.com/ant0ine/go-json-rest/rest/trie.(*findContext).paramsAsMap
33+
1 0.4% 92.3% 18 6.6% MHeap_Reclaim
34+
1 0.4% 92.6% 2 0.7% assertE2Tret
35+
1 0.4% 93.0% 228 83.8% github.com/ant0ine/go-json-rest/rest.BenchmarkCompression
36+
1 0.4% 93.4% 103 37.9% github.com/ant0ine/go-json-rest/rest/trie.func·002
37+
1 0.4% 93.8% 1 0.4% github.com/ant0ine/go-json-rest/rest/trie.splitParam
38+
1 0.4% 94.1% 9 3.3% makeslice1
39+
1 0.4% 94.5% 48 17.6% runtime.MCache_Refill
40+
1 0.4% 94.9% 1 0.4% runtime.MSpanList_IsEmpty
41+
1 0.4% 95.2% 1 0.4% runtime.atomicstore
42+
1 0.4% 95.6% 41 15.1% runtime.cnewarray
43+
1 0.4% 96.0% 1 0.4% runtime.gentraceback
44+
1 0.4% 96.3% 1 0.4% runtime.lock
45+
1 0.4% 96.7% 25 9.2% runtime.makemap
46+
1 0.4% 97.1% 10 3.7% runtime.makeslice
47+
1 0.4% 97.4% 1 0.4% runtime.memcopy32
48+
1 0.4% 97.8% 1 0.4% runtime.memeq
49+
1 0.4% 98.2% 51 18.8% runtime.new
50+
1 0.4% 98.5% 1 0.4% runtime.strcopy
51+
1 0.4% 98.9% 1 0.4% runtime.unmarkspan
52+
1 0.4% 99.3% 1 0.4% runtime.xchg
53+
1 0.4% 99.6% 7 2.6% strings.Map
54+
1 0.4% 100.0% 14 5.1% strings.SplitN
55+
0 0.0% 100.0% 29 10.7% GC
56+
0 0.0% 100.0% 1 0.4% MCentral_ReturnToHeap
57+
0 0.0% 100.0% 20 7.4% MHeap_AllocLocked
58+
0 0.0% 100.0% 15 5.5% System
59+
0 0.0% 100.0% 1 0.4% copyout
60+
0 0.0% 100.0% 31 11.4% github.com/ant0ine/go-json-rest/rest.escapedPath
61+
0 0.0% 100.0% 178 65.4% github.com/ant0ine/go-json-rest/rest/trie.(*Trie).FindRoutesAndPathMatched
62+
0 0.0% 100.0% 24 8.8% makemap_c
63+
0 0.0% 100.0% 17 6.2% net/url.(*URL).RequestURI
64+
0 0.0% 100.0% 46 16.9% runtime.MCentral_CacheSpan
65+
0 0.0% 100.0% 1 0.4% runtime.MCentral_FreeSpan
66+
0 0.0% 100.0% 1 0.4% runtime.MCentral_UncacheSpan
67+
0 0.0% 100.0% 23 8.5% runtime.MHeap_Alloc
68+
0 0.0% 100.0% 2 0.7% runtime.assertE2T
69+
0 0.0% 100.0% 16 5.9% runtime.cnew
70+
0 0.0% 100.0% 228 83.8% runtime.gosched0
71+
0 0.0% 100.0% 40 14.7% runtime.mapassign1
72+
0 0.0% 100.0% 5 1.8% runtime.strhash
73+
0 0.0% 100.0% 15 5.5% runtime.sweepone
74+
0 0.0% 100.0% 1 0.4% runtime.unlock
75+
0 0.0% 100.0% 7 2.6% strings.ToUpper
76+
0 0.0% 100.0% 228 83.8% testing.(*B).launch
77+
0 0.0% 100.0% 228 83.8% testing.(*B).runN

0 commit comments

Comments
 (0)