Skip to content

Commit 08da17c

Browse files
committed
best of 50 realworld benchmark
1 parent 8d09bc5 commit 08da17c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ data, err := bencode.Unmarshal(value)
100100

101101
| Library | Time | Bytes Allocated | Objects Allocated |
102102
| :---------------------------- | :---------: | :-------------: | :---------------: |
103-
| IncSW/go-bencode Unmarshal | 1279 ns/op | 1016 B/op | 21 allocs/op |
104-
| IncSW/go-bencode Marshal | 28572 ns/op | 262816 B/op | 4 allocs/op |
105-
| IncSW/go-bencode MarshalTo | 7800 ns/op | 160 B/op | 2 allocs/op |
103+
| IncSW/go-bencode Unmarshal | 1271 ns/op | 1016 B/op | 21 allocs/op |
104+
| IncSW/go-bencode Marshal | 27929 ns/op | 262816 B/op | 4 allocs/op |
105+
| IncSW/go-bencode MarshalTo | 7937 ns/op | 160 B/op | 2 allocs/op |
106106
| |
107107
| |
108-
| cristalhq/bencode Unmarshal | 1560 ns/op | 1016 B/op | 21 allocs/op |
108+
| cristalhq/bencode Unmarshal | 1552 ns/op | 1016 B/op | 21 allocs/op |
109109
| cristalhq/bencode Marshal | 49125 ns/op | 443168 B/op | 5 allocs/op |
110-
| cristalhq/bencode MarshalTo | 7709 ns/op | 0 B/op | 0 allocs/op |
110+
| cristalhq/bencode MarshalTo | 8183 ns/op | 0 B/op | 0 allocs/op |
111111
| |
112112
| |
113113
| aleksatr/go-bencode Unmarshal | 21615 ns/op | 223352 B/op | 69 allocs/op |
@@ -118,7 +118,6 @@ data, err := bencode.Unmarshal(value)
118118
| jackpal/bencode-go Marshal | 55097 ns/op | 445694 B/op | 60 allocs/op |
119119
| jackpal/bencode-go MarshalTo | 35800 ns/op | 223128 B/op | 54 allocs/op |
120120

121-
122121
#### Notes
123122

124123
1. BUG: Keys must be strings and appear in sorted order (sorted as raw strings, not alphanumerics). http://bittorrent.org/beps/bep_0003.html#bencoding

0 commit comments

Comments
 (0)