Skip to content

Commit

Permalink
chore: Release 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Mar 15, 2020
1 parent 60e8b0b commit a1a42d7
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 17 deletions.
15 changes: 15 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@

# [2.3.0](https://github.com/darrachequesne/notepack/compare/2.2.0...v2.3.0) (2020-03-15)


### Performance Improvements

* **decode:** add a cache for buffer-to-string conversions ([3c0e5a6](https://github.com/darrachequesne/notepack/commit/3c0e5a66332e50ce31749f0159a533156edbdd3d))
* **encode:** add a cache for string-to-buffer conversions ([60e8b0b](https://github.com/darrachequesne/notepack/commit/60e8b0b4b16b05e702334fe731df1ec43d1a9f14))



# [2.2.0](https://github.com/darrachequesne/notepack/compare/2.1.3...2.2.0) (2018-12-18)



<a name="2.1.3"></a>
## [2.1.3](https://github.com/darrachequesne/notepack/compare/2.1.2...2.1.3) (2018-05-14)

Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var decoded = notepack.decode(encoded); // { foo: 'bar' }
A browser version of notepack is also available (2.0 kB minified/gzipped)

```html
<script src="https://unpkg.com/notepack.io@2.2.0/dist/notepack.min.js"></script>
<script src="https://unpkg.com/notepack.io@2.3.0/dist/notepack.min.js"></script>
<script>
console.log(notepack.decode(notepack.encode([1, '2', new Date()])));
// [1, "2", Thu Dec 08 2016 00:00:01 GMT+0100 (CET)]
Expand All @@ -53,29 +53,29 @@ Encoding (this will take a while):
+----------------------------+-------------------+-----------------+----------------+---------------+
| │ tiny │ small │ medium │ large |
+----------------------------+-------------------+-----------------+----------------+---------------+
| notepack │ 2,033,101 ops/sec │ 430,577 ops/sec │ 31,162 ops/sec │ 256 ops/sec |
| notepack │ 2,187,481 ops/sec │ 510,581 ops/sec │ 39,187 ops/sec │ 231 ops/sec |
+----------------------------+-------------------+-----------------+----------------+---------------+
| msgpack-js │ 171,300 ops/sec │ 100,205 ops/sec │ 10,121 ops/sec │ 159 ops/sec |
| msgpack-js │ 111,209 ops/sec │ 95,346 ops/sec │ 9,896 ops/sec │ 121 ops/sec |
+----------------------------+-------------------+-----------------+----------------+---------------+
| msgpack-lite │ 455,017 ops/sec │ 189,415 ops/sec │ 23,872 ops/sec │ 399 ops/sec |
| msgpack-lite │ 524,993 ops/sec │ 195,466 ops/sec │ 18,269 ops/sec │ 242 ops/sec |
+----------------------------+-------------------+-----------------+----------------+---------------+
| @msgpack/msgpack │ 621,609 ops/sec │ 364,816 ops/sec │ 36,157 ops/sec │ 105 ops/sec |
| @msgpack/msgpack │ 723,885 ops/sec │ 292,447 ops/sec │ 30,438 ops/sec │ 80.26 ops/sec |
+----------------------------+-------------------+-----------------+----------------+---------------+
| JSON.stringify (to Buffer) │ 1,484,205 ops/sec │ 326,130 ops/sec │ 18,409 ops/sec │ 31.23 ops/sec |
| JSON.stringify (to Buffer) │ 1,359,120 ops/sec │ 335,024 ops/sec │ 15,721 ops/sec │ 25.97 ops/sec |
+----------------------------+-------------------+-----------------+----------------+---------------+
Decoding (this will take a while):
+--------------------------+-------------------+-----------------+----------------+---------------+
| │ tiny │ small │ medium │ large |
+--------------------------+-------------------+-----------------+----------------+---------------+
| notepack │ 1,663,031 ops/sec │ 382,912 ops/sec │ 31,880 ops/sec │ 294 ops/sec |
| notepack │ 3,165,012 ops/sec │ 642,348 ops/sec │ 32,173 ops/sec │ 249 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
| msgpack-js │ 1,142,658 ops/sec │ 273,856 ops/sec │ 23,427 ops/sec │ 264 ops/sec |
| msgpack-js │ 1,255,151 ops/sec │ 280,944 ops/sec │ 24,396 ops/sec │ 243 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
| msgpack-lite │ 658,482 ops/sec │ 143,789 ops/sec │ 12,412 ops/sec │ 202 ops/sec |
| msgpack-lite │ 667,059 ops/sec │ 144,927 ops/sec │ 11,922 ops/sec │ 175 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
| @msgpack/msgpack │ 2,056,936 ops/sec │ 474,913 ops/sec │ 21,109 ops/sec │ 101 ops/sec |
| @msgpack/msgpack │ 1,760,026 ops/sec │ 353,698 ops/sec │ 18,816 ops/sec │ 45.68 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
| JSON.parse (from Buffer) │ 1,378,336 ops/sec │ 364,853 ops/sec │ 24,548 ops/sec │ 49.16 ops/sec |
| JSON.parse (from Buffer) │ 1,750,845 ops/sec │ 407,212 ops/sec │ 24,999 ops/sec │ 35.77 ops/sec |
+--------------------------+-------------------+-----------------+----------------+---------------+
* Note that JSON is provided as an indicative comparison only
```
Expand Down
4 changes: 2 additions & 2 deletions dist/notepack.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Notepack.io 2.2.0
* (c) 2014-2018 Damien Arrachequesne
* Notepack.io 2.3.0
* (c) 2014-2020 Damien Arrachequesne
* Released under the MIT License.
*/
(function (root) {
Expand Down
4 changes: 2 additions & 2 deletions dist/notepack.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notepack.io",
"version": "2.2.0",
"version": "2.3.0",
"description": "A fast Node.js implementation of the latest MessagePack spec",
"main": "lib/index.js",
"files": [
Expand Down

0 comments on commit a1a42d7

Please sign in to comment.