Skip to content

orbitinghail/experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

experiments

Hashing stuff

I'm pretty interested in both blake3 and polymur hash functions. This repo contains some quick and dirty programs which can be used to test these functions both natively and with various wasm targets. This repo also includes some test of umash, but they don't compile to wasm.

# benchmark native using hyperfine
cargo build --release -p hash && hyperfine -L hasher blake3,polymur,umash-fingerprint 'target/release/hash {hasher} 4096 10000'

# benchmark wasm32-unknown-unknown using wasm-pack
cd crates/hash-js && wasm-pack test --chrome --release
# then open http://127.0.0.1:8000

# benchmark wasm32-wasi using hyperfine & wasmer
cargo build --release --target wasm32-wasi && hyperfine -L hasher blake3,polymur -L buf 4096,16384 'wasmer run target/wasm32-wasi/release/hash.wasm {hasher} {buf} 10000' 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages