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,
15
15
lightning:: routing:: router:: benches:: generate_large_mpp_routes_with_probabilistic_scorer,
16
16
lightning:: sign:: benches:: bench_get_secure_random_bytes,
17
17
lightning:: ln:: channelmanager:: bench:: bench_sends,
18
+ lightning_persister:: fs_store:: bench:: bench_sends,
18
19
lightning_rapid_gossip_sync:: bench:: bench_reading_full_graph_from_file,
19
20
lightning:: routing:: gossip:: benches:: read_network_graph,
20
21
lightning:: routing:: gossip:: benches:: write_network_graph) ;
Original file line number Diff line number Diff line change @@ -460,3 +460,17 @@ mod tests {
460
460
added_monitors. clear ( ) ;
461
461
}
462
462
}
463
+
464
+ #[ cfg( ldk_bench) ]
465
+ /// Benches
466
+ pub mod bench {
467
+ use criterion:: Criterion ;
468
+
469
+ /// Bench!
470
+ pub fn bench_sends ( bench : & mut Criterion ) {
471
+ let store_a = super :: FilesystemStore :: new ( "bench_filesystem_store_a" . into ( ) ) ;
472
+ let store_b = super :: FilesystemStore :: new ( "bench_filesystem_store_b" . into ( ) ) ;
473
+ lightning:: ln:: channelmanager:: bench:: bench_two_sends (
474
+ bench, "bench_filesystem_persisted_sends" , store_a, store_b) ;
475
+ }
476
+ }
You can’t perform that action at this time.
0 commit comments