Skip to content

Commit 0857f5f

Browse files
committed
add more evm384 benchmarks
1 parent 1c67a06 commit 0857f5f

24 files changed

Lines changed: 163 additions & 117 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build_evm_engines:
55
cd evm/parity && docker build . -t ewasm/parity-bench:1
66
cd evm/evmone && docker build . -t ewasm/evmone-bench:1
77
cd evm/cita-vm && docker build . -t ewasm/cita-vm-bench:1
8-
cd evm/evmone-evm384 && docker build . -t ewasm/evmone-evm384-bench:1
8+
cd evm/evmone-evm384 && docker build . -t ewasm/evmone-evm384-bench:2
99

1010
build_wasm_engines:
1111
cd wasm-engines && ./build_engines.sh
Lines changed: 108 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,114 @@
11
engine, test_name, total_time, gas_used
22
engine,test_name,total_time,gas_used
3-
evmone,sha1-10808-bits-shiftopt,0.000793345,759785
4-
evmone,sha1-21896-bits-shiftopt,0.001545941,1484254
5-
evmone,sha1-42488-bits-shiftopt,0.002976448,2898473
6-
evmone,bn256g2mul-0xAshish,0.001172171,455757
7-
evmone,blake2b-8415-bytes-shiftopt,0.01365291,12043105
8-
evmone,blake2b-5610-bytes-shiftopt,0.0089686,7434820
9-
evmone,blake2b-2805-bytes-shiftopt,0.004342448,3423526
10-
evmone,mul256-gcolvin-drag-race,0.007159219,5610277
11-
evmone,bn128_mul_weierstrudel-cdetrio2,0.000328392,47165
12-
evmone,bn128_mul_weierstrudel-chfast1,0.000172408,23449
13-
evmone,bn128_mul_weierstrudel-chfast2,0.000280519,39337
14-
evmone,bn128_mul_weierstrudel-chfast3,0.000332211,47291
15-
evmone,bn128_mul_weierstrudel-cdetrio6,0.000327677,47561
16-
evmone,bn128_mul_weierstrudel-cdetrio7,0.000333883,47165
17-
evmone,bn128_mul_weierstrudel-cdetrio11,0.000333957,47561
18-
evmone,bn128_mul_weierstrudel-cdetrio12,0.000329381,47165
19-
evmone,blake2b_huff-8415-bytes,0.001049435,879920
20-
evmone,blake2b_huff-5610-bytes,0.000702116,586839
21-
evmone,blake2b_huff-2805-bytes,0.000379592,293755
22-
evmone,blake2b-8415-bytes,0.016695173,12351815
23-
evmone,blake2b-5610-bytes,0.011085657,7640669
24-
evmone,blake2b-2805-bytes,0.005462505,3526514
25-
evmone,sha1-10808-bits,0.001527905,790156
26-
evmone,sha1-21896-bits,0.003110602,1543605
27-
evmone,sha1-42488-bits,0.005649394,3014404
3+
evmone,sha1-10808-bits-shiftopt,0.000913556,759785
4+
evmone,sha1-21896-bits-shiftopt,0.001750217,1484254
5+
evmone,sha1-42488-bits-shiftopt,0.003427174,2898473
6+
evmone,bn256g2mul-0xAshish,0.001380803,455757
7+
evmone,blake2b-8415-bytes-shiftopt,0.015492,12043105
8+
evmone,blake2b-5610-bytes-shiftopt,0.010635568,7434820
9+
evmone,blake2b-2805-bytes-shiftopt,0.004941619,3423526
10+
evmone,mul256-gcolvin-drag-race,0.008461579,5610277
11+
evmone,bn128_mul_weierstrudel-cdetrio2,0.000450124,47165
12+
evmone,bn128_mul_weierstrudel-chfast1,0.000210195,23449
13+
evmone,bn128_mul_weierstrudel-chfast2,0.000327713,39337
14+
evmone,bn128_mul_weierstrudel-chfast3,0.000368234,47291
15+
evmone,bn128_mul_weierstrudel-cdetrio6,0.00036349,47561
16+
evmone,bn128_mul_weierstrudel-cdetrio7,0.000365069,47165
17+
evmone,bn128_mul_weierstrudel-cdetrio11,0.000363298,47561
18+
evmone,bn128_mul_weierstrudel-cdetrio12,0.00035856,47165
19+
evmone,blake2b_huff-8415-bytes,0.001157,879920
20+
evmone,blake2b_huff-5610-bytes,0.000789398,586839
21+
evmone,blake2b_huff-2805-bytes,0.000409222,293755
22+
evmone,blake2b-8415-bytes,0.019300897,12351815
23+
evmone,blake2b-5610-bytes,0.01214062,7640669
24+
evmone,blake2b-2805-bytes,0.006030317,3526514
25+
evmone,sha1-10808-bits,0.001655786,790156
26+
evmone,sha1-21896-bits,0.003175936,1543605
27+
evmone,sha1-42488-bits,0.006221136,3014404
2828
engine,test_name,total_time,gas_used
29-
parity-evm,sha1-10808-bits-shiftopt,0.018641107,759785
30-
parity-evm,sha1-21896-bits-shiftopt,0.034963908,1484254
31-
parity-evm,sha1-42488-bits-shiftopt,0.069549043,2898473
32-
parity-evm,bn256g2mul-0xAshish,0.016423093,455757
33-
parity-evm,blake2b-8415-bytes-shiftopt,0.253661906,12043105
34-
parity-evm,blake2b-5610-bytes-shiftopt,0.167942964,7434820
35-
parity-evm,blake2b-2805-bytes-shiftopt,0.075225324,3423526
36-
parity-evm,mul256-gcolvin-drag-race,0.102674566,5610277
37-
parity-evm,bn128_mul_weierstrudel-cdetrio2,0.003550443,47165
38-
parity-evm,bn128_mul_weierstrudel-chfast1,0.001629055,23449
39-
parity-evm,bn128_mul_weierstrudel-chfast2,0.002895177,39337
40-
parity-evm,bn128_mul_weierstrudel-chfast3,0.003433942,47291
41-
parity-evm,bn128_mul_weierstrudel-cdetrio6,0.003911592,47561
42-
parity-evm,bn128_mul_weierstrudel-cdetrio7,0.004013359,47165
43-
parity-evm,bn128_mul_weierstrudel-cdetrio11,0.003586314,47561
44-
parity-evm,bn128_mul_weierstrudel-cdetrio12,0.003398176,47165
45-
parity-evm,blake2b_huff-8415-bytes,0.020829242,879920
46-
parity-evm,blake2b_huff-5610-bytes,0.013631459,586839
47-
parity-evm,blake2b_huff-2805-bytes,0.007137712,293755
48-
parity-evm,blake2b-8415-bytes,0.254601369,12351815
49-
parity-evm,blake2b-5610-bytes,0.183427886,7640669
50-
parity-evm,blake2b-2805-bytes,0.084697691,3526514
51-
parity-evm,sha1-10808-bits,0.051473938,790156
52-
parity-evm,sha1-21896-bits,0.098100583,1543605
53-
parity-evm,sha1-42488-bits,0.186598441,3014404
29+
parity-evm,sha1-10808-bits-shiftopt,0.01924362,759785
30+
parity-evm,sha1-21896-bits-shiftopt,0.039343388,1484254
31+
parity-evm,sha1-42488-bits-shiftopt,0.082592893,2898473
32+
parity-evm,bn256g2mul-0xAshish,0.018054969,455757
33+
parity-evm,blake2b-8415-bytes-shiftopt,0.246052516,12043105
34+
parity-evm,blake2b-5610-bytes-shiftopt,0.16631502,7434820
35+
parity-evm,blake2b-2805-bytes-shiftopt,0.085174344,3423526
36+
parity-evm,mul256-gcolvin-drag-race,0.102363638,5610277
37+
parity-evm,bn128_mul_weierstrudel-cdetrio2,0.003814599,47165
38+
parity-evm,bn128_mul_weierstrudel-chfast1,0.001852161,23449
39+
parity-evm,bn128_mul_weierstrudel-chfast2,0.003533418,39337
40+
parity-evm,bn128_mul_weierstrudel-chfast3,0.003826652,47291
41+
parity-evm,bn128_mul_weierstrudel-cdetrio6,0.003909889,47561
42+
parity-evm,bn128_mul_weierstrudel-cdetrio7,0.003882939,47165
43+
parity-evm,bn128_mul_weierstrudel-cdetrio11,0.003755797,47561
44+
parity-evm,bn128_mul_weierstrudel-cdetrio12,0.003919878,47165
45+
parity-evm,blake2b_huff-8415-bytes,0.02404598,879920
46+
parity-evm,blake2b_huff-5610-bytes,0.015611674,586839
47+
parity-evm,blake2b_huff-2805-bytes,0.007490335,293755
48+
parity-evm,blake2b-8415-bytes,0.282023589,12351815
49+
parity-evm,blake2b-5610-bytes,0.178980371,7640669
50+
parity-evm,blake2b-2805-bytes,0.115642833,3526514
51+
parity-evm,sha1-10808-bits,0.061204778,790156
52+
parity-evm,sha1-21896-bits,0.121327452,1543605
53+
parity-evm,sha1-42488-bits,0.223561552,3014404
5454
engine,test_name,total_time,gas_used
55-
geth-evm,sha1-10808-bits-shiftopt,0.01092,759785
56-
geth-evm,sha1-21896-bits-shiftopt,0.021413,1484254
57-
geth-evm,sha1-42488-bits-shiftopt,0.041112,2898473
58-
geth-evm,bn256g2mul-0xAshish,0.007847,455757
59-
geth-evm,blake2b-8415-bytes-shiftopt,0.122643,12043105
60-
geth-evm,blake2b-5610-bytes-shiftopt,0.083966,7434820
61-
geth-evm,blake2b-2805-bytes-shiftopt,0.042208,3423526
62-
geth-evm,mul256-gcolvin-drag-race,0.125658,5610277
63-
geth-evm,bn128_mul_weierstrudel-cdetrio2,0.001712,47165
64-
geth-evm,bn128_mul_weierstrudel-chfast1,0.000809,23449
65-
geth-evm,bn128_mul_weierstrudel-chfast2,0.001332,39337
66-
geth-evm,bn128_mul_weierstrudel-chfast3,0.001577,47291
67-
geth-evm,bn128_mul_weierstrudel-cdetrio6,0.001578,47561
68-
geth-evm,bn128_mul_weierstrudel-cdetrio7,0.001611,47165
69-
geth-evm,bn128_mul_weierstrudel-cdetrio11,0.001589,47561
70-
geth-evm,bn128_mul_weierstrudel-cdetrio12,0.001534,47165
71-
geth-evm,blake2b_huff-8415-bytes,0.01598,879920
72-
geth-evm,blake2b_huff-5610-bytes,0.010693,586839
73-
geth-evm,blake2b_huff-2805-bytes,0.00528,293755
74-
geth-evm,blake2b-8415-bytes,0.138907,12351815
75-
geth-evm,blake2b-5610-bytes,0.089215,7640669
76-
geth-evm,blake2b-2805-bytes,0.04446,3526514
77-
geth-evm,sha1-10808-bits,0.012774,790156
78-
geth-evm,sha1-21896-bits,0.02663,1543605
79-
geth-evm,sha1-42488-bits,0.050663,3014404
55+
geth-evm,sha1-10808-bits-shiftopt,0.01238,759785
56+
geth-evm,sha1-21896-bits-shiftopt,0.023417,1484254
57+
geth-evm,sha1-42488-bits-shiftopt,0.046608,2898473
58+
geth-evm,bn256g2mul-0xAshish,0.010515,455757
59+
geth-evm,blake2b-8415-bytes-shiftopt,0.178734,12043105
60+
geth-evm,blake2b-5610-bytes-shiftopt,0.113242,7434820
61+
geth-evm,blake2b-2805-bytes-shiftopt,0.058813,3423526
62+
geth-evm,mul256-gcolvin-drag-race,0.196064,5610277
63+
geth-evm,bn128_mul_weierstrudel-cdetrio2,0.002389,47165
64+
geth-evm,bn128_mul_weierstrudel-chfast1,0.00109,23449
65+
geth-evm,bn128_mul_weierstrudel-chfast2,0.001956,39337
66+
geth-evm,bn128_mul_weierstrudel-chfast3,0.002113,47291
67+
geth-evm,bn128_mul_weierstrudel-cdetrio6,0.002236,47561
68+
geth-evm,bn128_mul_weierstrudel-cdetrio7,0.00204,47165
69+
geth-evm,bn128_mul_weierstrudel-cdetrio11,0.00215,47561
70+
geth-evm,bn128_mul_weierstrudel-cdetrio12,0.002199,47165
71+
geth-evm,blake2b_huff-8415-bytes,0.022181,879920
72+
geth-evm,blake2b_huff-5610-bytes,0.015022,586839
73+
geth-evm,blake2b_huff-2805-bytes,0.006877,293755
74+
geth-evm,blake2b-8415-bytes,0.169239,12351815
75+
geth-evm,blake2b-5610-bytes,0.114461,7640669
76+
geth-evm,blake2b-2805-bytes,0.066405,3526514
77+
geth-evm,sha1-10808-bits,0.019439,790156
78+
geth-evm,sha1-21896-bits,0.033344,1543605
79+
geth-evm,sha1-42488-bits,0.067043,3014404
8080
engine,test_name,total_time,gas_used
81-
cita-evm,sha1-10808-bits-shiftopt,0.010150599,873117
82-
cita-evm,sha1-21896-bits-shiftopt,0.02101219,1691062
83-
cita-evm,sha1-42488-bits-shiftopt,0.0409114,3280257
84-
cita-evm,bn256g2mul-0xAshish,0.038344502,486053
85-
cita-evm,blake2b-8415-bytes-shiftopt,0.19389169,12635513
86-
cita-evm,blake2b-5610-bytes-shiftopt,0.133938707,7837276
87-
cita-evm,blake2b-2805-bytes-shiftopt,0.063182734,3635902
88-
cita-evm,mul256-gcolvin-drag-race,0.038346168,5635901
89-
cita-evm,bn128_mul_weierstrudel-cdetrio2,0.014218677,74437
90-
cita-evm,bn128_mul_weierstrudel-chfast1,0.006561293,49441
91-
cita-evm,bn128_mul_weierstrudel-chfast2,0.012221963,66865
92-
cita-evm,bn128_mul_weierstrudel-chfast3,0.014412372,74819
93-
cita-evm,bn128_mul_weierstrudel-cdetrio6,0.014749287,75089
94-
cita-evm,bn128_mul_weierstrudel-cdetrio7,0.014841591,74501
95-
cita-evm,bn128_mul_weierstrudel-cdetrio11,0.015013243,75089
96-
cita-evm,bn128_mul_weierstrudel-cdetrio12,0.01447287,74501
97-
cita-evm,blake2b_huff-8415-bytes,0.012121245,1471220
98-
cita-evm,blake2b_huff-5610-bytes,0.008219742,988103
99-
cita-evm,blake2b_huff-2805-bytes,0.004319099,504983
100-
cita-evm,blake2b-8415-bytes,0.23522132,12944223
101-
cita-evm,blake2b-5610-bytes,0.156721206,8043125
102-
cita-evm,blake2b-2805-bytes,0.078461201,3738890
103-
cita-evm,sha1-10808-bits,0.043154085,903488
104-
cita-evm,sha1-21896-bits,0.084976683,1750413
105-
cita-evm,sha1-42488-bits,0.166074513,3396188
81+
cita-evm,sha1-10808-bits-shiftopt,0.011507736,873117
82+
cita-evm,sha1-21896-bits-shiftopt,0.023250733,1691062
83+
cita-evm,sha1-42488-bits-shiftopt,0.043696734,3280257
84+
cita-evm,bn256g2mul-0xAshish,0.041661315,486053
85+
cita-evm,blake2b-8415-bytes-shiftopt,0.219284906,12635513
86+
cita-evm,blake2b-5610-bytes-shiftopt,0.150651289,7837276
87+
cita-evm,blake2b-2805-bytes-shiftopt,0.070753251,3635902
88+
cita-evm,mul256-gcolvin-drag-race,0.04025802,5635901
89+
cita-evm,bn128_mul_weierstrudel-cdetrio2,0.017360805,74437
90+
cita-evm,bn128_mul_weierstrudel-chfast1,0.00755176,49441
91+
cita-evm,bn128_mul_weierstrudel-chfast2,0.014700198,66865
92+
cita-evm,bn128_mul_weierstrudel-chfast3,0.016663394,74819
93+
cita-evm,bn128_mul_weierstrudel-cdetrio6,0.016525108,75089
94+
cita-evm,bn128_mul_weierstrudel-cdetrio7,0.0158289,74501
95+
cita-evm,bn128_mul_weierstrudel-cdetrio11,0.016873383,75089
96+
cita-evm,bn128_mul_weierstrudel-cdetrio12,0.015874766,74501
97+
cita-evm,blake2b_huff-8415-bytes,0.013346871,1471220
98+
cita-evm,blake2b_huff-5610-bytes,0.009403694,988103
99+
cita-evm,blake2b_huff-2805-bytes,0.004526592,504983
100+
cita-evm,blake2b-8415-bytes,0.276344385,12944223
101+
cita-evm,blake2b-5610-bytes,0.182534859,8043125
102+
cita-evm,blake2b-2805-bytes,0.092191743,3738890
103+
cita-evm,sha1-10808-bits,0.051618213,903488
104+
cita-evm,sha1-21896-bits,0.098697428,1750413
105+
cita-evm,sha1-42488-bits,0.20887153,3396188
106106
engine,test_name,total_time,gas_used
107-
evmone384,evm384-synth-loop-v1,0.020664,12569235
108-
evmone384,evm384-synth-loop-v2,0.013845,5851179
109-
evmone384,evm384-synth-loop-v3,0.010952,5534906
107+
evmone384,evm384-synth-loop-v1-yul,0.024737,12569235
108+
evmone384,evm384-synth-loop-v2-yul,0.014307,5534811
109+
evmone384,evm384-synth-loop-v3-yul,0.013021,5534909
110+
evmone384,evm384-synth-loop-v4-yul,0.014136,4823702
111+
evmone384,evm384-synth-loop-v5-yul,0.00964,4541655
112+
evmone384,evm384-synth-loop-v6-huff,0.00434,1705280
113+
evmone384,evm384-synth-loop-v4-huff,0.00847,3591277
114+
evmone384,evm384-synth-loop-v7-huff,0.00443,1704133

