Add benchmarks

This commit is contained in:
2025-12-12 19:44:11 +09:00
parent 0f7fc8f706
commit ec907bb4e0
14 changed files with 706 additions and 16 deletions

View File

@@ -0,0 +1,11 @@
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