feat: v0.1.1 add simple bench

This commit is contained in:
2023-09-03 14:21:27 +08:00
parent 18503e70b9
commit dff1b88a23
4 changed files with 68 additions and 6 deletions

View File

@@ -19,3 +19,10 @@ let hmac2 = hm.finalize();
assert_eq!("9d91da552268ddf11b9f69662773a66c6375b250336dfb9293e7e2611c36d79f", hex::encode(hmac2));
```
Benchmark @MacBook Pro (Retina, 15-inch, Late 2013/2 GHz Quad-Core Intel Core i7)
```text
$ cargo run --release --example bench
HMAC-SM3 : 219.19 M/s
HMAC-SHA1 : 228.57 M/s
HMAC-SHA256 : 204.96 M/s
```