mirror of
https://github.com/UneBaguette/blake3.wasm.git
synced 2026-08-07 00:00:16 +02:00
readme: add awasm-noble entry (#1)
The `@awasm/noble/wasm_threads.js` target works without any additional setup in node.js. It can be used as-is. Same goes for browsers. Web workers are managed automatically, without any input from user. This is very different from most threaded libraries which require user to set up their own threading infra.
This commit is contained in:
@@ -75,15 +75,15 @@ h.finalize()
|
||||
|
||||
## Benchmarks
|
||||
|
||||
Tested on **Ryzen 7 5800X**, Node.js v24.
|
||||
Tested on **Apple M4**, Node.js v24.
|
||||
|
||||
| Size | @noble/hashes | awasm-noble | blake3-wasm |
|
||||
|-------|---------------|-------------|-------------|
|
||||
| 32 B | 11 MB/s | 34 MB/s | 81 MB/s |
|
||||
| 1 KB | 60 MB/s | 360 MB/s | 781 MB/s |
|
||||
| 64 KB | 49 MB/s | 1,518 MB/s | 2,004 MB/s |
|
||||
| 1 MB | 51 MB/s | 1,671 MB/s | 1,893 MB/s |
|
||||
| 10 MB | 51 MB/s | 1,572 MB/s | 1,812 MB/s |
|
||||
| Size | @noble/hashes | awasm-noble | awasm-noble (threads) | blake3-wasm |
|
||||
|-------|---------------|-------------|-----------------------|-------------|
|
||||
| 32 B | 28 MB/s | 105 MB/s | 94 MB/s | 129 MB/s |
|
||||
| 1 KB | 105 MB/s | 843 MB/s | 819 MB/s | 568 MB/s |
|
||||
| 64 KB | 102 MB/s | 1,898 MB/s | 1,855 MB/s | 2,004 MB/s |
|
||||
| 1 MB | 101 MB/s | 1,943 MB/s | 4,711 MB/s | 1,893 MB/s |
|
||||
| 10 MB | 101 MB/s | 1,911 MB/s | 6,456 MB/s | 2,185 MB/s |
|
||||
|
||||
## Security
|
||||
|
||||
|
||||
Reference in New Issue
Block a user