Files
dibbler/tests/benchmark/benchmark_settings.py
h7x4 af4b6ed16a
Some checks failed
Run tests / run-tests (push) Successful in 2m1s
Run benchmarks / run-tests (push) Failing after 10m57s
fixup! Add benchmarks
2025-12-13 16:19:54 +09:00

12 lines
465 B
Python

TRANSACTION_GENERATOR_EXCEPTION_LIMIT = 15
"""
The random transaction generator uses a set seed to generate transactions.
However, not all transactions are valid in all contexts. We catch illegal
generated transactions with a try/except, and retry until we generate a valid
one. However, if we exceed this limit, something is likely wrong with the generator
instead, due to the unlikely high number of exceptions.
"""
BENCHMARK_ITERATIONS = 5
BENCHMARK_ROUNDS = 3