---
# System prepended metadata

title: Benchmarking EIP-2537 precompiles in Erigon

---

For Erigon-2, Go to branch `release/2.61` or `pectra_e2`

`make evm` 

Go to the `eip-2537-evm-benchmarks` repo directory, then run

```
GETH_EVM=/home/somnath/Documents/code/erigon1/build/bin/evm ./benchmark_all.sh
```

  

Running the individual commands within the benchmark shell scripts:-

```shell
GETH_EVM=/home/somnath/Documents/code/erigon1/build/bin/evm --codefile bytecodes/bench-one.hex --inputfile benchmark_inputs/g1msm28.hex --prestate ./genesis.json --bench run
```


Results on laptop with Ryzen7-6800HS laptop

```
benchmarking g1add
	139 mgas/sec
benchmarking g1mul
	100 mgas/sec
benchmarking g2add
	138 mgas/sec
benchmarking g2mul
	195 mgas/sec
benchmarking mapfp
	109 mgas/sec
benchmarking mapfp2
	364 mgas/sec
benchmarking g1msm
	1 pairs: 87 mgas/sec
	2 pairs: 95 mgas/sec
	3 pairs: 94 mgas/sec
	4 pairs: 83 mgas/sec
	5 pairs: 83 mgas/sec
	6 pairs: 80 mgas/sec
	7 pairs: 75 mgas/sec
	8 pairs: 69 mgas/sec
	9 pairs: 67 mgas/sec
	10 pairs: 63 mgas/sec
	11 pairs: 61 mgas/sec
	12 pairs: 59 mgas/sec
	13 pairs: 57 mgas/sec
	14 pairs: 54 mgas/sec
	15 pairs: 53 mgas/sec
	16 pairs: 51 mgas/sec
	17 pairs: 50 mgas/sec
	18 pairs: 50 mgas/sec
	19 pairs: 50 mgas/sec
	20 pairs: 49 mgas/sec
	21 pairs: 49 mgas/sec
	22 pairs: 49 mgas/sec
	23 pairs: 49 mgas/sec
	24 pairs: 49 mgas/sec
	25 pairs: 48 mgas/sec
	26 pairs: 48 mgas/sec
	27 pairs: 47 mgas/sec
	28 pairs: 46 mgas/sec
	29 pairs: 46 mgas/sec
	30 pairs: 46 mgas/sec
	31 pairs: 45 mgas/sec
	32 pairs: 45 mgas/sec
	64 pairs: 42 mgas/sec
	128 pairs: 34 mgas/sec
	256 pairs: 35 mgas/sec
	512 pairs: 36 mgas/sec
	2048 pairs: 37 mgas/sec
	4096 pairs: 37 mgas/sec
benchmarking g2msm
	1 pairs: 117 mgas/sec
	2 pairs: 140 mgas/sec
	3 pairs: 160 mgas/sec
	4 pairs: 158 mgas/sec
	5 pairs: 161 mgas/sec
	6 pairs: 161 mgas/sec
	7 pairs: 155 mgas/sec
	8 pairs: 146 mgas/sec
	9 pairs: 148 mgas/sec
	10 pairs: 148 mgas/sec
	11 pairs: 150 mgas/sec
	12 pairs: 150 mgas/sec
	13 pairs: 147 mgas/sec
	14 pairs: 144 mgas/sec
	15 pairs: 141 mgas/sec
	16 pairs: 138 mgas/sec
	17 pairs: 139 mgas/sec
	18 pairs: 139 mgas/sec
	19 pairs: 140 mgas/sec
	20 pairs: 140 mgas/sec
	21 pairs: 140 mgas/sec
	22 pairs: 139 mgas/sec
	23 pairs: 139 mgas/sec
	24 pairs: 139 mgas/sec
	25 pairs: 139 mgas/sec
	26 pairs: 139 mgas/sec
	27 pairs: 136 mgas/sec
	28 pairs: 135 mgas/sec
	29 pairs: 134 mgas/sec
	30 pairs: 133 mgas/sec
	31 pairs: 132 mgas/sec
	32 pairs: 130 mgas/sec
	64 pairs: 122 mgas/sec
	128 pairs: 105 mgas/sec
	256 pairs: 111 mgas/sec
	512 pairs: 116 mgas/sec
	2048 pairs: 122 mgas/sec
	4096 pairs: 121 mgas/sec
benchmarking pairing
	1 pairs: 183 mgas/sec
	2 pairs: 178 mgas/sec
	3 pairs: 175 mgas/sec
	4 pairs: 174 mgas/sec
	5 pairs: 173 mgas/sec
	6 pairs: 172 mgas/sec
	7 pairs: 172 mgas/sec
	8 pairs: 171 mgas/sec
```