File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ criterion_group!(benches,
1515 lightning:: routing:: router:: benches:: generate_large_mpp_routes_with_probabilistic_scorer,
1616 lightning:: sign:: benches:: bench_get_secure_random_bytes,
1717 lightning:: ln:: channelmanager:: bench:: bench_sends,
18+ lightning_persister:: fs_store:: bench:: bench_sends,
1819 lightning_rapid_gossip_sync:: bench:: bench_reading_full_graph_from_file,
1920 lightning:: routing:: gossip:: benches:: read_network_graph,
2021 lightning:: routing:: gossip:: benches:: write_network_graph) ;
Original file line number Diff line number Diff line change @@ -510,3 +510,17 @@ mod tests {
510510 added_monitors. clear ( ) ;
511511 }
512512}
513+
514+ #[ cfg( ldk_bench) ]
515+ /// Benches
516+ pub mod bench {
517+ use criterion:: Criterion ;
518+
519+ /// Bench!
520+ pub fn bench_sends ( bench : & mut Criterion ) {
521+ let store_a = super :: FilesystemStore :: new ( "bench_filesystem_store_a" . into ( ) ) ;
522+ let store_b = super :: FilesystemStore :: new ( "bench_filesystem_store_b" . into ( ) ) ;
523+ lightning:: ln:: channelmanager:: bench:: bench_two_sends (
524+ bench, "bench_filesystem_persisted_sends" , store_a, store_b) ;
525+ }
526+ }
You can’t perform that action at this time.
0 commit comments