rust-lightning/bench
Matt Corallo 3096061bef Drop ahash dependency in favor of core's SipHasher
https://github.com/tkaitchuck/aHash/pull/196 bumped the MSRV of
`ahash` in a patch release, which makes it rather difficult for us
to have it as a dependency.

Further, it seems that `ahash` hasn't been particularly robust in
the past, notably
https://github.com/tkaitchuck/aHash/issues/163 and
https://github.com/tkaitchuck/aHash/issues/166.

Luckily, `core` provides `SipHasher` even on no-std (sadly its
SipHash-2-4 unlike the SipHash-1-3 used by the `DefaultHasher` in
`std`). Thus, we drop the `ahash` dependency entirely here and
simply wrap `SipHasher` for our `no-std` HashMaps.
2024-02-16 20:34:41 +00:00
..
benches Add a benchmark for decaying a 100k channel scorer's liquidity info 2023-12-13 23:26:09 +00:00
Cargo.toml Drop ahash dependency in favor of core's SipHasher 2024-02-16 20:34:41 +00:00
README.md Add trivial README to bench to describe how to run them. 2023-05-11 06:11:51 +00:00

This crate uses criterion to benchmark various LDK functions.

It can be run as RUSTFLAGS=--cfg=ldk_bench cargo bench.

For routing or other HashMap-bottlenecked functions, the hashbrown feature should also be benchmarked.