evm/evmone-evm384/Dockerfile

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,46 @@ RUN pip3 install durationpy pandas
99

1010
# install evmone (need CXXFLAGS=-w or the build fails)
1111
WORKDIR /root
12+
13+
# fetch evm384 binaries for different variants
14+
RUN git clone --single-branch --branch v6 https://github.com/ewasm/evm384_f6m_mul.git
15+
16+
# clone and build evmone branches
17+
18+
# v1
1219
RUN git clone --recursive --single-branch --branch v0.5.0-evm384-v1 https://github.com/ethereum/evmone.git evmone-evm384-v1
1320
RUN cd evmone-evm384-v1 && mkdir build && \
1421
cd build && CXXFLAGS="-w" cmake .. -DEVMONE_TESTING=ON && make -j4
1522

16-
RUN git clone --recursive --single-branch --branch v0.5.0-evm384-v2 https://github.com/ethereum/evmone.git evmone-evm384-v2
23+
# v2 - v1 with `out` parameter added
24+
RUN git clone --recursive --single-branch https://github.com/ethereum/evmone -b v0.5.0-evm384-v2 evmone-evm384-v2
1725
RUN cd evmone-evm384-v2 && mkdir build && \
1826
cd build && CXXFLAGS="-w" cmake .. -DEVMONE_TESTING=ON && make -j4
1927

