Isoltest gas update after Berlin gas cost changes

This commit is contained in:
hrkrshnn 2021-05-18 15:39:08 +02:00
parent 180e00f56d
commit 4d6c951396
128 changed files with 480 additions and 466 deletions

View File

@ -24,6 +24,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb
// gas irOptimized: 193521
// gas legacy: 196426
// gas legacyOptimized: 193405
// gas irOptimized: 203921
// gas legacy: 206126
// gas legacyOptimized: 203105

View File

@ -60,10 +60,10 @@ contract C {
// compileViaYul: also
// ----
// test_bytes() ->
// gas irOptimized: 508617
// gas legacy: 466763
// gas legacyOptimized: 374591
// gas irOptimized: 465417
// gas legacy: 423563
// gas legacyOptimized: 331391
// test_uint256() ->
// gas irOptimized: 704259
// gas legacy: 634592
// gas legacyOptimized: 499337
// gas irOptimized: 661059
// gas legacy: 591392
// gas legacyOptimized: 456137

View File

@ -26,6 +26,6 @@ contract C {
// ----
// library: L
// f() -> 8, 7, 1, 2, 7, 12
// gas irOptimized: 164899
// gas legacy: 164775
// gas legacyOptimized: 162697
// gas irOptimized: 168199
// gas legacy: 169475
// gas legacyOptimized: 167397

View File

@ -61,10 +61,10 @@ contract C {
// compileViaYul: also
// ----
// test_bytes() ->
// gas irOptimized: 508617
// gas legacy: 466763
// gas legacyOptimized: 374591
// gas irOptimized: 465417
// gas legacy: 423563
// gas legacyOptimized: 331391
// test_uint256() ->
// gas irOptimized: 704259
// gas legacy: 634592
// gas legacyOptimized: 499337
// gas irOptimized: 661059
// gas legacy: 591392
// gas legacyOptimized: 456137

View File

@ -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: 110283
// gas legacy: 111328
// gas legacyOptimized: 109206
// gas irOptimized: 113683
// gas legacy: 114728
// gas legacyOptimized: 112606

View File

@ -32,6 +32,6 @@ contract C is B {
// compileViaYul: also
// ----
// test() -> 77
// gas irOptimized: 133635
// gas legacy: 156449
// gas legacyOptimized: 112943
// gas irOptimized: 132435
// gas legacy: 155249
// gas legacyOptimized: 111743

View File

@ -40,5 +40,5 @@ contract C is B {
// compileViaYul: also
// ----
// test() -> 5, 10
// gas irOptimized: 92624
// gas legacy: 100237
// gas irOptimized: 91524
// gas legacy: 99137

View File

@ -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: 227075
// gas legacy: 144300
// gas legacyOptimized: 124188
// gas irOptimized: 224675
// gas legacy: 141900
// gas legacyOptimized: 121788

View File

@ -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: 172410
// gas legacy: 175929
// gas legacyOptimized: 172504
// gas irOptimized: 181410
// gas legacy: 184929
// gas legacyOptimized: 181504
// i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224
// gas irOptimized: 107381
// gas legacy: 109868
// gas legacyOptimized: 107388
// gas irOptimized: 112981
// gas legacy: 115468
// gas legacyOptimized: 112988

View File

@ -11,6 +11,6 @@ contract C {
// compileViaYul: also
// ----
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
// gas irOptimized: 130031
// gas legacy: 131690
// gas legacyOptimized: 130582
// gas irOptimized: 136231
// gas legacy: 137190
// gas legacyOptimized: 136082

View File

@ -18,4 +18,4 @@ contract D {
// ----
// f() -> FAILURE, hex"4e487b71", 0x11
// g(), 100 wei -> 1
// gas legacy: 101718
// gas legacy: 101918

View File

@ -14,9 +14,9 @@ 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: 199693
// gas legacy: 278685
// gas legacyOptimized: 273594
// gas irOptimized: 191293
// gas legacy: 211485
// gas legacyOptimized: 206394
// data(uint256,uint256): 0x02, 0x02 -> 0x09
// data(uint256,uint256): 0x05, 0x01 -> 0x11
// data(uint256,uint256): 0x06, 0x00 -> FAILURE

View File

@ -43,15 +43,15 @@ contract c {
// ----
// storageEmpty -> 1
// test_short() -> 1780731860627700044960722568376587075150542249149356309979516913770823710
// gas legacy: 110938
// gas legacyOptimized: 109706
// gas legacy: 59838
// gas legacyOptimized: 58606
// storageEmpty -> 0
// test_long() -> 67
// gas irOptimized: 134320
// gas legacy: 213590
// gas legacyOptimized: 211044
// gas irOptimized: 91520
// gas legacy: 103590
// gas legacyOptimized: 101044
// storageEmpty -> 0
// test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020
// gas legacy: 176030
// gas legacyOptimized: 173504
// gas legacy: 61930
// gas legacyOptimized: 59404
// storageEmpty -> 0

View File

@ -19,6 +19,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0
// gas irOptimized: 309167
// gas legacy: 483915
// gas legacyOptimized: 478672
// gas irOptimized: 171767
// gas legacy: 189715
// gas legacyOptimized: 184472

View File

@ -15,7 +15,7 @@ contract c {
// ----
// getLength() -> 0
// set(): 1, 2 -> true
// gas irOptimized: 102970
// gas legacy: 103126
// gas legacyOptimized: 102967
// gas irOptimized: 110570
// gas legacy: 110726
// gas legacyOptimized: 110567
// getLength() -> 68

View File

@ -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: 612216
// gas legacy: 817315
// gas legacyOptimized: 816813
// gas irOptimized: 651816
// gas legacy: 694515
// gas legacyOptimized: 694013
// retrieve() -> 9, 28, 9, 28, 4, 3, 32

View File

@ -23,6 +23,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> true
// gas irOptimized: 107258
// gas legacy: 107335
// gas legacyOptimized: 105857
// gas irOptimized: 92958
// gas legacy: 93035
// gas legacyOptimized: 92257

View File

@ -48,6 +48,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> true
// gas irOptimized: 231941
// gas legacy: 239061
// gas legacyOptimized: 235988
// gas irOptimized: 154441
// gas legacy: 155961
// gas legacyOptimized: 153588

View File

@ -15,6 +15,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0
// gas irOptimized: 139105
// gas legacy: 138913
// gas legacyOptimized: 137448
// gas irOptimized: 135505
// gas legacy: 135313
// gas legacyOptimized: 134548

View File

@ -42,11 +42,11 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0
// gas irOptimized: 107266
// gas legacy: 107306
// gas legacyOptimized: 105861
// gas irOptimized: 92966
// gas legacy: 93006
// gas legacyOptimized: 92261
// g() -> 0
// h() -> 0
// gas irOptimized: 107312
// gas legacy: 107328
// gas legacyOptimized: 105903
// gas irOptimized: 93012
// gas legacy: 93028
// gas legacyOptimized: 92303

View File

@ -21,6 +21,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000
// gas irOptimized: 245944
// gas legacy: 276683
// gas legacyOptimized: 275534
// gas irOptimized: 214644
// gas legacy: 221883
// gas legacyOptimized: 220734

View File

@ -37,12 +37,12 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x02000202
// gas irOptimized: 2476392
// gas legacy: 2288641
// gas legacyOptimized: 2258654
// gas irOptimized: 4690992
// gas legacy: 4578341
// gas legacyOptimized: 4548354
// storageEmpty -> 1
// clear() -> 0, 0
// gas irOptimized: 1852821
// gas legacy: 1727169
// gas legacyOptimized: 1698931
// gas irOptimized: 4516821
// gas legacy: 4410769
// gas legacyOptimized: 4382531
// storageEmpty -> 1

View File

@ -15,6 +15,6 @@ contract c {
// compileViaYul: also
// ----
// test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10
// gas irOptimized: 610177
// gas legacy: 604268
// gas legacyOptimized: 603688
// gas irOptimized: 691977
// gas legacy: 686268
// gas legacyOptimized: 685688

View File

@ -19,6 +19,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 5, 4
// gas irOptimized: 234667
// gas legacy: 237001
// gas legacyOptimized: 235316
// gas irOptimized: 226467
// gas legacy: 233801
// gas legacyOptimized: 232816

View File

@ -20,10 +20,10 @@ contract c {
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// compileViaYul: also
// ----
// test() -> 3, 4
// gas irOptimized: 191158
// gas legacy: 208853
// gas legacyOptimized: 200341
// gas irOptimized: 191858
// gas legacy: 195353
// gas legacyOptimized: 192441

View File

@ -17,6 +17,9 @@ contract c {
// ----
// setData1(uint256,uint256,uint256): 10, 5, 4 ->
// copyStorageStorage() ->
// gas irOptimized: 111563
// gas legacy: 109278
// gas legacyOptimized: 109268
// getData2(uint256): 5 -> 10, 4
// setData1(uint256,uint256,uint256): 0, 0, 0 ->
// copyStorageStorage() ->

View File

@ -20,6 +20,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 5, 4
// gas irOptimized: 264686
// gas legacy: 264734
// gas legacyOptimized: 263160
// gas irOptimized: 272786
// gas legacy: 270834
// gas legacyOptimized: 269960

View File

@ -14,4 +14,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 9, 4
// gas irOptimized: 99075
// gas irOptimized: 123375
// gas legacy: 123579
// gas legacyOptimized: 123208

View File

@ -10,9 +10,9 @@ contract C {
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// compileViaYul: also
// ----
// test() -> left(0x01), left(0x02)
// gas legacy: 154001
// gas legacyOptimized: 152385
// gas legacy: 90001
// gas legacyOptimized: 89085

View File

@ -18,6 +18,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 8, 0
// gas irOptimized: 154656
// gas legacy: 153995
// gas legacyOptimized: 153403
// gas irOptimized: 236656
// gas legacy: 234695
// gas legacyOptimized: 234103

View File

@ -19,7 +19,7 @@ contract c {
// compileViaYul: also
// ----
// test() -> 4, 5
// gas irOptimized: 257752
// gas legacy: 255936
// gas legacyOptimized: 254359
// gas irOptimized: 240552
// gas legacy: 238736
// gas legacyOptimized: 237159
// storageEmpty -> 1

View File

@ -17,6 +17,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0x20, 2, 0x40, 0xa0, 2, 0, 1, 2, 2, 3
// gas irOptimized: 166791
// gas legacy: 163978
// gas legacyOptimized: 158155
// gas irOptimized: 161991
// gas legacy: 162278
// gas legacyOptimized: 159955

View File

@ -16,10 +16,10 @@ contract c {
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// compileViaYul: also
// ----
// test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 218618
// gas legacy: 328106
// gas legacyOptimized: 307826
// gas irOptimized: 140618
// gas legacy: 186406
// gas legacyOptimized: 166126

View File

@ -18,10 +18,10 @@ contract c {
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// compileViaYul: also
// ----
// test() -> 0x04000000000000000000000000000000000000000000000000, 0x0, 0x0
// gas irOptimized: 107728
// gas legacy: 116651
// gas legacyOptimized: 107000
// gas irOptimized: 95528
// gas legacy: 97451
// gas legacyOptimized: 94200

View File

@ -18,10 +18,10 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// compileViaYul: also
// ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0
// gas irOptimized: 288892
// gas legacy: 309353
// gas legacyOptimized: 307699
// gas irOptimized: 296092
// gas legacy: 303653
// gas legacyOptimized: 301999

View File

@ -18,10 +18,10 @@ contract c {
}
// ====
// compileViaYul: also
// compileToEwasm: also
// compileViaYul: also
// ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00
// gas irOptimized: 263885
// gas legacy: 269681
// gas legacyOptimized: 268753
// gas irOptimized: 274785
// gas legacy: 276381
// gas legacyOptimized: 275453

View File

@ -38,10 +38,10 @@ contract c {
// compileViaYul: true
// ----
// test1(uint256[][]): 0x20, 2, 0x40, 0x40, 2, 23, 42 -> 2, 65
// gas irOptimized: 179148
// gas irOptimized: 182348
// test2(uint256[][2]): 0x20, 0x40, 0x40, 2, 23, 42 -> 2, 65
// gas irOptimized: 153938
// gas irOptimized: 158638
// test3(uint256[2][]): 0x20, 2, 23, 42, 23, 42 -> 2, 65
// gas irOptimized: 132378
// gas irOptimized: 135778
// test4(uint256[2][2]): 23, 42, 23, 42 -> 65
// gas irOptimized: 105395
// gas irOptimized: 111695

View File

@ -40,12 +40,12 @@ contract Test {
// compileViaYul: also
// ----
// test() -> 24
// gas irOptimized: 216291
// gas legacy: 215533
// gas legacyOptimized: 214947
// gas irOptimized: 227891
// gas legacy: 227133
// gas legacyOptimized: 226547
// test1() -> 3
// test2() -> 6
// test3() -> 24
// gas irOptimized: 122838
// gas legacy: 122795
// gas legacyOptimized: 121883
// gas irOptimized: 134338
// gas legacy: 134295
// gas legacyOptimized: 133383

View File

@ -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: 122861
// gas irOptimized: 121461

View File

@ -19,4 +19,4 @@ contract C {
// compileViaYul: true
// ----
// f() -> 10, 11, 12
// gas irOptimized: 121857
// gas irOptimized: 120457

View File

@ -23,4 +23,4 @@ contract C {
// compileViaYul: true
// ----
// f((uint256[])[]): 0x20, 3, 0x60, 0x60, 0x60, 0x20, 3, 1, 2, 3 -> 3, 1
// gas irOptimized: 352878
// gas irOptimized: 332878

View File

@ -26,4 +26,4 @@ contract C {
// compileViaYul: true
// ----
// f() -> 3, 3, 3, 1
// gas irOptimized: 187277
// gas irOptimized: 185077

View File

@ -15,6 +15,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 1, 2, 3
// gas irOptimized: 133471
// gas legacy: 134419
// gas legacyOptimized: 125440
// gas irOptimized: 133671
// gas legacy: 134619
// gas legacyOptimized: 131940

View File

@ -12,9 +12,9 @@ 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: 120859
// gas legacy: 125815
// gas legacyOptimized: 123614
// gas irOptimized: 101659
// gas legacy: 103815
// gas legacyOptimized: 101614
// data(uint256): 7 -> 8
// data(uint256): 15 -> 16
// data(uint256): 18 -> FAILURE

View File

@ -7,13 +7,13 @@ contract c {
// compileViaYul: also
// ----
// set(uint256): 1, 2 -> true
// gas irOptimized: 103224
// gas legacy: 103491
// gas legacyOptimized: 103136
// gas irOptimized: 110824
// gas legacy: 111091
// gas legacyOptimized: 110736
// set(uint256): 2, 2, 3, 4, 5 -> true
// gas irOptimized: 163911
// gas legacy: 164121
// gas legacyOptimized: 163766
// gas irOptimized: 177811
// gas legacy: 178021
// gas legacyOptimized: 177666
// storageEmpty -> 0
// copy(uint256,uint256): 1, 2 -> true
// storageEmpty -> 0

View File

@ -19,25 +19,25 @@ contract c {
// ----
// f(uint256): 0 -> 0x20, 0x00
// f(uint256): 31 -> 0x20, 0x1f, 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e00
// gas irOptimized: 221696
// gas legacy: 255464
// gas legacyOptimized: 250998
// gas irOptimized: 135396
// gas legacy: 124364
// gas legacyOptimized: 119898
// f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671
// gas irOptimized: 229291
// gas legacy: 267931
// gas legacyOptimized: 263329
// gas irOptimized: 142291
// gas legacy: 135431
// gas legacyOptimized: 130829
// f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 238003
// gas legacy: 277538
// gas legacyOptimized: 272818
// gas irOptimized: 149603
// gas legacy: 142238
// gas legacyOptimized: 137518
// f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992
// gas irOptimized: 348673
// gas legacy: 423428
// gas legacyOptimized: 414868
// gas irOptimized: 174873
// gas legacy: 160728
// gas legacyOptimized: 152168
// f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000
// gas legacy: 106445
// gas legacyOptimized: 104379
// gas legacy: 59345
// gas legacyOptimized: 57279
// f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968
// gas irOptimized: 802315
// gas legacy: 954517
// gas legacyOptimized: 937521
// gas irOptimized: 452115
// gas legacy: 423017
// gas legacyOptimized: 406021

View File

@ -11,6 +11,6 @@ contract C {
// compileViaYul: also
// ----
// f(uint256[]): 0x20, 0x03, 0x1, 0x2, 0x3 -> 0x1
// gas irOptimized: 105184
// gas legacy: 105365
// gas legacyOptimized: 105147
// gas irOptimized: 111384
// gas legacy: 111565
// gas legacyOptimized: 111347

View File

@ -37,10 +37,12 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000
// gas irOptimized: 172274
// gas legacy: 174794
// gas legacyOptimized: 174188
// gas irOptimized: 180274
// gas legacy: 180694
// gas legacyOptimized: 180088
// g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000
// gas legacy: 100595
// gas irOptimized: 107618
// gas legacy: 107895
// gas legacyOptimized: 107254
// h() -> 0x40, 0x60, 0x00, 0x00
// storageEmpty -> 1

View File

@ -48,6 +48,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0xff
// gas irOptimized: 132909
// gas legacy: 137645
// gas legacyOptimized: 134376
// gas irOptimized: 122009
// gas legacy: 126745
// gas legacyOptimized: 123476

View File

@ -18,6 +18,6 @@ contract C {
// compileViaYul: also
// ----
// test() -> 7
// gas irOptimized: 133946
// gas legacy: 211296
// gas legacyOptimized: 211087
// gas irOptimized: 127846
// gas legacy: 205196
// gas legacyOptimized: 204987

View File

@ -22,6 +22,6 @@ contract C {
// compileViaYul: also
// ----
// one() -> 3
// gas legacy: 154760
// gas legacyOptimized: 154597
// gas legacy: 140260
// gas legacyOptimized: 140097
// two() -> FAILURE, hex"4e487b71", 0x51

View File

@ -9,9 +9,9 @@ contract c {
// compileViaYul: also
// ----
// set(): 1, 2, 3, 4, 5 -> true
// gas irOptimized: 163657
// gas legacy: 163756
// gas legacyOptimized: 163596
// gas irOptimized: 177557
// gas legacy: 177656
// gas legacyOptimized: 177496
// storageEmpty -> 0
// reset() -> true
// storageEmpty -> 1

View File

@ -20,6 +20,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 3
// gas irOptimized: 173108
// gas legacy: 179707
// gas legacyOptimized: 178763
// gas irOptimized: 134208
// gas legacy: 130307
// gas legacyOptimized: 129363

View File

@ -19,6 +19,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 1, 2, 3, 4, 5, 6, 7
// gas irOptimized: 212108
// gas legacy: 223725
// gas legacyOptimized: 222886
// gas irOptimized: 209108
// gas legacy: 212325
// gas legacyOptimized: 211486

View File

@ -13,6 +13,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0x20, 0x02, 0x40, 0x80, 3, 0x6162630000000000000000000000000000000000000000000000000000000000, 0x99, 44048183304486788312148433451363384677562265908331949128489393215789685032262, 32241931068525137014058842823026578386641954854143559838526554899205067598957, 49951309422467613961193228765530489307475214998374779756599339590522149884499, 0x54555658595a6162636465666768696a6b6c6d6e6f707172737475767778797a, 0x4142434445464748494a4b4c4d4e4f5051525354555658595a00000000000000
// gas irOptimized: 197063
// gas legacy: 199159
// gas legacyOptimized: 198137
// gas irOptimized: 203063
// gas legacy: 204459
// gas legacyOptimized: 203437

View File

@ -20,6 +20,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 1, 2, 3, 4, 5, 6, 7
// gas irOptimized: 212108
// gas legacy: 223730
// gas legacyOptimized: 222891
// gas irOptimized: 209108
// gas legacy: 212330
// gas legacyOptimized: 211491

View File

@ -26,6 +26,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 11, 0x0c, 1, 0x15, 22, 4
// gas irOptimized: 288695
// gas legacy: 296916
// gas legacyOptimized: 283163
// gas irOptimized: 293695
// gas legacy: 293516
// gas legacyOptimized: 290263

View File

@ -15,6 +15,6 @@ contract C {
// compileViaYul: also
// ----
// f() -> 2, 3, 4
// gas irOptimized: 208083
// gas legacy: 241549
// gas legacyOptimized: 236002
// gas irOptimized: 115383
// gas legacy: 126449
// gas legacyOptimized: 120902

View File

@ -18,6 +18,6 @@ contract c {
// compileViaYul: also
// ----
// test1() -> true
// gas irOptimized: 527479
// gas legacy: 613377
// gas legacyOptimized: 606411
// gas irOptimized: 244579
// gas legacy: 255577
// gas legacyOptimized: 248611

View File

@ -16,4 +16,4 @@ contract C {
// compileViaYul: also
// ----
// f() -> 0, 0, 0
// gas irOptimized: 101279
// gas irOptimized: 91179

View File

@ -16,9 +16,9 @@ contract c {
// ----
// storageEmpty -> 1
// fill() ->
// gas irOptimized: 535098
// gas legacy: 504373
// gas legacyOptimized: 499648
// gas irOptimized: 520998
// gas legacy: 521773
// gas legacyOptimized: 517048
// storageEmpty -> 0
// halfClear() ->
// storageEmpty -> 0

View File

@ -44,9 +44,9 @@ contract c {
// ----
// getLengths() -> 0, 0
// setLengths(uint256,uint256): 48, 49 ->
// gas irOptimized: 273726
// gas legacy: 308271
// gas legacyOptimized: 300117
// gas irOptimized: 108326
// gas legacy: 108571
// gas legacyOptimized: 100417
// getLengths() -> 48, 49
// setIDStatic(uint256): 11 ->
// getID(uint256): 2 -> 11

View File

@ -18,9 +18,9 @@ contract c {
// ----
// storageEmpty -> 1
// fill() -> 8
// gas irOptimized: 168980
// gas legacy: 165456
// gas legacyOptimized: 164387
// gas irOptimized: 124480
// gas legacy: 121756
// gas legacyOptimized: 120687
// storageEmpty -> 0
// clear() ->
// storageEmpty -> 1

View File

@ -13,9 +13,9 @@ contract c {
// ----
// storageEmpty -> 1
// fill() ->
// gas irOptimized: 423878
// gas legacy: 429460
// gas legacyOptimized: 425520
// gas irOptimized: 465878
// gas legacy: 471460
// gas legacyOptimized: 467520
// storageEmpty -> 0
// clear() ->
// storageEmpty -> 1

View File

@ -21,6 +21,6 @@ contract B {
// compileViaYul: also
// ----
// f() -> 2, 3, 4, 5, 6, 1000, 1001, 1002, 1003, 1004
// gas irOptimized: 135883
// gas legacy: 266210
// gas legacyOptimized: 135699
// gas irOptimized: 133483
// gas legacy: 263810
// gas legacyOptimized: 133299

View File

@ -45,6 +45,6 @@ contract C {
// compileViaYul: also
// ----
// test() -> 5, 6, 7
// gas irOptimized: 345955
// gas legacy: 508437
// gas legacyOptimized: 309013
// gas irOptimized: 337455
// gas legacy: 499937
// gas legacyOptimized: 300513

View File

@ -25,7 +25,7 @@ contract c {
// compileViaYul: also
// ----
// test() -> 1, 2, 3
// gas irOptimized: 2455497
// gas legacy: 2416722
// gas legacyOptimized: 2405396
// gas irOptimized: 2280897
// gas legacy: 2273722
// gas legacyOptimized: 2262396
// storageEmpty -> 1

View File

@ -20,7 +20,7 @@ contract c {
// compileViaYul: also
// ----
// test() -> 38, 28, 18
// gas irOptimized: 527367
// gas legacy: 454080
// gas legacyOptimized: 443170
// gas irOptimized: 195867
// gas legacy: 189780
// gas legacyOptimized: 178870
// storageEmpty -> 1

View File

@ -20,7 +20,7 @@ contract c {
// compileViaYul: also
// ----
// test() -> 20, 10
// gas irOptimized: 367121
// gas legacy: 320859
// gas legacyOptimized: 314681
// gas irOptimized: 163721
// gas legacy: 159459
// gas legacyOptimized: 153281
// storageEmpty -> 1

View File

@ -12,6 +12,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x20, 29, 0x0303030303030303030303030303030303030303030303030303030303000000
// gas irOptimized: 162426
// gas legacy: 245809
// gas legacyOptimized: 242636
// gas irOptimized: 112526
// gas legacy: 127309
// gas legacyOptimized: 124136

View File

@ -18,7 +18,7 @@ contract c {
// compileViaYul: also
// ----
// test() -> true
// gas irOptimized: 445718
// gas legacy: 552064
// gas legacyOptimized: 533164
// gas irOptimized: 219418
// gas legacy: 229864
// gas legacyOptimized: 210964
// storageEmpty -> 1

View File

@ -17,7 +17,7 @@ contract c {
// compileViaYul: also
// ----
// test() ->
// gas irOptimized: 291114
// gas legacy: 372763
// gas legacyOptimized: 366846
// gas irOptimized: 150914
// gas legacy: 165363
// gas legacyOptimized: 159446
// storageEmpty -> 1

View File

@ -12,6 +12,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0x20, 33, 0x303030303030303030303030303030303030303030303030303030303030303, 0x0300000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 159714
// gas legacy: 243287
// gas legacyOptimized: 240361
// gas irOptimized: 110514
// gas legacy: 126187
// gas legacyOptimized: 123261

View File

@ -18,6 +18,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 5, 4, 3, 3
// gas irOptimized: 110669
// gas legacy: 111938
// gas legacyOptimized: 110528
// gas irOptimized: 111269
// gas legacy: 111838
// gas legacyOptimized: 111128

View File

@ -14,6 +14,6 @@ contract C {
// compileViaYul: also
// ----
// f(uint120[]): 0x20, 3, 1, 2, 3 -> 1
// gas irOptimized: 116184
// gas legacy: 116886
// gas legacyOptimized: 116699
// gas irOptimized: 113684
// gas legacy: 113686
// gas legacyOptimized: 113499

View File

@ -16,6 +16,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 1, 2, 3, 4
// gas irOptimized: 111583
// gas legacy: 107098
// gas legacyOptimized: 106362
// gas irOptimized: 93083
// gas legacy: 92798
// gas legacyOptimized: 92062

View File

@ -22,6 +22,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 2, 3, 4, 5
// gas irOptimized: 146270
// gas legacy: 190684
// gas legacyOptimized: 188256
// gas irOptimized: 138070
// gas legacy: 147484
// gas legacyOptimized: 146456

View File

@ -18,6 +18,6 @@ contract c {
// compileViaYul: also
// ----
// test((uint16,uint16,uint16[3],uint16[])): 0x20, 2, 3, 0, 0, 4, 0xC0, 4, 0, 0, 5, 0, 0 -> 2, 3, 4, 5
// gas irOptimized: 147998
// gas legacy: 152522
// gas legacyOptimized: 146671
// gas irOptimized: 139798
// gas legacy: 144322
// gas legacyOptimized: 139171

View File

@ -17,6 +17,6 @@ contract c {
// compileViaYul: also
// ----
// test() -> 0
// gas irOptimized: 394087
// gas legacy: 565428
// gas legacyOptimized: 552524
// gas irOptimized: 195787
// gas legacy: 218028
// gas legacyOptimized: 205124

View File

@ -15,6 +15,6 @@ contract C {
// compileViaYul: also
// ----
// f() ->
// gas irOptimized: 178367
// gas legacy: 180320
// gas legacyOptimized: 180103
// gas irOptimized: 180067
// gas legacy: 180620
// gas legacyOptimized: 180403

View File

@ -29,16 +29,16 @@ contract C {
// ----
// l() -> 0
// f(uint256,uint256): 42, 64 ->
// gas irOptimized: 202621
// gas legacy: 163034
// gas legacyOptimized: 157045
// gas irOptimized: 116221
// gas legacy: 108234
// gas legacyOptimized: 102245
// l() -> 1
// ll(uint256): 0 -> 43
// a(uint256,uint256): 0, 42 -> 64
// f(uint256,uint256): 84, 128 ->
// gas irOptimized: 298837
// gas legacy: 222080
// gas legacyOptimized: 210631
// gas irOptimized: 123537
// gas legacy: 107780
// gas legacyOptimized: 96331
// l() -> 2
// ll(uint256): 1 -> 85
// a(uint256,uint256): 0, 42 -> 64

View File

@ -23,9 +23,9 @@ contract C {
// ----
// l() -> 0
// g(uint256): 70 ->
// gas irOptimized: 428829
// gas legacy: 419791
// gas legacyOptimized: 415408
// gas irOptimized: 194029
// gas legacy: 184991
// gas legacyOptimized: 180608
// l() -> 70
// a(uint256): 69 -> left(69)
// f() ->

View File

@ -26,6 +26,6 @@ contract Main {
// compileViaYul: also
// ----
// f(uint256): 0x34 -> 0x46bddb1178e94d7f2892ff5f366840eb658911794f2c3a44c450aa2c505186c1
// gas irOptimized: 115543
// gas legacy: 127152
// gas legacyOptimized: 113679
// gas irOptimized: 115243
// gas legacy: 126852
// gas legacyOptimized: 114079

View File

@ -26,6 +26,6 @@ contract Creator {
// compileViaYul: also
// ----
// f(uint256,address[]): 7, 0x40, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 -> 7, 8
// gas irOptimized: 474718
// gas legacy: 578926
// gas legacyOptimized: 436724
// gas irOptimized: 486618
// gas legacy: 590826
// gas legacyOptimized: 448624

View File

@ -26,6 +26,6 @@ contract Creator {
// compileViaYul: also
// ----
// f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h"
// gas irOptimized: 330957
// gas legacy: 422873
// gas legacyOptimized: 292281
// gas irOptimized: 336157
// gas legacy: 427373
// gas legacyOptimized: 296781

View File

@ -19,4 +19,4 @@ contract C {
// compileViaYul: also
// ----
// f() -> 16
// gas legacy: 104744
// gas legacy: 103744

View File

@ -178,33 +178,33 @@ contract DepositContract is IDepositContract, ERC165 {
// compileViaYul: also
// ----
// constructor()
// gas irOptimized: 1826340
// gas legacy: 2558004
// gas legacyOptimized: 1798657
// gas irOptimized: 1805935
// gas legacy: 2580394
// gas legacyOptimized: 1803757
// supportsInterface(bytes4): 0x0 -> 0
// supportsInterface(bytes4): 0xffffffff00000000000000000000000000000000000000000000000000000000 -> false # defined to be false by ERC-165 #
// supportsInterface(bytes4): 0x01ffc9a700000000000000000000000000000000000000000000000000000000 -> true # ERC-165 id #
// supportsInterface(bytes4): 0x8564090700000000000000000000000000000000000000000000000000000000 -> true # the deposit interface id #
// get_deposit_root() -> 0xd70a234731285c6804c2a4f56711ddb8c82c99740f207854891028af34e27e5e
// gas irOptimized: 104382
// gas legacy: 128065
// gas legacyOptimized: 100398
// gas irOptimized: 127482
// gas legacy: 150465
// gas legacyOptimized: 122798
// get_deposit_count() -> 0x20, 8, 0 # TODO: check balance and logs after each deposit #
// deposit(bytes,bytes,bytes,bytes32), 32 ether: 0 -> FAILURE # Empty input #
// get_deposit_root() -> 0xd70a234731285c6804c2a4f56711ddb8c82c99740f207854891028af34e27e5e
// gas irOptimized: 104382
// gas legacy: 128065
// gas legacyOptimized: 100398
// gas irOptimized: 127482
// gas legacy: 150465
// gas legacyOptimized: 122798
// get_deposit_count() -> 0x20, 8, 0
// deposit(bytes,bytes,bytes,bytes32), 1 ether: 0x80, 0xe0, 0x120, 0xaa4a8d0b7d9077248630f1a4701ae9764e42271d7f22b7838778411857fd349e, 0x30, 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f73292, 0x67a8811c397529dac52ae1342ba58c9500000000000000000000000000000000, 0x20, 0x00f50428677c60f997aadeab24aabf7fceaef491c96a52b463ae91f95611cf71, 0x60, 0xa29d01cc8c6296a8150e515b5995390ef841dc18948aa3e79be6d7c1851b4cbb, 0x5d6ff49fa70b9c782399506a22a85193151b9b691245cebafd2063012443c132, 0x4b6c36debaedefb7b2d71b0503ffdc00150aaffd42e63358238ec888901738b8 -> # txhash: 0x7085c586686d666e8bb6e9477a0f0b09565b2060a11f1c4209d3a52295033832 #
// get_deposit_root() -> 0x2089653123d9c721215120b6db6738ba273bbc5228ac093b1f983badcdc8a438
// gas irOptimized: 104386
// gas legacy: 128075
// gas legacyOptimized: 100411
// gas irOptimized: 127486
// gas legacy: 150475
// gas legacyOptimized: 122811
// get_deposit_count() -> 0x20, 8, 0x0100000000000000000000000000000000000000000000000000000000000000
// deposit(bytes,bytes,bytes,bytes32), 32 ether: 0x80, 0xe0, 0x120, 0xdbd986dc85ceb382708cf90a3500f500f0a393c5ece76963ac3ed72eccd2c301, 0x30, 0xb2ce0f79f90e7b3a113ca5783c65756f96c4b4673c2b5c1eb4efc22280259441, 0x06d601211e8866dc5b50dc48a244dd7c00000000000000000000000000000000, 0x20, 0x00344b6c73f71b11c56aba0d01b7d8ad83559f209d0a4101a515f6ad54c89771, 0x60, 0x945caaf82d18e78c033927d51f452ebcd76524497b91d7a11219cb3db6a1d369, 0x7595fc095ce489e46b2ef129591f2f6d079be4faaf345a02c5eb133c072e7c56, 0x0c6c3617eee66b4b878165c502357d49485326bc6b31bc96873f308c8f19c09d -> # txhash: 0x404d8e109822ce448e68f45216c12cb051b784d068fbe98317ab8e50c58304ac #
// get_deposit_root() -> 0x40255975859377d912c53aa853245ebd939bdd2b33a28e084babdcc1ed8238ee
// gas irOptimized: 104386
// gas legacy: 128075
// gas legacyOptimized: 100411
// gas irOptimized: 127486
// gas legacy: 150475
// gas legacyOptimized: 122811
// get_deposit_count() -> 0x20, 8, 0x0200000000000000000000000000000000000000000000000000000000000000

View File

@ -296,6 +296,6 @@ contract Test {
// g() -> true
// pair() -> true
// verifyTx() -> true
// gas irOptimized: 127916
// gas legacy: 130571
// gas legacyOptimized: 100147
// gas irOptimized: 111716
// gas legacy: 114371
// gas legacyOptimized: 83947

View File

@ -15,4 +15,4 @@ contract D {
// compileViaYul: also
// ----
// f() -> 2
// gas legacy: 101554
// gas legacy: 101754

View File

@ -13,4 +13,4 @@ contract D {
// compileViaYul: also
// ----
// f() -> 2
// gas legacy: 101527
// gas legacy: 101727

View File

@ -18,17 +18,17 @@ contract C {
// compileViaYul: also
// ----
// constructor(), 20 wei
// gas irOptimized: 255579
// gas legacy: 285485
// gas irOptimized: 259072
// gas legacy: 288299
// gas legacyOptimized: 177933
// f(uint256): 20 -> 1370859564726510389319704988634906228201275401179
// x() -> 1
// f(uint256): 20 -> FAILURE
// x() -> 1
// stack(uint256): 1023 -> FAILURE
// gas irOptimized: 856335
// gas legacy: 981671
// gas legacyOptimized: 824895
// gas irOptimized: 391236
// gas legacy: 535367
// gas legacyOptimized: 354656
// x() -> 1
// stack(uint256): 10 -> 693016686122178122849713379390321835634789309880
// x() -> 2

View File

@ -20,9 +20,9 @@ contract test {
// compileViaYul: also
// ----
// set(uint8,uint8,uint8,uint8,uint8): 1, 21, 22, 42, 43 -> 0, 0, 0, 0
// gas irOptimized: 109814
// gas legacy: 111406
// gas legacyOptimized: 107981
// gas irOptimized: 112214
// gas legacy: 113806
// gas legacyOptimized: 111781
// get(uint8): 1 -> 21, 22, 42, 43
// set(uint8,uint8,uint8,uint8,uint8): 1, 10, 30, 11, 31 -> 21, 22, 42, 43
// get(uint8): 1 -> 10, 30, 11, 31

View File

@ -28,6 +28,6 @@ contract C {
// compileViaYul: also
// ----
// t() -> 9
// gas irOptimized: 103953
// gas legacy: 162897
// gas legacyOptimized: 112116
// gas irOptimized: 100053
// gas legacy: 158997
// gas legacyOptimized: 108916

View File

@ -29,8 +29,8 @@ contract C {
// compileViaYul: also
// ----
// f() -> 3, 7, 5
// gas irOptimized: 131380
// gas legacy: 153990
// gas legacyOptimized: 127822
// gas irOptimized: 128980
// gas legacy: 151590
// gas legacyOptimized: 125422
// x() -> 7
// y() -> 5

View File

@ -23,8 +23,8 @@ contract D {
// compileViaYul: also
// ----
// f() -> 1
// gas irOptimized: 86504
// gas legacy: 116212
// gas irOptimized: 85304
// gas legacy: 115012
// g() -> 5
// gas irOptimized: 86600
// gas legacy: 116672
// gas irOptimized: 85400
// gas legacy: 115472

View File

@ -25,5 +25,5 @@ contract B {
// compileViaYul: also
// ----
// g() -> 42
// gas irOptimized: 90635
// gas legacy: 126809
// gas irOptimized: 89435
// gas legacy: 125609

View File

@ -25,6 +25,6 @@ contract B {
// compileViaYul: also
// ----
// g() -> 42
// gas irOptimized: 119658
// gas legacy: 187809
// gas legacyOptimized: 117351
// gas irOptimized: 118458
// gas legacy: 186609
// gas legacyOptimized: 116151

View File

@ -22,6 +22,6 @@ contract A {
// compileViaYul: also
// ----
// g(int256): -1 -> -1
// gas legacy: 103422
// gas legacy: 103622
// g(int256): 10 -> 10
// gas legacy: 103050
// gas legacy: 103250

View File

@ -37,10 +37,10 @@ contract C {
// compileViaYul: also
// ----
// convertParent() -> 1
// gas irOptimized: 103637
// gas irOptimized: 102437
// convertSubA() -> 1, 2
// gas irOptimized: 105720
// gas legacy: 101703
// gas irOptimized: 103320
// gas legacy: 99303
// convertSubB() -> 1, 3
// gas irOptimized: 105654
// gas legacy: 101637
// gas irOptimized: 103254
// gas legacy: 99237

View File

@ -22,6 +22,6 @@ contract A {
// compileViaYul: also
// ----
// f(), 10 ether -> 3007, 3008, 3009
// gas irOptimized: 294279
// gas legacy: 422027
// gas legacyOptimized: 287256
// gas irOptimized: 294879
// gas legacy: 422627
// gas legacyOptimized: 287856

Some files were not shown because too many files have changed in this diff Show More