MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_spam_listcommands

Function test_spam_listcommands

tests/benchmark.py:226–231  ·  view source on GitHub ↗
(node_factory, bitcoind, benchmark)

Source from the content-addressed store, hash-verified

224
225
226def test_spam_listcommands(node_factory, bitcoind, benchmark):
227 plugin = os.path.join(os.getcwd(), "tests/plugins/test_libplugin")
228 l1 = get_bench_node(node_factory, extra_options={"plugin": plugin})
229
230 # This calls "listinvoice" 100,000 times (which doesn't need a transaction commit)
231 benchmark(l1.rpc.spamlistcommand, 100_000)
232
233
234def test_payment_speed(node_factory, benchmark):

Callers

nothing calls this directly

Calls 2

get_bench_nodeFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected