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 @@ -515,3 +515,17 @@ mod tests {
515515 added_monitors. clear ( ) ;
516516 }
517517}
518+
519+ #[ cfg( ldk_bench) ]
520+ /// Benches
521+ pub mod bench {
522+ use criterion:: Criterion ;
523+
524+ /// Bench!
525+ pub fn bench_sends ( bench : & mut Criterion ) {
526+ let store_a = super :: FilesystemStore :: new ( "bench_filesystem_store_a" . into ( ) ) ;
527+ let store_b = super :: FilesystemStore :: new ( "bench_filesystem_store_b" . into ( ) ) ;
528+ lightning:: ln:: channelmanager:: bench:: bench_two_sends (
529+ bench, "bench_filesystem_persisted_sends" , store_a, store_b) ;
530+ }
531+ }
You can’t perform that action at this time.
0 commit comments