20-
# evmone branch with mem check disabled
21-
RUN git clone --recursive --single-branch https://github.com/ethereum/evmone -b v0.5.0-evm384-v2-unsafe evmone-evm384-v2-unsafe
22-
RUN cd evmone-evm384-v2-unsafe && mkdir build && \
28+
# v3 - v2 with memory checks disabled for arguments in evm384 opcodes
29+
RUN git clone --recursive --single-branch https://github.com/ethereum/evmone -b v0.5.0-evm384-v2-unsafe evmone-evm384-v3
30+
RUN cd evmone-evm384-v3 && mkdir build && \
2331
cd build && CXXFLAGS="-w" cmake .. -DEVMONE_TESTING=ON && make -j4
2432

25-
# fetch evm384 f6m_mul synthetic loop repo
26-
RUN git clone --single-branch --branch v0.0.1 https://github.com/ewasm/evm384_f6m_mul.git
33+
# v4
34+
RUN git clone --recursive --single-branch https://github.com/ethereum/evmone -b evm384-v4 evmone-evm384-v4
35+
RUN cd evmone-evm384-v4 && mkdir build && \
36+
cd build && CXXFLAGS="-w" cmake .. -DEVMONE_TESTING=ON && make -j4
2737

28-
# branch that pre-allocates a page of memory to remain safe (because mem check is disabled)
29-
RUN git clone --single-branch --branch mem-check-disable https://github.com/ewasm/evm384_f6m_mul.git mem-check-disable-evm384_f6m_mul
38+
# v5 - v3 with curve parameters hardcoded
39+
RUN git clone --recursive --single-branch https://github.com/jwasinger/evmone -b evm384-v5 evmone-evm384-v5
40+
RUN cd evmone-evm384-v5 && mkdir build && \
41+
cd build && CXXFLAGS="-w" cmake .. -DEVMONE_TESTING=ON && make -j4
42+
43+
# v6 - mapped register space in memory with evm384 opcode arguments reduced to one stack element
44+
RUN git clone --recursive --single-branch https://github.com/jwasinger/evmone -b evm384-v6 evmone-evm384-v6
45+
RUN cd evmone-evm384-v6 && mkdir build && \
46+
cd build && CXXFLAGS="-w" cmake .. -DEVMONE_TESTING=ON && make -j4
47+
48+
# v7 -
49+
RUN git clone --recursive --single-branch https://github.com/jwasinger/evmone -b evm384-v7 evmone-evm384-v7
50+
RUN cd evmone-evm384-v7 && mkdir build && \
51+
cd build && CXXFLAGS="-w" cmake .. -DEVMONE_TESTING=ON && make -j4
3052

