Skip to content

Test Keccak

Documentation for tests/benchmark/compute/instruction/test_keccak.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/compute/instruction/test_keccak.py --gas-benchmark-values 1

Benchmark keccak instructions.

Supported Opcodes: - KECCAK256

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_keccak benchmark_test 18 Benchmark KECCAK256 instruction with diff input data and offsets.
test_keccak_diff_mem_msg_sizes benchmark_test 16 Benchmark KECCAK256 instruction with diff memory and message sizes.
test_keccak_max_permutations benchmark_test 1 Benchmark KECCAK256 instruction to maximize permutations per block.