pytest: add askrene layer creation bench.
This means it has to do a lookup and an insert. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -262,3 +262,10 @@ def test_payment_speed(node_factory, benchmark):
|
||||
l1.rpc.waitsendpay(phash)
|
||||
|
||||
benchmark(onepay, l1, routestep)
|
||||
|
||||
|
||||
def test_askrene_layers(node_factory):
|
||||
l1 = get_bench_node(node_factory)
|
||||
NUM_LAYERS = 20_000
|
||||
for i in range(NUM_LAYERS):
|
||||
l1.rpc.askrene_create_layer(f'test_askrene_layers-{i}')
|
||||
|
||||
Reference in New Issue
Block a user