gannan08 / rdf-canonize-rs

Please see https://github.com/digitalbazaar/rdf-canonize-rs
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Rust hashing speed #11

Open mattcollier opened 3 years ago

mattcollier commented 3 years ago

I was curious to know if we were dealing with a pure crypto race so I put this together:

https://github.com/mattcollier/rust-hash-bench

Which goes with this: https://github.com/digitalbazaar/loop-bench/blob/rdf-canonize-local-native/index25.js

which shows this for the default 1M operations.

NODEJS MS 3013.116585
RUST MS 1916.46965

Rust wins for big and small numbers of operations.