rust-lightning/bench/benches/bench.rs
Matt Corallo 1701b02124 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.
2023-05-11 06:11:49 +00:00

22 lines
1.1 KiB
Rust

extern crate lightning;
extern crate lightning_persister;
extern crate criterion;
use criterion::{criterion_group, criterion_main};
criterion_group!(benches,
// Note that benches run in the order given here. Thus, they're sorted according to how likely
// developers are to be working on the specific code listed, then by runtime.
lightning::routing::router::benches::generate_routes_with_zero_penalty_scorer,
lightning::routing::router::benches::generate_mpp_routes_with_zero_penalty_scorer,
lightning::routing::router::benches::generate_routes_with_probabilistic_scorer,
lightning::routing::router::benches::generate_mpp_routes_with_probabilistic_scorer,
lightning::routing::router::benches::generate_large_mpp_routes_with_probabilistic_scorer,
lightning::sign::benches::bench_get_secure_random_bytes,
lightning::ln::channelmanager::bench::bench_sends,
lightning_persister::bench::bench_sends,
lightning_rapid_gossip_sync::bench::bench_reading_full_graph_from_file,
lightning::routing::gossip::benches::read_network_graph,
lightning::routing::gossip::benches::write_network_graph);
criterion_main!(benches);