@bunchtogether/hash-object
v1.0.7
Published
[Hash Object](https://github.com/bunchtogether/hash-object) [![CircleCI](https://circleci.com/gh/bunchtogether/hash-object/tree/master.svg?style=svg)](https://circleci.com/gh/bunchtogether/hash-object/tree/master) [![npm version](https://badge.fury.io/js/
Downloads
756
Readme
Hash Object
Performant object hashing. Supports native maps, sets, classes, and typed arrays.
const { hash64, hash32 } = require('@bunchtogether/hash-object');
const a = hash64({a:1, b:2});
// typeof a === 'string'
const b = hash32([1,2,3]);
// typeof b === 'number'
Install
yarn add @bunchtogether/hash-object
Benchmarks
Complex Values
- Time: 1244ms (+409.84%)
- Heap: 226Mb (+17.2%)
- Time: 663ms (+171.72%)
- Heap: 220Mb (+13.86%)
- Time: 927ms (+279.92%)
- Heap: 239Mb (+23.66%)
- Time: 244ms (+0%)
- Heap: 193Mb (+0%)
Simple Values
- Time: 92ms (+8.24%)
- Heap: 195Mb (+3.81%)
- Time: 99ms (+16.47%)
- Heap: 196Mb (+4.41%)
- Time: 184ms (+116.47%)
- Heap: 219Mb (+16.42%)
- Time: 85ms (+0%)
- Heap: 188Mb (+0%)