From 9e1e7d1397d6f06f51b0e3f2c460b80780393435 Mon Sep 17 00:00:00 2001 From: Yi-Cyuan Chen Date: Tue, 17 Nov 2026 14:57:23 +0800 Subject: [PATCH] ### Changed - Async benchmarks compare Web Crypto with hex output, matching the other tests. Co-Authored-By: Claude Opus 5.5 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c696850..4b1c758 100644 --- a/README.md +++ b/README.md @@ -110,8 +110,8 @@ sha1.hmac.array('key', 'Message to hash'); - [Benchmark (measurethat.net) - Short String](https://measurethat.net/Benchmarks/Show/36035/0/sha1-performance-comparison---short-string) - [Benchmark (measurethat.net) - Long String](https://measurethat.net/Benchmarks/Show/36036/0/sha1-performance-comparison---long-string) - [Benchmark (measurethat.net) - Very Long String](https://measurethat.net/Benchmarks/Show/36037/0/sha1-performance-comparison---very-long-string) -- [Async Benchmark (measurethat.net) - Short String](https://measurethat.net/Benchmarks/Show/36039/0/sha1-performance-comparison---async-short-string) -- [Async Benchmark (measurethat.net) - Very Long String](https://measurethat.net/Benchmarks/Show/36038/0/sha1-performance-comparison---async-very-long-string) +- [Async Benchmark (measurethat.net) - Short String](https://measurethat.net/Benchmarks/Show/36040/0/sha1-performance-comparison---async-short-string-v2) +- [Async Benchmark (measurethat.net) - Very Long String](https://measurethat.net/Benchmarks/Show/36041/0/sha1-performance-comparison---async-very-long-string-v2) js-sha1 is a small, synchronous, pure JavaScript implementation with correct UTF-8 handling. For large data, WebAssembly-based libraries (e.g. Hash-WASM) or the asynchronous Web Crypto API are faster.