|
5 | 5 | This is a Ruby wrapper for the [BLAKE3](https://github.com/BLAKE3-team/BLAKE3) hash function written in Rust. |
6 | 6 |
|
7 | 7 | ## Requirements |
8 | | -Tested on Ruby 3.1, 3.2 and 3.3. |
| 8 | +Tested on Ruby 3.1, 3.2, 3.3 and 3.4. |
9 | 9 | You will need to have Rust installed on your system, and the `cargo` command available in your path. |
10 | 10 | See [here](https://www.rust-lang.org/tools/install) for instructions on how to install Rust. |
11 | 11 | Rust is only required to build the gem, not to use it. |
@@ -72,7 +72,7 @@ In versions 0.1.0 and 0.1.1, the Blake3ruby namespace was available. Starting fr |
72 | 72 | The performance of this gem is comparable to the performance of the [blake3](https://github.com/BLAKE3-team/BLAKE3) |
73 | 73 | crate, which is written in Rust. |
74 | 74 |
|
75 | | -The following benchmark was run on a 2015 MacBook Pro with a 2.5 GHz 4-Core Intel Core i7 processor and 16 GB of RAM. |
| 75 | +The following benchmark was run on a 2015 MacBook Pro with a 2.5 GHz 4-Core Intel Core i7 processor and 16 GB of RAM. |
76 | 76 | ``` |
77 | 77 | MD5 (13 chars): 6.141045 0.086745 6.227790 ( 6.263524) |
78 | 78 | SHA1 (13 chars): 6.230957 0.080145 6.311102 ( 6.333384) |
@@ -123,16 +123,16 @@ Fastest: blake3 with 8.499842999968678 seconds |
123 | 123 | Slowest: RMD160 with 24.535302000120282 seconds |
124 | 124 | ``` |
125 | 125 |
|
126 | | -Another benchmark was run on a 2022 MacBook Pro with a Apple M1 processor and 16 GB of RAM. |
| 126 | +Another benchmark was run on a 2022 MacBook Pro with a Apple M1 processor and 16 GB of RAM. |
127 | 127 | ``` |
128 | | - user system total real |
129 | | -MD5: 4.080778 0.029457 4.110235 ( 4.388991) |
130 | | -SHA1: 3.736124 0.030763 3.766887 ( 3.991860) |
131 | | -SHA3-256: 3.511138 0.036125 3.547263 ( 3.664061) |
132 | | -SHA3-384: 4.009041 0.085845 4.094886 ( 4.094987) |
133 | | -SHA3-512: 4.078389 0.071463 4.149852 ( 4.149982) |
134 | | -RMD160: 2.965860 0.026660 2.992520 ( 3.216815) |
135 | | -blake3: 1.715370 0.004587 1.719957 ( 1.719995) |
| 128 | + user system total real |
| 129 | +MD5 (13 chars): 4.055481 0.041212 4.096693 ( 4.097044) |
| 130 | +SHA1 (13 chars): 3.862285 0.050686 3.912971 ( 3.928102) |
| 131 | +SHA3-256 (13 chars): 2.293100 0.052982 2.346082 ( 2.346571) |
| 132 | +SHA3-384 (13 chars): 2.767608 0.079975 2.847583 ( 2.847594) |
| 133 | +SHA3-512 (13 chars): 2.792520 0.070482 2.863002 ( 2.862991) |
| 134 | +RMD160 (13 chars): 2.842812 0.036370 2.879182 ( 3.097712) |
| 135 | +blake3 (13 chars): 1.208742 0.004124 1.212866 ( 1.212986) |
136 | 136 | ``` |
137 | 137 |
|
138 | 138 | In both cases, the `blake3ruby` gem was about 2.5 times faster than the md5, sha1, sha3-256, sha3-384, sha3-512, and rmd160 digest algorithms. |
|
0 commit comments