(node_factory, bitcoind, benchmark)
| 216 | |
| 217 | |
| 218 | def 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 | |
| 226 | def test_spam_listcommands(node_factory, bitcoind, benchmark): |
nothing calls this directly
no test coverage detected