Skip to content

Commit 35829a4

Browse files
authored
feat(tests): add one more modexp benchmark input (#2052)
This modexp test case is exceptionally slow in EVM implementations using Go standard library `"math/big"`.
1 parent 42da122 commit 35829a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/benchmark/test_worst_compute.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,12 @@ def test_worst_precompile_only_data_input(
11771177
),
11781178
id="mod_vul_pawel_3_exp_heavy",
11791179
),
1180+
pytest.param(
1181+
ModExpInput.from_bytes(
1182+
"000000000000000000000000000000000000000000000000000000000000001700000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000017bffffffffffffffffffffffffffffffffffffffffffffbffffffffffffffffff7ffffffffffffffffffffffffffffffffffffffffffe"
1183+
),
1184+
id="mod_vul_pawel_3_exp_8",
1185+
),
11801186
# Ported from https://github.com/NethermindEth/nethermind/blob/ceb8d57b8530ce8181d7427c115ca593386909d6/tools/EngineRequestsGenerator/TestCases/ModexpVulnerability.cs#L172
11811187
pytest.param(
11821188
ModExpInput(

0 commit comments

Comments
 (0)