Skip to content

Commit

Permalink
Merge pull request #81 from themasch/release/2.0
Browse files Browse the repository at this point in the history
Release/2.0
  • Loading branch information
themasch authored Feb 26, 2018
2 parents 1db7c36 + 8b59c35 commit 43124bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 34 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.0.0

- Drop support for Node 0.10, 0.12., add support for Node 8 & 9 (@jhermsmeier)
- Support for typed arrays (@jhermsmeier, @nazar-pc)

## 1.0.0

- Support Node 0.10, 0.12, and early Node 4 (@feross)
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Jeffrey Hwang <kaelar@gmail.com>
Sean Lang <slang800@gmail.com>
Nicolas Gotchac <ngotchac@gmail.com>
Feross Aboukhadijeh <feross@feross.org>
Nazar Mokrynskyi <nazar@mokrynskyi.com>
32 changes: 0 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,38 +36,6 @@ These metadata files are simply bencoded dictionaries.
npm install bencode
```

## Performance

### encode buffer

package | version | op/sec
----------- | ------- | ---------
bencode | 0.12.0 | *47,692*
dht.js | 0.2.16 | 43,908
dht-bencode | 0.1.2 | 35,670
bencoding | 0.0.1 | 31,942
bncode | 0.5.3 | 25,097
btparse | 1.0.2 | -

### decode to buffer

package | version | op/sec
----------- | ------- | ------
bencode | 0.12.0 | 129,326
dht.js | 0.2.16 | 71,639
dht-bencode | 0.1.2 | 89,285
bencoding | 0.0.1 | 97,285
bncode | 0.5.3 | 16,567
btparse | 1.0.2 | *155,660*

_Benchmarks run on an Intel Core i7-4600M @ 2.90Ghz with node v7.8.0 & GNU/Linux 4.4.39_

To run the benchmarks simply use

```
npm run bench
```

## Usage

```javascript
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bencode",
"description": "Bencode de/encoder",
"version": "1.0.0",
"version": "2.0.0",
"bugs": {
"url": "https://github.com/themasch/node-bencode/issues"
},
Expand All @@ -26,7 +26,7 @@
"nanobench": "^2.1.0",
"standard": "^9.0.2",
"tap-spec": "~4.1.0",
"tape": "~4.6.0"
"tape": "^4.6.3"
},
"keywords": [
"bdecode",
Expand Down

0 comments on commit 43124bd

Please sign in to comment.