Test Arithmetic¶
Documentation for tests/benchmark/compute/instruction/test_arithmetic.py@8db70f93.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/benchmark/compute/instruction/test_arithmetic.py --gas-benchmark-values 1
Benchmark arithmetic instructions.
Supported Opcodes: - ADD - ADDMOD - MUL - MULMOD - SUB - SUBMOD - DIV - SDIV - MOD - SMOD - EXP - SIGNEXTEND
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_arithmetic |
benchmark_test | 13 | Benchmark arithmetic instructions. |
test_exp_bench_arithmetic |
benchmark_test | 36 | Benchmark EXP instruction. |
test_mod |
benchmark_test | 8 | Benchmark MOD instructions. |
test_mod_arithmetic |
benchmark_test | 8 | Benchmark ADDMOD and MULMOD instructions. |