Skip to content

Test Alt Bn128

Documentation for tests/benchmark/compute/precompile/test_alt_bn128.py@7b8124a7.

Generate fixtures for these test cases for Osaka 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 (Osaka) Description
test_alt_bn128 benchmark_test 20 Benchmark ALT_BN128 precompile.
test_bn128_pairings_amortized benchmark_test 1 Test running a block with as many BN128 pairings as possible.
test_alt_bn128_benchmark benchmark_test 5 Benchmark BN128 pairings precompile with varying number of pairs.