Gas cost updates.

This commit is contained in:
Daniel Kirchner 2022-06-09 16:15:25 +02:00
parent 1a9e66f4b0
commit c3781f7a1c
25 changed files with 36 additions and 36 deletions

View File

@ -24,6 +24,6 @@ contract C {
// ----
// library: L
// f() -> 8, 7, 1, 2, 7, 12
// gas irOptimized: 166606
// gas irOptimized: 166525
// gas legacy: 169347
// gas legacyOptimized: 167269

View File

@ -18,10 +18,10 @@ contract C {
// EVMVersion: >homestead
// ----
// h(uint256[2][]): 0x20, 3, 123, 124, 223, 224, 323, 324 -> 32, 256, 0x20, 3, 123, 124, 223, 224, 323, 324
// gas irOptimized: 180882
// gas irOptimized: 180768
// gas legacy: 184929
// gas legacyOptimized: 181504
// i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224
// gas irOptimized: 112533
// gas irOptimized: 112471
// gas legacy: 115468
// gas legacyOptimized: 112988

View File

@ -12,7 +12,7 @@ contract Test {
}
// ----
// 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: 189640
// gas irOptimized: 186766
// gas legacy: 211149
// gas legacyOptimized: 206054
// data(uint256,uint256): 0x02, 0x02 -> 0x09

View File

@ -9,7 +9,7 @@ contract C {
// ----
// constructor(): 1, 2, 3 ->
// gas irOptimized: 141700
// gas irOptimized: 141581
// gas legacy: 183490
// gas legacyOptimized: 151938
// a(uint256): 0 -> 1

View File

@ -20,7 +20,7 @@ contract c {
}
// ----
// 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: 650748
// gas irOptimized: 648324
// gas legacy: 694515
// gas legacyOptimized: 694013
// retrieve() -> 9, 28, 9, 28, 4, 3, 32

View File

@ -46,6 +46,6 @@ contract C {
}
// ----
// f() -> true
// gas irOptimized: 146913
// gas irOptimized: 146936
// gas legacy: 155961
// gas legacyOptimized: 153588

View File

@ -13,6 +13,6 @@ contract C {
}
// ----
// f() -> 0
// gas irOptimized: 134352
// gas irOptimized: 134365
// gas legacy: 135313
// gas legacyOptimized: 134548

View File

@ -19,6 +19,6 @@ contract c {
// ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000
// gas irOptimized: 209152
// gas irOptimized: 208149
// gas legacy: 221856
// gas legacyOptimized: 220680

View File

@ -13,6 +13,6 @@ contract c {
// ----
// test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10
// gas irOptimized: 689834
// gas irOptimized: 689768
// gas legacy: 686268
// gas legacyOptimized: 685688

View File

@ -38,10 +38,10 @@ contract c {
// compileViaYul: true
// ----
// test1(uint256[][]): 0x20, 2, 0x40, 0x40, 2, 23, 42 -> 2, 65
// gas irOptimized: 180723
// gas irOptimized: 180766
// test2(uint256[][2]): 0x20, 0x40, 0x40, 2, 23, 42 -> 2, 65
// gas irOptimized: 157518
// gas irOptimized: 157564
// test3(uint256[2][]): 0x20, 2, 23, 42, 23, 42 -> 2, 65
// gas irOptimized: 134709
// gas irOptimized: 134630
// test4(uint256[2][2]): 23, 42, 23, 42 -> 65
// gas irOptimized: 111324
// gas irOptimized: 111268

View File

@ -38,12 +38,12 @@ contract Test {
}
// ----
// test() -> 24
// gas irOptimized: 226714
// gas irOptimized: 226694
// gas legacy: 227133
// gas legacyOptimized: 226547
// test1() -> 3
// test2() -> 6
// test3() -> 24
// gas irOptimized: 133317
// gas irOptimized: 133254
// gas legacy: 134295
// gas legacyOptimized: 133383

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: 327727
// gas irOptimized: 327798

View File

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

View File

@ -9,6 +9,6 @@ contract C {
}
// ----
// f(uint256[]): 0x20, 0x03, 0x1, 0x2, 0x3 -> 0x1
// gas irOptimized: 111027
// gas irOptimized: 110971
// gas legacy: 111565
// gas legacyOptimized: 111347

View File

@ -16,6 +16,6 @@ contract C {
// ----
// test() -> 7
// gas irOptimized: 123625
// gas irOptimized: 122483
// gas legacy: 205196
// gas legacyOptimized: 204987

View File

@ -12,6 +12,6 @@ contract C {
}
// ----
// f(uint120[]): 0x20, 3, 1, 2, 3 -> 1
// gas irOptimized: 112776
// gas irOptimized: 112832
// gas legacy: 113686
// gas legacyOptimized: 113499

View File

@ -20,6 +20,6 @@ contract c {
}
// ----
// test() -> 2, 3, 4, 5
// gas irOptimized: 136277
// gas irOptimized: 135204
// gas legacy: 147484
// gas legacyOptimized: 146456

View File

@ -16,6 +16,6 @@ contract c {
}
// ----
// 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: 138230
// gas legacy: 145150
// gas legacyOptimized: 139171
// gas irOptimized: 137092
// gas legacy: 142537
// gas legacyOptimized: 138023

View File

@ -24,6 +24,6 @@ contract Creator {
}
// ----
// f(uint256,address[]): 7, 0x40, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 -> 7, 8
// gas irOptimized: 430087
// gas irOptimized: 429680
// gas legacy: 590683
// gas legacyOptimized: 448326

View File

@ -10,7 +10,7 @@ contract C {
// ----
// constructor(): 1, 2, 3, 4 ->
// gas irOptimized: 173087
// gas irOptimized: 172948
// gas legacy: 221377
// gas legacyOptimized: 177671
// a() -> 1

View File

@ -15,6 +15,6 @@ contract C {
// ----
// createEvent(uint256): 42 ->
// ~ emit E(uint256[][]): 0x20, 0x02, 0x40, 0xa0, 0x02, 0x2a, 0x2b, 0x02, 0x2c, 0x2d
// gas irOptimized: 185131
// gas irOptimized: 185145
// gas legacy: 187621
// gas legacyOptimized: 184551

View File

@ -16,6 +16,6 @@ contract C {
}
// ----
// f(uint32,(uint128,uint256[][2],uint32)): 55, 0x40, 77, 0x60, 88, 0x40, 0x40, 2, 1, 2 -> 55, 77, 1, 2, 88
// gas irOptimized: 202828
// gas legacy: 209194
// gas legacyOptimized: 203583
// gas irOptimized: 202838
// gas legacy: 207487
// gas legacyOptimized: 203611

View File

@ -49,7 +49,7 @@ contract C {
}
// ----
// test_f() -> true
// gas irOptimized: 122154
// gas irOptimized: 122070
// gas legacy: 126150
// gas legacyOptimized: 123163
// test_g() -> true

View File

@ -34,6 +34,6 @@ contract C {
// ----
// f(bytes): 0x20, 0x5, "abcde" -> 0
// gas irOptimized: 239194
// gas irOptimized: 239090
// gas legacy: 240541
// gas legacyOptimized: 239654
// gas legacyOptimized: 239673

View File

@ -20,6 +20,6 @@ contract C {
// ----
// g() -> 2, 6
// gas irOptimized: 178677
// gas irOptimized: 178637
// gas legacy: 180945
// gas legacyOptimized: 179460
// gas legacyOptimized: 179472