3153
WORKDIR /
3254
CMD /bin/bash

evm/scripts/bench_evm384.py

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,36 @@
1818

1919
EVMONE_BENCH_INFOS = [
2020
{
21-
"command": "/root/evmone-evm384-v1/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v1-f6m_mul_bench.bin 00 74229fc665e6c3f4401905c1a454ea57c8931739d05a074fd60400f19684d680a9e1305c25f13613dcc6cdd6e6e57d0800000000000000000000000000000000",
21+
"command": "/root/evmone-evm384-v1/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v1-f6m_mul_bench.hex 00 74229fc665e6c3f4401905c1a454ea57c8931739d05a074fd60400f19684d680a9e1305c25f13613dcc6cdd6e6e57d0800000000000000000000000000000000",
2222
"bench_name": "evm384-synth-loop-v1"
2323
},
2424
{
25-
"command": "/root/evmone-evm384-v2/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v2-f6m_mul_bench.bin 00 74229fc665e6c3f4401905c1a454ea57c8931739d05a074fd60400f19684d680a9e1305c25f13613dcc6cdd6e6e57d0800000000000000000000000000000000",
25+
"command": "/root/evmone-evm384-v2/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v2-f6m_mul_bench.hex 00 74229fc665e6c3f4401905c1a454ea57c8931739d05a074fd60400f19684d680a9e1305c25f13613dcc6cdd6e6e57d0800000000000000000000000000000000",
2626
"bench_name": "evm384-synth-loop-v2"
2727
},
2828
{
29-
"command": "/root/evmone-evm384-v2-unsafe/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/mem-check-disable-evm384_f6m_mul/build/v2-f6m_mul_bench.bin 00 74229fc665e6c3f4401905c1a454ea57c8931739d05a074fd60400f19684d680a9e1305c25f13613dcc6cdd6e6e57d0800000000000000000000000000000000",
29+
"command": "/root/evmone-evm384-v3/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v3-f6m_mul_bench.hex 00 74229fc665e6c3f4401905c1a454ea57c8931739d05a074fd60400f19684d680a9e1305c25f13613dcc6cdd6e6e57d0800000000000000000000000000000000",
3030
"bench_name": "evm384-synth-loop-v3"
31+
},
32+
{
33+
"command": "/root/evmone-evm384-v4/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v4-f6m_mul_bench.hex 00 74229fc665e6c3f4401905c1a454ea57c8931739d05a074fd60400f19684d680a9e1305c25f13613dcc6cdd6e6e57d0800000000000000000000000000000000",
34+
"bench_name": "evm384-synth-loop-v4"
35+
},
36+
{
37+
"command": "/root/evmone-evm384-v5/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v5-f6m_mul_bench.hex 00 3eb4cfbedd75a21a29701b4f4672232c52318353acdeef6d435d19a2681e023d153b8d400893da3b1525258aa820610e00000000000000000000000000000000",
38+
"bench_name": "evm384-synth-loop-v5"
39+
},
40+
{
41+
"command": "/root/evmone-evm384-v6/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v6-f6m_mul_bench.hex 00 ff",
42+
"bench_name": "evm384-synth-loop-v6"
43+
},
44+
{
45+
"command": "/root/evmone-evm384-v4/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v4-huff-f6m_mul_bench.hex 00 ff",
46+
"bench_name": "evm384-synth-loop-v4-huff"
47+
},
48+
{
49+
"command": "/root/evmone-evm384-v7/build/bin/evmone-bench --benchmark_format=json --benchmark_color=false --benchmark_min_time=5 /root/evm384_f6m_mul/build/v7-f6m_mul_bench.hex \"\" \"\"",
50+
"bench_name": "evm384-synth-loop-v7-huff"
3151
}
3252
]
3353

