rapidhash-wasm-vn 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -8
- package/bundler/rapidhash_wasm_vn_bg.wasm +0 -0
- package/bundler/rapidhash_wasm_vn_bg.wasm.d.ts +1 -1
- package/deno/rapidhash_wasm_vn_bg.wasm +0 -0
- package/deno/rapidhash_wasm_vn_bg.wasm.d.ts +1 -1
- package/esm/rapidhash_wasm_vn_bg.wasm +0 -0
- package/esm/rapidhash_wasm_vn_bg.wasm.d.ts +1 -1
- package/module/rapidhash_wasm_vn_bg.wasm +0 -0
- package/module/rapidhash_wasm_vn_bg.wasm.d.ts +1 -1
- package/no-modules/rapidhash_wasm_vn.d.ts +1 -1
- package/no-modules/rapidhash_wasm_vn_bg.wasm +0 -0
- package/no-modules/rapidhash_wasm_vn_bg.wasm.d.ts +1 -1
- package/nodejs/rapidhash_wasm_vn_bg.wasm +0 -0
- package/nodejs/rapidhash_wasm_vn_bg.wasm.d.ts +1 -1
- package/package.json +1 -1
- package/web/rapidhash_wasm_vn.d.ts +1 -1
- package/web/rapidhash_wasm_vn_bg.wasm +0 -0
- package/web/rapidhash_wasm_vn_bg.wasm.d.ts +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
# rapidhash-wasm-vn
|
|
2
2
|
[](https://www.npmjs.com/package/rapidhash-wasm-vn)
|
|
3
3
|
|
|
4
|
-
## Node.js
|
|
5
|
-
|
|
6
|
-
```js
|
|
7
|
-
const { hash_v1, hash_v2, hash_v3, hash_v3_micro, hash_v3_nano } = require('rapidhash-wasm-vn/nodejs');
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
|
|
11
4
|
## Browser
|
|
12
5
|
|
|
13
6
|
```js
|
|
14
|
-
import init, {
|
|
7
|
+
import init, {
|
|
8
|
+
hash_v1,
|
|
9
|
+
hash_v2,
|
|
10
|
+
hash_v3,
|
|
11
|
+
hash_v3_micro,
|
|
12
|
+
hash_v3_nano
|
|
13
|
+
} from 'rapidhash-wasm-vn/web';
|
|
15
14
|
|
|
16
15
|
await init();
|
|
17
16
|
|
|
@@ -24,3 +23,13 @@ console.log("hash_v3: ", hash_v3(data));
|
|
|
24
23
|
console.log("hash_v3_micro: ", hash_v3_micro(data));
|
|
25
24
|
console.log("hash_v3_nano: ", hash_v3_nano(data));
|
|
26
25
|
```
|
|
26
|
+
|
|
27
|
+
## Benchmark
|
|
28
|
+
|
|
29
|
+
| (index) | Task name | Latency avg (ns) | Latency med (ns) | Throughput avg (ops/s) | Throughput med (ops/s) | Samples |
|
|
30
|
+
|---------|-----------------|-------------------|------------------|------------------------|------------------------|---------|
|
|
31
|
+
| 0 | 'hash_v1' | '1098.8 ± 3.61%' | '0.00 ± 0.00' | '900305 ± 0.04%' | '910097 ± 0' | 273120 |
|
|
32
|
+
| 1 | 'hash_v2' | '1014.9 ± 3.58%' | '0.00 ± 0.00' | '975494 ± 0.04%' | '985340 ± 0' | 295602 |
|
|
33
|
+
| 2 | 'hash_v3' | '1113.9 ± 12.32%' | '0.00 ± 0.00' | '888478 ± 0.04%' | '897714 ± 0' | 269404 |
|
|
34
|
+
| 3 | 'hash_v3_micro' | '985.25 ± 3.59%' | '0.00 ± 0.00' | '1005126 ± 0.03%' | '1014968 ± 0' | 304592 |
|
|
35
|
+
| 4 | 'hash_v3_nano' | '887.03 ± 3.57%' | '0.00 ± 0.00' | '1117469 ± 0.03%' | '1127358 ± 0' | 338320 |
|
|
Binary file
|
|
@@ -44,6 +44,7 @@ export const fasthasher_update_u32: (a: number, b: number) => void;
|
|
|
44
44
|
export const fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
45
45
|
export const qualityhasher_update_u32: (a: number, b: number) => void;
|
|
46
46
|
export const qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
47
|
+
export const qualityhasher_reset: (a: number) => void;
|
|
47
48
|
export const __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
48
49
|
export const __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
49
50
|
export const portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +54,6 @@ export const qualityhasher_update_i64: (a: number, b: bigint) => void;
|
|
|
53
54
|
export const qualityhasher_update_i32: (a: number, b: number) => void;
|
|
54
55
|
export const qualityhasher_update_i16: (a: number, b: number) => void;
|
|
55
56
|
export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
56
|
-
export const qualityhasher_reset: (a: number) => void;
|
|
57
57
|
export const portablehashv3_new: (a: number, b: bigint) => number;
|
|
58
58
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
59
59
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
Binary file
|
|
@@ -44,6 +44,7 @@ export const fasthasher_update_u32: (a: number, b: number) => void;
|
|
|
44
44
|
export const fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
45
45
|
export const qualityhasher_update_u32: (a: number, b: number) => void;
|
|
46
46
|
export const qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
47
|
+
export const qualityhasher_reset: (a: number) => void;
|
|
47
48
|
export const __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
48
49
|
export const __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
49
50
|
export const portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +54,6 @@ export const qualityhasher_update_i64: (a: number, b: bigint) => void;
|
|
|
53
54
|
export const qualityhasher_update_i32: (a: number, b: number) => void;
|
|
54
55
|
export const qualityhasher_update_i16: (a: number, b: number) => void;
|
|
55
56
|
export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
56
|
-
export const qualityhasher_reset: (a: number) => void;
|
|
57
57
|
export const portablehashv3_new: (a: number, b: bigint) => number;
|
|
58
58
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
59
59
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
Binary file
|
|
@@ -44,6 +44,7 @@ export const fasthasher_update_u32: (a: number, b: number) => void;
|
|
|
44
44
|
export const fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
45
45
|
export const qualityhasher_update_u32: (a: number, b: number) => void;
|
|
46
46
|
export const qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
47
|
+
export const qualityhasher_reset: (a: number) => void;
|
|
47
48
|
export const __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
48
49
|
export const __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
49
50
|
export const portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +54,6 @@ export const qualityhasher_update_i64: (a: number, b: bigint) => void;
|
|
|
53
54
|
export const qualityhasher_update_i32: (a: number, b: number) => void;
|
|
54
55
|
export const qualityhasher_update_i16: (a: number, b: number) => void;
|
|
55
56
|
export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
56
|
-
export const qualityhasher_reset: (a: number) => void;
|
|
57
57
|
export const portablehashv3_new: (a: number, b: bigint) => number;
|
|
58
58
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
59
59
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
Binary file
|
|
@@ -44,6 +44,7 @@ export const fasthasher_update_u32: (a: number, b: number) => void;
|
|
|
44
44
|
export const fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
45
45
|
export const qualityhasher_update_u32: (a: number, b: number) => void;
|
|
46
46
|
export const qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
47
|
+
export const qualityhasher_reset: (a: number) => void;
|
|
47
48
|
export const __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
48
49
|
export const __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
49
50
|
export const portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +54,6 @@ export const qualityhasher_update_i64: (a: number, b: bigint) => void;
|
|
|
53
54
|
export const qualityhasher_update_i32: (a: number, b: number) => void;
|
|
54
55
|
export const qualityhasher_update_i16: (a: number, b: number) => void;
|
|
55
56
|
export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
56
|
-
export const qualityhasher_reset: (a: number) => void;
|
|
57
57
|
export const portablehashv3_new: (a: number, b: bigint) => number;
|
|
58
58
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
59
59
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
@@ -244,6 +244,7 @@ declare interface InitOutput {
|
|
|
244
244
|
readonly fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
245
245
|
readonly qualityhasher_update_u32: (a: number, b: number) => void;
|
|
246
246
|
readonly qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
247
|
+
readonly qualityhasher_reset: (a: number) => void;
|
|
247
248
|
readonly __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
248
249
|
readonly __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
249
250
|
readonly portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -253,7 +254,6 @@ declare interface InitOutput {
|
|
|
253
254
|
readonly qualityhasher_update_i32: (a: number, b: number) => void;
|
|
254
255
|
readonly qualityhasher_update_i16: (a: number, b: number) => void;
|
|
255
256
|
readonly qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
256
|
-
readonly qualityhasher_reset: (a: number) => void;
|
|
257
257
|
readonly portablehashv3_new: (a: number, b: bigint) => number;
|
|
258
258
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
259
259
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
Binary file
|
|
@@ -44,6 +44,7 @@ export const fasthasher_update_u32: (a: number, b: number) => void;
|
|
|
44
44
|
export const fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
45
45
|
export const qualityhasher_update_u32: (a: number, b: number) => void;
|
|
46
46
|
export const qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
47
|
+
export const qualityhasher_reset: (a: number) => void;
|
|
47
48
|
export const __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
48
49
|
export const __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
49
50
|
export const portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +54,6 @@ export const qualityhasher_update_i64: (a: number, b: bigint) => void;
|
|
|
53
54
|
export const qualityhasher_update_i32: (a: number, b: number) => void;
|
|
54
55
|
export const qualityhasher_update_i16: (a: number, b: number) => void;
|
|
55
56
|
export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
56
|
-
export const qualityhasher_reset: (a: number) => void;
|
|
57
57
|
export const portablehashv3_new: (a: number, b: bigint) => number;
|
|
58
58
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
59
59
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
Binary file
|
|
@@ -44,6 +44,7 @@ export const fasthasher_update_u32: (a: number, b: number) => void;
|
|
|
44
44
|
export const fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
45
45
|
export const qualityhasher_update_u32: (a: number, b: number) => void;
|
|
46
46
|
export const qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
47
|
+
export const qualityhasher_reset: (a: number) => void;
|
|
47
48
|
export const __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
48
49
|
export const __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
49
50
|
export const portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +54,6 @@ export const qualityhasher_update_i64: (a: number, b: bigint) => void;
|
|
|
53
54
|
export const qualityhasher_update_i32: (a: number, b: number) => void;
|
|
54
55
|
export const qualityhasher_update_i16: (a: number, b: number) => void;
|
|
55
56
|
export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
56
|
-
export const qualityhasher_reset: (a: number) => void;
|
|
57
57
|
export const portablehashv3_new: (a: number, b: bigint) => number;
|
|
58
58
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
59
59
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
package/package.json
CHANGED
|
@@ -242,6 +242,7 @@ export interface InitOutput {
|
|
|
242
242
|
readonly fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
243
243
|
readonly qualityhasher_update_u32: (a: number, b: number) => void;
|
|
244
244
|
readonly qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
245
|
+
readonly qualityhasher_reset: (a: number) => void;
|
|
245
246
|
readonly __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
246
247
|
readonly __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
247
248
|
readonly portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -251,7 +252,6 @@ export interface InitOutput {
|
|
|
251
252
|
readonly qualityhasher_update_i32: (a: number, b: number) => void;
|
|
252
253
|
readonly qualityhasher_update_i16: (a: number, b: number) => void;
|
|
253
254
|
readonly qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
254
|
-
readonly qualityhasher_reset: (a: number) => void;
|
|
255
255
|
readonly portablehashv3_new: (a: number, b: bigint) => number;
|
|
256
256
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
257
257
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
Binary file
|
|
@@ -44,6 +44,7 @@ export const fasthasher_update_u32: (a: number, b: number) => void;
|
|
|
44
44
|
export const fasthasher_update_u64: (a: number, b: bigint) => void;
|
|
45
45
|
export const qualityhasher_update_u32: (a: number, b: number) => void;
|
|
46
46
|
export const qualityhasher_update_u64: (a: number, b: bigint) => void;
|
|
47
|
+
export const qualityhasher_reset: (a: number) => void;
|
|
47
48
|
export const __wbg_qualityhasher_free: (a: number, b: number) => void;
|
|
48
49
|
export const __wbg_portablehashv3_free: (a: number, b: number) => void;
|
|
49
50
|
export const portablehashv3_update: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +54,6 @@ export const qualityhasher_update_i64: (a: number, b: bigint) => void;
|
|
|
53
54
|
export const qualityhasher_update_i32: (a: number, b: number) => void;
|
|
54
55
|
export const qualityhasher_update_i16: (a: number, b: number) => void;
|
|
55
56
|
export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
|
|
56
|
-
export const qualityhasher_reset: (a: number) => void;
|
|
57
57
|
export const portablehashv3_new: (a: number, b: bigint) => number;
|
|
58
58
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
59
59
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|