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 @@ -442,3 +442,17 @@ mod tests {
442
442
added_monitors. clear ( ) ;
443
443
}
444
444
}
445
+
446
+ #[ cfg( ldk_bench) ]
447
+ /// Benches
448
+ pub mod bench {
449
+ use criterion:: Criterion ;
450
+
451
+ /// Bench!
452
+ pub fn bench_sends ( bench : & mut Criterion ) {
453
+ let store_a = super :: FilesystemStore :: new ( "bench_filesystem_store_a" . into ( ) ) ;
454
+ let store_b = super :: FilesystemStore :: new ( "bench_filesystem_store_b" . into ( ) ) ;
455
+ lightning:: ln:: channelmanager:: bench:: bench_two_sends (
456
+ bench, "bench_filesystem_persisted_sends" , store_a, store_b) ;
457
+ }
458
+ }
You can’t perform that action at this time.
0 commit comments