Skip to content

Commit 05e95ac

Browse files
committed
Merge pull request #34 from themasch/housekeeping
Housekeeping
2 parents 73fbf4c + 0be3b30 commit 05e95ac

File tree

4 files changed

+44
-22
lines changed

4 files changed

+44
-22
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ node_js:
55
- 0.11
66
- 0.12
77
- 4
8-
- iojs-2
9-
- iojs-3
8+
- stable

CHANGES.md renamed to CHANGELOG.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
1-
## Upcoming
1+
## 0.7.0
22

3-
- decode() now throws if it encounters invalid input
3+
- Add binary key support (@deoxxa)
4+
- Improve test output format (@jhermsmeier)
5+
- Removed node v0.8 from CI tests
6+
7+
## 0.6.0
8+
9+
- Fixed invalid test data (@themasch)
10+
- Added `Makefile` for browser tests (@themasch)
11+
- Fixed Browserify compatibility (@themasch)
12+
13+
## 0.5.2
14+
15+
- Thorough fix for 64 bit and 53 bit numbers (@pwmckenna)
16+
17+
## 0.5.1
18+
19+
- Added warning on float conversion during encoding (@jhermsmeier)
20+
21+
## 0.5.0
22+
23+
- Added support for 64 bit number values (@pwmckenna)
24+
- Switched benchmark lib to `matcha` (@themasch)
25+
- Fixed npm scripts to work on Windows (@jhermsmeier)
426

527
## 0.4.3
628
* improved performance a lot

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Bencode
2-
[![npm](http://img.shields.io/npm/v/bencode.svg?style=flat)](https://npmjs.com/bencode)
3-
[![npm downloads](http://img.shields.io/npm/dm/bencode.svg?style=flat)](https://npmjs.com/bencode)
4-
[![build status](http://img.shields.io/travis/themasch/node-bencode.svg?style=flat)](https://travis-ci.org/themasch/node-bencode)
2+
[![npm](https://img.shields.io/npm/v/bencode.svg?style=flat-square)](https://npmjs.com/bencode)
3+
[![npm downloads](https://img.shields.io/npm/dm/bencode.svg?style=flat-square)](https://npmjs.com/bencode)
4+
[![build status](https://img.shields.io/travis/themasch/node-bencode.svg?style=flat-square)](https://travis-ci.org/themasch/node-bencode)
55

66
A node library for encoding and decoding bencoded data,
77
according to the [BitTorrent specification](http://www.bittorrent.org/beps/bep_0003.html).
@@ -30,7 +30,7 @@ It supports four different types of values:
3030
Bencoding is most commonly used in torrent files.
3131
These metadata files are simply bencoded dictionaries.
3232

33-
## Install with [npm](http://npmjs.org)
33+
## Install with [npm](https://npmjs.org)
3434

3535
```
3636
npm install bencode
@@ -40,23 +40,23 @@ npm install bencode
4040

4141
### encode
4242
```
43-
19,235 op/s » bencode
44-
9,684 op/s » bencoding
45-
11,988 op/s » dht_bencode
46-
8,946 op/s » bncode
47-
18,744 op/s » dht
43+
34,832 op/s » bencode
44+
17,475 op/s » bencoding
45+
15,947 op/s » dht_bencode
46+
15,036 op/s » bncode
47+
21,577 op/s » dht
4848
```
4949

5050
### decode
5151
```
52-
33,786 op/s » bencode
53-
55,040 op/s » bencoding
54-
40,872 op/s » dht_bencode
55-
2,533 op/s » bncode
56-
30,292 op/s » dht
52+
50,460 op/s » bencode
53+
45,318 op/s » bencoding
54+
60,672 op/s » dht_bencode
55+
2,928 op/s » bncode
56+
49,488 op/s » dht
5757
```
5858

59-
*Benchmarks run on an 1.8 GHz Intel Core i5 with io.js 1.0.4*
59+
*Benchmarks run on an 2,6 GHz Intel Core i5 with node 5.5.0*
6060

6161
To run the benchmarks simply use
6262

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
},
1919
{
2020
"name": "Jonas Hermsmeier",
21-
"email": "[email protected]"
21+
"email": "[email protected]",
22+
"url": "https://jhermsmeier.de/"
2223
}
2324
],
2425
"main": "bencode.js",
@@ -32,8 +33,8 @@
3233
"tape": "~4.4.0"
3334
},
3435
"scripts": {
35-
"test": "node node_modules/.bin/tape test/*.test.js | node node_modules/.bin/tap-spec",
36-
"bench": "node node_modules/.bin/matcha benchmark/*.js"
36+
"test": "tape test/*.test.js | tap-spec",
37+
"bench": "matcha"
3738
},
3839
"repository": {
3940
"type": "git",

0 commit comments

Comments
 (0)