feat(tests): Add dupn, swapn and exhange tests

#2343Merged
Comparing
nemnem7:feature/interpreter/instructions/tests
(
2331b74
) with
main
(
c99d3dd
)
CodSpeed Performance Gauge
+12%
Improvements
1
Regressions
0
Untouched
24
New
0
Dropped
0
Ignored
1

Benchmarks

Improved

evm-build
bins/revme/benches/evm.rs::benches::evm::evm-build
CodSpeed Performance Gauge
+12%
9.5 µs
8.5 µs

Passed

transfer
bins/revme/benches/evm.rs::benches::evm::transfer
CodSpeed Performance Gauge
+1%
22.9 µs
22.7 µs
ecpairing precompile
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::ecpairing precompile
CodSpeed Performance Gauge
0%
4.9 ms
4.9 ms
g1_add
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g1_add
CodSpeed Performance Gauge
0%
27.7 µs
27.6 µs
bn128 add precompile
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::bn128 add precompile
CodSpeed Performance Gauge
0%
22 µs
21.9 µs
analysis
bins/revme/benches/evm.rs::benches::evm::analysis
CodSpeed Performance Gauge
0%
57.3 µs
57.2 µs
g2_add
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g2_add
CodSpeed Performance Gauge
0%
42.2 µs
42.2 µs
g1_msm (size 1)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g1_msm (size 1)
CodSpeed Performance Gauge
0%
713.2 µs
713.2 µs
g1_msm (size 256)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g1_msm (size 256)
CodSpeed Performance Gauge
0%
89.2 ms
89.2 ms
snailtracer
bins/revme/benches/evm.rs::benches::evm::snailtracer
CodSpeed Performance Gauge
0%
188 ms
188 ms
pairing (2 pairs)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::pairing (2 pairs)
CodSpeed Performance Gauge
0%
6.5 ms
6.5 ms
pairing (1 pairs)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::pairing (1 pairs)
CodSpeed Performance Gauge
0%
4.4 ms
4.4 ms
g2_msm (size 128)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g2_msm (size 128)
CodSpeed Performance Gauge
0%
88.2 ms
88.2 ms
g1_msm (size 128)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g1_msm (size 128)
CodSpeed Performance Gauge
0%
47 ms
47 ms
pairing (16 pairs)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::pairing (16 pairs)
CodSpeed Performance Gauge
0%
36.5 ms
36.5 ms
g2_msm (size 256)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g2_msm (size 256)
CodSpeed Performance Gauge
0%
162.3 ms
162.3 ms
bn128 mul precompile
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::bn128 mul precompile
CodSpeed Performance Gauge
0%
343.1 µs
343.1 µs
pairing (8 pairs)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::pairing (8 pairs)
CodSpeed Performance Gauge
0%
19.4 ms
19.4 ms
kzg precompile
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::kzg precompile
CodSpeed Performance Gauge
0%
7.5 ms
7.5 ms
map_fp2_to_g2
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::map_fp2_to_g2
CodSpeed Performance Gauge
0%
860.3 µs
860.3 µs
burntpix
bins/revme/benches/evm.rs::benches::evm::burntpix
CodSpeed Performance Gauge
0%
510.8 ms
510.8 ms
g2_msm (size 1)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g2_msm (size 1)
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
map_fp_to_g1
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::map_fp_to_g1
CodSpeed Performance Gauge
0%
243.4 µs
243.4 µs
g1_msm (size 2)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g1_msm (size 2)
CodSpeed Performance Gauge
0%
1.4 ms
1.4 ms
g2_msm (size 2)
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::g2_msm (size 2)
CodSpeed Performance Gauge
0%
2.7 ms
2.7 ms

Ignored

ecrecover precompileIgnored
crates/precompile/benches/bench.rs::benches::benchmark_crypto_precompiles::Crypto Precompile benchmarks::ecrecover precompile
CodSpeed Performance Gauge
0%
199.9 µs
200 µs

Commits

Click on a commit to change the comparison range
Base
main
c99d3dd
+2%
added tests for dupn, swapn and exchange functions
ddc1231
6 days ago
by nemnem7
-2%
added Interpreter::default() and Interpreter::with_bytecode() functions
1e2b45c
3 days ago
by nemnem7
+12%
fixed clippy errors
616811c
3 days ago
by nemnem7
0%
fixed interpreter default() method
1a93f8b
3 days ago
by nemnem7
0%
removed explicit type from interpreter default() fn
2331b74
2 days ago
by nemnem7
© 2025 CodSpeed Technology