node-murmurhash
Advanced tools
Comparing version
1.0.1 / 2015-01-13 | ||
================== | ||
* Upgrade nan to 1.4.1 for support alinode/iojs | ||
1.0.0 / 2014-09-25 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "node-murmurhash", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "murmurhash V2, support utf8 Buffer", | ||
@@ -16,9 +16,4 @@ "main": "index.js", | ||
}, | ||
"config": { | ||
"travis-cov": { | ||
"threshold": 100 | ||
} | ||
}, | ||
"dependencies": { | ||
"nan": "~1.3.0" | ||
"nan": "~1.4.1" | ||
}, | ||
@@ -29,2 +24,3 @@ "devDependencies": { | ||
"benchmark": "~1.0.0", | ||
"contributors": "~0.5.0", | ||
"istanbul-harmony": "*", | ||
@@ -31,0 +27,0 @@ "jshint": "*", |
@@ -35,2 +35,9 @@ node-murmurhash | ||
## Node versions | ||
- node 0.11.12: use `node-murmurhash@0.0.x` | ||
- node 0.10.x | 0.11.x: use `node-murmurhash@>=1.0.1` | ||
- node >= 0.12.0: use `node-murmurhash@>=1.0.1` | ||
- iojs >= 1.0.0: use `node-murmurhash@>=1.0.1` | ||
## Usage | ||
@@ -46,36 +53,4 @@ | ||
### 1.0.0 | ||
@see [benchmark.md](benchmark.md) | ||
```bash | ||
$ node test/benchmark.js | ||
murmurhash2js 3389647783 | ||
murmurhash 3389647783 | ||
murmurhash2js 3864203294 | ||
murmurhash 3300337389 | ||
node version: v0.11.14, date: Thu Sep 25 2014 09:38:23 GMT+0800 (CST) | ||
Starting... | ||
4 tests completed. | ||
murmurhash(ascii) x 9,042,734 ops/sec ±1.69% (92 runs sampled) | ||
murmurhash2js(ascii) x 8,044,771 ops/sec ±1.21% (93 runs sampled) | ||
murmurhash(utf8) x 8,212,544 ops/sec ±1.15% (100 runs sampled) | ||
murmurhash2js(utf8) x 4,489,553 ops/sec ±1.12% (96 runs sampled) | ||
``` | ||
### 0.0.4 | ||
```bash | ||
$ node test/benchmark.js | ||
3389647783 | ||
3389647783 | ||
3864203294 | ||
3300337389 | ||
murmurhash(ascii) x 3,528,969 ops/sec ±4.52% (85 runs sampled) | ||
murmurhash2js(ascii) x 4,386,007 ops/sec ±2.50% (93 runs sampled) | ||
murmurhash(utf8) x 3,631,370 ops/sec ±3.10% (94 runs sampled) | ||
murmurhash2js(utf8) x 2,514,194 ops/sec ±1.43% (94 runs sampled) | ||
``` | ||
## Totoro Cross platform test | ||
@@ -126,23 +101,2 @@ | ||
(The MIT License) | ||
Copyright (c) 2013 - 2014 fengmk2 <fengmk2@gmail.com> | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
[MIT](LICENSE.txt) |
Sorry, the diff of this file is not supported yet
11304
13.31%13
30%8
14.29%100
-31.51%+ Added
- Removed
Updated