evm/scripts/run_bench.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ docker run --env PYTHONIOENCODING=UTF-8 -v $(pwd)/evmraceresults:/evmraceresults
1515
docker run --env PYTHONIOENCODING=UTF-8 -v $(pwd)/evmraceresults:/evmraceresults -v $(pwd)/scripts:/scripts -v $(pwd)/input_data:/input_data -it ewasm/cita-vm-bench:1 /usr/bin/python3 /scripts/benchevm.py cita-vm
1616

1717
# Run evmone384 benchmarks
18-
docker run --env PYTHONIOENCODING=UTF-8 -v $(pwd)/evmraceresults:/evmraceresults -v $(pwd)/scripts:/scripts -it ewasm/evmone-evm384-bench:1 /usr/bin/python3 /scripts/bench_evm384.py
18+
docker run --env PYTHONIOENCODING=UTF-8 -v $(pwd)/evmraceresults:/evmraceresults -v $(pwd)/scripts:/scripts -it ewasm/evmone-evm384-bench:2 /usr/bin/python3 /scripts/bench_evm384.py
1919

2020
# Merge benchmarks
2121
# TODO: just use python for merging? the docker image is only used to run python.
2222
docker run --env PYTHONIOENCODING=UTF-8 -v $(pwd)/../benchmark_results_data:/benchmark_results_data -v $(pwd)/evmraceresults:/evmraceresults -v $(pwd)/scripts:/scripts -it ewasm/cita-vm-bench:1 /usr/bin/python3 /scripts/merge.py
23-
-6.09 KB
Loading
-3.33 KB
Loading
-4.17 KB
Loading
-4.33 KB
Loading
111 Bytes
Loading

0 commit comments

Comments
 (0)