]> git.bitcoin.ninja Git - rust-lightning/commit
Replace std's unmaintained bench with criterion
authorMatt Corallo <git@bluematt.me>
Thu, 11 May 2023 06:03:57 +0000 (06:03 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 11 May 2023 06:11:49 +0000 (06:11 +0000)
commit1701b021241feae4091a5cda9f68c649070a416a
tree05367d759022ac17de2bdd2c103eacec1cdfca0b
parent2775902f3ab0fd8a25a2ec83303fb959d7468abb
Replace std's unmaintained bench with criterion

Rather than using the std benchmark framework (which isn't
maintained and is unlikely to get any further maintenance), we swap
for criterion, which at least gets us a variable number of test
runs so our benchmarks don't take forever.

We also fix the RGS benchmark to pass now that the file in use is
stale compared to today's date.
17 files changed:
.github/workflows/build.yml
Cargo.toml
bench/Cargo.toml [new file with mode: 0644]
bench/benches/bench.rs [new file with mode: 0644]
lightning-persister/Cargo.toml
lightning-persister/src/lib.rs
lightning-rapid-gossip-sync/Cargo.toml
lightning-rapid-gossip-sync/src/lib.rs
lightning/Cargo.toml
lightning/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs
lightning/src/sign/mod.rs
lightning/src/sync/mod.rs
lightning/src/util/test_utils.rs