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

Function test_spam_commands

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

Source from the content-addressed store, hash-verified

216
217
218def test_spam_commands(node_factory, bitcoind, benchmark):
219 plugin = os.path.join(os.getcwd(), "tests/plugins/test_libplugin")
220 l1 = get_bench_node(node_factory, extra_options={"plugin": plugin})
221
222 # This calls "batch" 1M times (which doesn't need a transaction)
223 benchmark(l1.rpc.spamcommand, 1_000_000)
224
225
226def test_spam_listcommands(node_factory, bitcoind, benchmark):

Callers

nothing calls this directly

Calls 2

get_bench_nodeFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected