Skip to content

Commit

Permalink
Update gas costs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekpyron committed Mar 11, 2021
1 parent 6599f61 commit c10c213
Show file tree
Hide file tree
Showing 116 changed files with 160 additions and 160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb
// gas irOptimized: 194189
// gas irOptimized: 194175
// gas legacy: 196426
// gas legacyOptimized: 193424
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ contract C {
// compileViaYul: also
// ----
// test_bytes() ->
// gas irOptimized: 516922
// gas irOptimized: 516885
// gas legacy: 466763
// gas legacyOptimized: 374537
// test_uint256() ->
// gas irOptimized: 712790
// gas irOptimized: 712752
// gas legacy: 634592
// gas legacyOptimized: 499481
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ contract C {
// ----
// library: L
// f() -> 8, 7, 1, 2, 7, 12
// gas irOptimized: 172153
// gas irOptimized: 172138
// gas legacy: 164775
// gas legacyOptimized: 162697
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ contract C {
// compileViaYul: also
// ----
// test_bytes() ->
// gas irOptimized: 516922
// gas irOptimized: 516885
// gas legacy: 466763
// gas legacyOptimized: 374537
// test_uint256() ->
// gas irOptimized: 712790
// gas irOptimized: 712752
// gas legacy: 634592
// gas legacyOptimized: 499481
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ contract C {
// f2() -> 0x20, 0xa0, 0x1, 0x60, 0x2, 0x3, "abc"
// f3() -> 0x20, 0xa0, 0x1, 0x60, 0x2, 0x3, "abc"
// f4() -> 0x20, 0x160, 0x1, 0x80, 0xc0, 0x2, 0x3, "abc", 0x7, 0x40, 0x2, 0x2, 0x3
// gas irOptimized: 110858
// gas irOptimized: 110846
// gas legacy: 111328
// gas legacyOptimized: 109206
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ contract C is B {
// compileViaYul: also
// ----
// test() -> 77
// gas irOptimized: 139834
// gas irOptimized: 138629
// gas legacy: 156573
// gas legacyOptimized: 112983
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ contract C {
// f(uint256[][1]): 32, 32, 0 -> true
// f(uint256[][1]): 32, 32, 1, 42 -> true
// f(uint256[][1]): 32, 32, 8, 421, 422, 423, 424, 425, 426, 427, 428 -> true
// gas irOptimized: 227663
// gas irOptimized: 227659
// gas legacy: 144300
// gas legacyOptimized: 124199
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ contract C {
// compileViaYul: also
// ----
// h(uint256[2][]): 0x20, 3, 123, 124, 223, 224, 323, 324 -> 32, 256, 0x20, 3, 123, 124, 223, 224, 323, 324
// gas irOptimized: 172714
// gas irOptimized: 172703
// gas legacy: 175929
// gas legacyOptimized: 172506
// i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224
// gas irOptimized: 107681
// gas irOptimized: 107673
// gas legacy: 109868
// gas legacyOptimized: 107388
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ contract C {
// compileViaYul: also
// ----
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
// gas irOptimized: 130305
// gas irOptimized: 130294
// gas legacy: 131690
// gas legacyOptimized: 130574
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ contract Test {
// compileViaYul: also
// ----
// set(uint24[3][]): 0x20, 0x06, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12 -> 0x06
// gas irOptimized: 200205
// gas irOptimized: 200196
// gas legacy: 278685
// gas legacyOptimized: 273734
// data(uint256,uint256): 0x02, 0x02 -> 0x09
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ contract c {
// gas legacyOptimized: 109691
// storage: nonempty
// test_long() -> 67
// gas irOptimized: 134832
// gas irOptimized: 134796
// gas legacy: 213590
// gas legacyOptimized: 211011
// storage: nonempty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0
// gas irOptimized: 312920
// gas irOptimized: 312879
// gas legacy: 483915
// gas legacyOptimized: 478508
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ contract c {
// ----
// getLength() -> 0
// set(): 1, 2 -> true
// gas irOptimized: 103213
// gas irOptimized: 103210
// gas legacy: 103126
// gas legacyOptimized: 102966
// getLength() -> 68
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract c {
// compileViaYul: also
// ----
// store(uint256[9],uint8[3][]): 21, 22, 23, 24, 25, 26, 27, 28, 29, 0x140, 4, 1, 2, 3, 11, 12, 13, 21, 22, 23, 31, 32, 33 -> 32
// gas irOptimized: 629040
// gas irOptimized: 629015
// gas legacy: 817315
// gas legacyOptimized: 816813
// retrieve() -> 9, 28, 9, 28, 4, 3, 32
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> true
// gas irOptimized: 112029
// gas irOptimized: 112006
// gas legacy: 107335
// gas legacyOptimized: 105857
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> true
// gas irOptimized: 253583
// gas irOptimized: 253496
// gas legacy: 239061
// gas legacyOptimized: 235988
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0
// gas irOptimized: 150551
// gas irOptimized: 150522
// gas legacy: 138913
// gas legacyOptimized: 137448
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0
// gas irOptimized: 112032
// gas irOptimized: 112013
// gas legacy: 107306
// gas legacyOptimized: 105861
// g() -> 0
// h() -> 0
// gas irOptimized: 112057
// gas irOptimized: 112071
// gas legacy: 107328
// gas legacyOptimized: 105903
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000
// gas irOptimized: 247582
// gas irOptimized: 247545
// gas legacy: 276683
// gas legacyOptimized: 275534
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x02000202
// gas irOptimized: 2481131
// gas irOptimized: 2480997
// gas legacy: 2288641
// gas legacyOptimized: 2258654
// storage: empty
// clear() -> 0, 0
// gas irOptimized: 1856788
// gas irOptimized: 1856749
// gas legacy: 1727169
// gas legacyOptimized: 1698931
// storage: empty
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ contract c {
// compileViaYul: also
// ----
// test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10
// gas irOptimized: 611500
// gas irOptimized: 611470
// gas legacy: 604268
// gas legacyOptimized: 603690
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 5, 4
// gas irOptimized: 235646
// gas irOptimized: 235618
// gas legacy: 237001
// gas legacyOptimized: 235316
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 3, 4
// gas irOptimized: 195485
// gas irOptimized: 195483
// gas legacy: 208853
// gas legacyOptimized: 200341
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 5, 4
// gas irOptimized: 276032
// gas irOptimized: 276002
// gas legacy: 264734
// gas legacyOptimized: 263160
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ contract c {
// compileViaYul: also
// ----
// test() -> 9, 4
// gas irOptimized: 100285
// gas irOptimized: 100281
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract c {
// compileViaYul: also
// ----
// test() -> 4, 5
// gas irOptimized: 282888
// gas irOptimized: 282788
// gas legacy: 255936
// gas legacyOptimized: 254359
// storage: empty
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0x20, 2, 0x40, 0xa0, 2, 0, 1, 2, 2, 3
// gas irOptimized: 170704
// gas irOptimized: 170678
// gas legacy: 163978
// gas legacyOptimized: 158152
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 223456
// gas irOptimized: 223458
// gas legacy: 328106
// gas legacyOptimized: 308072
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x04000000000000000000000000000000000000000000000000, 0x0, 0x0
// gas irOptimized: 109240
// gas irOptimized: 109243
// gas legacy: 116651
// gas legacyOptimized: 107000
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0
// gas irOptimized: 290262
// gas irOptimized: 290255
// gas legacy: 309353
// gas legacyOptimized: 307699
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00
// gas irOptimized: 269636
// gas irOptimized: 269614
// gas legacy: 269681
// gas legacyOptimized: 268753
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ contract c {
// compileViaYul: true
// ----
// test1(uint256[][]): 0x20, 2, 0x40, 0x40, 2, 23, 42 -> 2, 65
// gas irOptimized: 179776
// gas irOptimized: 179745
// test2(uint256[][2]): 0x20, 0x40, 0x40, 2, 23, 42 -> 2, 65
// gas irOptimized: 155253
// gas irOptimized: 155229
// test3(uint256[2][]): 0x20, 2, 23, 42, 23, 42 -> 2, 65
// gas irOptimized: 133521
// gas irOptimized: 133500
// test4(uint256[2][2]): 23, 42, 23, 42 -> 65
// gas irOptimized: 107882
// gas irOptimized: 107871
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ contract Test {
// compileViaYul: also
// ----
// test() -> 24
// gas irOptimized: 217774
// gas irOptimized: 217752
// gas legacy: 215533
// gas legacyOptimized: 214947
// test1() -> 3
// test2() -> 6
// test3() -> 24
// gas irOptimized: 124684
// gas irOptimized: 124666
// gas legacy: 122795
// gas legacyOptimized: 121883
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ contract C {
// compileViaYul: true
// ----
// f((uint128,uint64,uint128)[]): 0x20, 3, 0, 0, 12, 0, 11, 0, 10, 0, 0 -> 10, 11, 12
// gas irOptimized: 123327
// gas irOptimized: 123315
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ contract C {
// compileViaYul: true
// ----
// f() -> 10, 11, 12
// gas irOptimized: 122695
// gas irOptimized: 122681
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ contract C {
// compileViaYul: true
// ----
// f((uint256[])[]): 0x20, 3, 0x60, 0x60, 0x60, 0x20, 3, 1, 2, 3 -> 3, 1
// gas irOptimized: 354585
// gas irOptimized: 354463
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ contract C {
// compileViaYul: true
// ----
// f() -> 3, 3, 3, 1
// gas irOptimized: 189829
// gas irOptimized: 189779
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 1, 2, 3
// gas irOptimized: 135092
// gas irOptimized: 135091
// gas legacy: 134419
// gas legacyOptimized: 125440
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contract Test {
// compileViaYul: also
// ----
// set(uint24[]): 0x20, 18, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 -> 18
// gas irOptimized: 121147
// gas irOptimized: 121144
// gas legacy: 125815
// gas legacyOptimized: 123617
// data(uint256): 7 -> 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ contract c {
// compileViaYul: also
// ----
// set(uint256): 1, 2 -> true
// gas irOptimized: 103365
// gas irOptimized: 103362
// gas legacy: 103491
// gas legacyOptimized: 103135
// set(uint256): 2, 2, 3, 4, 5 -> true
// gas irOptimized: 164052
// gas irOptimized: 164049
// gas legacy: 164121
// gas legacyOptimized: 163765
// storage: nonempty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ contract c {
// ----
// f(uint256): 0 -> 0x20, 0x00
// f(uint256): 31 -> 0x20, 0x1f, 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e00
// gas irOptimized: 222684
// gas irOptimized: 222675
// gas legacy: 255464
// gas legacyOptimized: 250931
// f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671
// gas irOptimized: 233443
// gas irOptimized: 233299
// gas legacy: 267931
// gas legacyOptimized: 263260
// f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 242278
// gas irOptimized: 242137
// gas legacy: 277538
// gas legacyOptimized: 272747
// f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992
// gas irOptimized: 356428
// gas irOptimized: 356167
// gas legacy: 423428
// gas legacyOptimized: 414737
// f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000
// gas legacy: 106445
// gas legacyOptimized: 104350
// f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968
// gas irOptimized: 817738
// gas irOptimized: 817205
// gas legacy: 954517
// gas legacyOptimized: 937258

0 comments on commit c10c213

Please sign in to comment.