/
benchmarks_test_code.go
38 lines (33 loc) · 3.89 KB
/
benchmarks_test_code.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2018 The klaytn Authors
// This file is part of the klaytn library.
//
// The klaytn library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// The klaytn library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with the klaytn library. If not, see <http://www.gnu.org/licenses/>.
package benchmarks
// Code for test and benchmark
var (
mload100000 string = "60ca60205260005b612710811015630000004557602051506020515060205150602051506020515060205150602051506020515060205150602051506001016300000007565b00"
mstore100000 string = "60ca60205260005b612710811015630000004f5760fe60205260fe60205260fe60205260fe60205260fe60205260fe60205260fe60205260fe60205260fe60205260fe6020526001016300000007565b00"
sload100000 string = "60ca60205560005b612710811015630000004557602054506020545060205450602054506020545060205450602054506020545060205450602054506001016300000007565b00"
// sstore
sstoreNonZero2NonZero100000 string = "60005b612710811015630000004a5760fe60205560fe60205560fe60205560fe60205560fe60205560fe60205560fe60205560fe60205560fe60205560fe6020556001016300000002565b00"
sstoreZero2Zero100000 string = "60005b612710811015630000004a5760006020556000602055600060205560006020556000602055600060205560006020556000602055600060205560006020556001016300000002565b00"
sstoreMixed100000 string = "60005b612710811015630000004a5760fe60205560fe60205560fe60205560006020556000602055600060205560fe60205560fe602055600060205560006020556001016300000002565b00"
add100000 string = "60ca60205260005b612710811015630000003e576000600101600101600101600101600101600101600101600101600101600101506001016300000007565b00"
push1mul1byte100000 string = "60005b61271081101563000000545760ca60fe025060ca60fe025060ca60fe025060ca60fe025060ca60fe025060ca60fe025060ca60fe025060ca60fe025060ca60fe025060ca60fe02506001016300000002565b00"
push5mul1byte100000 string = "60005b61271081101563000000a4576400000000ca6400000000fe02506400000000ca6400000000fe02506400000000ca6400000000fe02506400000000ca6400000000fe02506400000000ca6400000000fe02506400000000ca6400000000fe02506400000000ca6400000000fe02506400000000ca6400000000fe02506400000000ca6400000000fe02506400000000ca6400000000fe02506001016300000002565b00"
push5mul5bytes100000 string = "60005b61271081101563000000a45764cafebabe0064caffe00000025064cafebabe0064caffe00000025064cafebabe0064caffe00000025064cafebabe0064caffe00000025064cafebabe0064caffe00000025064cafebabe0064caffe00000025064cafebabe0064caffe00000025064cafebabe0064caffe00000025064cafebabe0064caffe00000025064cafebabe0064caffe0000002506001016300000002565b00"
push1div1byte100000 string = "60005b61271081101563000000545760ca60fe045060ca60fe045060ca60fe045060ca60fe045060ca60fe045060ca60fe045060ca60fe045060ca60fe045060ca60fe045060ca60fe04506001016300000002565b00"
push5div1byte100000 string = "60005b61271081101563000000a4576400000000ca6400000000fe04506400000000ca6400000000fe04506400000000ca6400000000fe04506400000000ca6400000000fe04506400000000ca6400000000fe04506400000000ca6400000000fe04506400000000ca6400000000fe04506400000000ca6400000000fe04506400000000ca6400000000fe04506400000000ca6400000000fe04506001016300000002565b00"
push5div5bytes100000 string = "60005b61271081101563000000a45764cafebabe0064caffe00000045064cafebabe0064caffe00000045064cafebabe0064caffe00000045064cafebabe0064caffe00000045064cafebabe0064caffe00000045064cafebabe0064caffe00000045064cafebabe0064caffe00000045064cafebabe0064caffe00000045064cafebabe0064caffe00000045064cafebabe0064caffe0000004506001016300000002565b00"
)