Get a node which is optimized for benchmarking
(node_factory, extra_options={})
| 18 | |
| 19 | |
| 20 | def get_bench_node(node_factory, extra_options={}): |
| 21 | """Get a node which is optimized for benchmarking""" |
| 22 | options = extra_options.copy() |
| 23 | # The normal log-level trace makes for a lot of IO. |
| 24 | options['log-level'] = 'info' |
| 25 | node = node_factory.get_node(start=False, options=options) |
| 26 | # Memleak detection here creates significant overhead! |
| 27 | del node.daemon.env["LIGHTNINGD_DEV_MEMLEAK"] |
| 28 | # Don't bother recording all our io. |
| 29 | del node.daemon.opts['dev-save-plugin-io'] |
| 30 | node.start() |
| 31 | return node |
| 32 | |
| 33 | |
| 34 | def get_bench_line_graph(node_factory, num_nodes, wait_for_announce=False): |