node-murmurhash

murmurhash V2, support utf8 Buffer

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
node-murmurhash
2702.1.09 years ago10 years agoMinified + gzip package size for node-murmurhash in KB

Readme

node-murmurhash
!NPM versionnpm-imagenpm-url !build statustravis-imagetravis-url !Test coveragecoveralls-imagecoveralls-url !Gittipgittip-imagegittip-url !David depsdavid-imagedavid-url !node versionnode-imagenode-url !npm downloaddownload-imagedownload-url
murmurhash V2, support utf8 Buffer.

Install

$ npm install node-murmurhash --save

Usage

var murmurhash = require('node-murmurhash');

murmurhash('hello 中国', 97); // 1248731102

Benchmark

node version: v4.2.1, date: Sun Nov 15 2015 01:01:49 GMT+0800 (CST)
Starting...
2 tests completed.

murmurhash(new Buffer(ascii)) x 21,164,676 ops/sec ±0.85% (98 runs sampled)
murmurhash(new Buffer(utf8))  x 13,926,544 ops/sec ±0.59% (99 runs sampled)

see also: benchmark

License

MIT