Skip to content

Commit a22fd17

Browse files
committed
pytest: increase test_generate_coinmoves to 5M entries.
This is slow, but will make sure we find out if we add latency spikes in future. tests/test_coinmoves.py::test_generate_coinmoves (5,000,000, sqlite3): Time (from start to end of l2 node): 236 seconds Worst latency: 0.15 seconds tests/test_coinmoves.py::test_generate_coinmoves (5,000,000, Postgres): Time (from start to end of l2 node): 557 seconds Worst latency: 0.16 seconds Signed-off-by: Rusty Russell <[email protected]> Changelog-Fixed: lightningd: multiple signficant speedups for large nodes, especially preventing "freezes" under exceptionally high load.
1 parent 7c60730 commit a22fd17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_coinmoves.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,8 +2108,8 @@ def test_generate_coinmoves(node_factory, bitcoind, executor):
21082108
next_timestamp = entries[-1]['timestamp'] + 1
21092109

21102110
batch = []
2111-
# Let's make 2 million entries.
2112-
for _ in range(2_000_000 // len(entries)):
2111+
# Let's make 5 million entries.
2112+
for _ in range(5_000_000 // len(entries)):
21132113
# Random payment_hash
21142114
entries[0]['payment_hash'] = entries[1]['payment_hash'] = random.randbytes(32)
21152115
entries[2]['payment_hash'] = random.randbytes(32)

0 commit comments

Comments
 (0)