Skip to content

Test Alt Bn128

Documentation for tests/benchmark/compute/precompile/test_alt_bn128.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/precompile/test_alt_bn128.py --gas-benchmark-values 1

Benchmark ALT_BN128 precompile.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_alt_bn128 benchmark_test 20 Benchmark ALT_BN128 precompile.
test_alt_bn128_benchmark benchmark_test 5 Benchmark BN128 pairings precompile with varying number of pairs.
test_alt_bn128_uncachable benchmark_test 3 Benchmark ecAdd/ecMul with unique input per call.
test_bn128_pairings_amortized benchmark_test 1 Test running a block with as many BN128 pairings as possible.
test_ec_pairing benchmark_test 5 Benchmark ecpairing precompile with unique inputs per call.