diff --git a/Cargo.lock b/Cargo.lock index 2ff86ce..7b755f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -47,7 +47,7 @@ dependencies = [ [[package]] name = "blake3-wasm-rs" -version = "0.1.1" +version = "0.1.2" dependencies = [ "blake3", "wasm-bindgen", diff --git a/Cargo.toml b/Cargo.toml index aa0386f..46e28f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,10 @@ [package] name = "blake3-wasm-rs" -version = "0.1.1" +version = "0.1.2" edition = "2024" license = "MIT" +authors = ["UneBaguette "] +publish = false repository = "https://github.com/UneBaguette/blake3.wasm" description = "Simple blake3 to wasm project" keywords = ["blake3", "wasm", "hash", "cryptography", "wasm-bindgen"] @@ -12,8 +14,8 @@ categories = ["cryptography", "wasm"] crate-type = ["cdylib", "rlib"] [dependencies] -blake3 = { version = "1.8.4", features = ["wasm32_simd"] } -wasm-bindgen = "0.2.118" +blake3 = { version = "1.8", features = ["wasm32_simd"] } +wasm-bindgen = "0.2" [dev-dependencies] wasm-bindgen-test = "0.3" \ No newline at end of file diff --git a/README.md b/README.md index 9fc3dcc..5acffef 100644 --- a/README.md +++ b/README.md @@ -79,11 +79,21 @@ Tested on **Apple M4**, Node.js v24. | 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 | +| 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 | + +Tested on **Ryzen 7 5800X**, Node.js v24. + +| Size | @noble/hashes | awasm-noble | awasm-noble (threads) | blake3-wasm | +|-------|---------------|-------------|-----------------------|-------------| +| 32 B | 11 MB/s | 34 MB/s | 45 MB/s | 70 MB/s | +| 1 KB | 56 MB/s | 499 MB/s | 526 MB/s | 885 MB/s | +| 64 KB | 52 MB/s | 1,729 MB/s | 1,684 MB/s | 2,037 MB/s | +| 1 MB | 51 MB/s | 1,550 MB/s | 4,036 MB/s | 1,829 MB/s | +| 10 MB | 50 MB/s | 1,497 MB/s | 4,946 MB/s | 1,877 MB/s | ## Security diff --git a/build.sh b/build.sh index f467eaa..078a477 100644 --- a/build.sh +++ b/build.sh @@ -53,7 +53,7 @@ rm -f "$ROOT/bundler/.gitignore" "$ROOT/node/.gitignore" "$ROOT/web/.gitignore" cat > "$ROOT/package.json" << 'EOF' { "name": "blake3-wasm-rs", - "version": "0.2.1", + "version": "0.2.2", "description": "BLAKE3 hashing via Rust/WASM - works in Node.js (CJS + ESM), browsers, and bundlers", "license": "MIT", "repository": {