mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjust gas expectations due to new creation costs.
This commit is contained in:
parent
53626fc092
commit
75a0c486a8
@ -30,6 +30,6 @@ contract C is B {
|
||||
}
|
||||
// ----
|
||||
// test() -> 77
|
||||
// gas irOptimized: 119155
|
||||
// gas legacy: 151834
|
||||
// gas legacyOptimized: 110339
|
||||
// gas irOptimized: 119177
|
||||
// gas legacy: 151866
|
||||
// gas legacyOptimized: 110359
|
||||
|
@ -39,4 +39,4 @@ contract C is B {
|
||||
// ----
|
||||
// test() -> 5, 10
|
||||
// gas irOptimized: 87337
|
||||
// gas legacy: 102637
|
||||
// gas legacy: 102651
|
||||
|
@ -16,4 +16,4 @@ contract D {
|
||||
// ----
|
||||
// f() -> FAILURE, hex"4e487b71", 0x11
|
||||
// g(), 100 wei -> 1
|
||||
// gas legacy: 100370
|
||||
// gas legacy: 100388
|
||||
|
@ -19,6 +19,6 @@ contract B {
|
||||
|
||||
// ----
|
||||
// f() -> 2, 3, 4, 5, 6, 1000, 1001, 1002, 1003, 1004
|
||||
// gas irOptimized: 115808
|
||||
// gas legacy: 229947
|
||||
// gas legacyOptimized: 130613
|
||||
// gas irOptimized: 115828
|
||||
// gas legacy: 230001
|
||||
// gas legacyOptimized: 130637
|
||||
|
@ -43,6 +43,6 @@ contract C {
|
||||
|
||||
// ----
|
||||
// test() -> 5, 6, 7
|
||||
// gas irOptimized: 260837
|
||||
// gas legacy: 441446
|
||||
// gas legacyOptimized: 279259
|
||||
// gas irOptimized: 260895
|
||||
// gas legacy: 441556
|
||||
// gas legacyOptimized: 279321
|
||||
|
@ -24,6 +24,6 @@ contract Main {
|
||||
}
|
||||
// ----
|
||||
// f(uint256): 0x34 -> 0x46bddb1178e94d7f2892ff5f366840eb658911794f2c3a44c450aa2c505186c1
|
||||
// gas irOptimized: 112147
|
||||
// gas legacy: 125140
|
||||
// gas legacyOptimized: 113000
|
||||
// gas irOptimized: 112161
|
||||
// gas legacy: 125162
|
||||
// gas legacyOptimized: 113012
|
||||
|
@ -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: 429076
|
||||
// gas legacy: 581281
|
||||
// gas legacyOptimized: 444496
|
||||
// gas irOptimized: 429160
|
||||
// gas legacy: 581443
|
||||
// gas legacyOptimized: 444588
|
||||
|
@ -24,6 +24,6 @@ contract Creator {
|
||||
}
|
||||
// ----
|
||||
// f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h"
|
||||
// gas irOptimized: 278448
|
||||
// gas legacy: 418282
|
||||
// gas legacyOptimized: 291665
|
||||
// gas irOptimized: 278528
|
||||
// gas legacy: 418462
|
||||
// gas legacyOptimized: 291755
|
||||
|
@ -17,4 +17,4 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// f() -> 16
|
||||
// gas legacy: 102040
|
||||
// gas legacy: 102082
|
||||
|
@ -17,6 +17,6 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// f(), 2000 ether -> true
|
||||
// gas irOptimized: 119451
|
||||
// gas legacy: 122615
|
||||
// gas legacyOptimized: 122484
|
||||
// gas irOptimized: 119457
|
||||
// gas legacy: 122621
|
||||
// gas legacyOptimized: 122490
|
||||
|
@ -15,8 +15,8 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// constructor() ->
|
||||
// gas irOptimized: 165390
|
||||
// gas legacy: 244780
|
||||
// gas legacyOptimized: 171605
|
||||
// gas irOptimized: 165398
|
||||
// gas legacy: 244800
|
||||
// gas legacyOptimized: 171615
|
||||
// deposit(bytes32), 18 wei: 0x1234 ->
|
||||
// ~ emit Deposit(address,bytes32,uint256) from 0x137aa4dfc0911524504fcd4d98501f179bc13b4a: #0xc06afe3a8444fc0004668591e8306bfb9968e79e, #0x1234, 0x00
|
||||
|
@ -13,4 +13,4 @@ contract D {
|
||||
}
|
||||
// ----
|
||||
// f() -> 2
|
||||
// gas legacy: 100201
|
||||
// gas legacy: 100211
|
||||
|
@ -11,4 +11,4 @@ contract D {
|
||||
}
|
||||
// ----
|
||||
// f() -> 2
|
||||
// gas legacy: 100175
|
||||
// gas legacy: 100185
|
||||
|
@ -15,7 +15,7 @@ contract D {
|
||||
}
|
||||
// ----
|
||||
// constructor(): 2 ->
|
||||
// gas irOptimized: 193985
|
||||
// gas legacy: 241212
|
||||
// gas legacyOptimized: 192949
|
||||
// gas irOptimized: 193999
|
||||
// gas legacy: 241234
|
||||
// gas legacyOptimized: 192961
|
||||
// f() -> 2
|
||||
|
@ -17,7 +17,7 @@ contract D {
|
||||
// EVMVersion: >=constantinople
|
||||
// ----
|
||||
// constructor(): 2 ->
|
||||
// gas irOptimized: 194148
|
||||
// gas legacy: 241584
|
||||
// gas legacyOptimized: 193181
|
||||
// gas irOptimized: 194162
|
||||
// gas legacy: 241606
|
||||
// gas legacyOptimized: 193193
|
||||
// f() -> 2
|
||||
|
@ -39,9 +39,9 @@ contract test {
|
||||
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// gas irOptimized: 260040
|
||||
// gas legacy: 391566
|
||||
// gas legacyOptimized: 268079
|
||||
// gas irOptimized: 260052
|
||||
// gas legacy: 391588
|
||||
// gas legacyOptimized: 268089
|
||||
// sendAmount(uint256): 5 -> 5
|
||||
// outOfGas() -> FAILURE # call to helper should not succeed but amount should be transferred anyway #
|
||||
// checkState() -> false, 15
|
||||
|
@ -38,9 +38,9 @@ contract test {
|
||||
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// gas irOptimized: 260040
|
||||
// gas legacy: 391566
|
||||
// gas legacyOptimized: 268079
|
||||
// gas irOptimized: 260052
|
||||
// gas legacy: 391588
|
||||
// gas legacyOptimized: 268089
|
||||
// sendAmount(uint256): 5 -> 5
|
||||
// outOfGas() -> FAILURE # call to helper should not succeed but amount should be transferred anyway #
|
||||
// checkState() -> false, 15
|
||||
|
@ -27,5 +27,5 @@ contract C {
|
||||
// ----
|
||||
// t() -> 9
|
||||
// gas irOptimized: 99064
|
||||
// gas legacy: 149071
|
||||
// gas legacyOptimized: 106176
|
||||
// gas legacy: 149095
|
||||
// gas legacyOptimized: 106188
|
||||
|
@ -27,8 +27,8 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// f() -> 3, 7, 5
|
||||
// gas irOptimized: 124829
|
||||
// gas legacy: 148500
|
||||
// gas legacyOptimized: 123951
|
||||
// gas irOptimized: 124849
|
||||
// gas legacy: 148528
|
||||
// gas legacyOptimized: 123971
|
||||
// x() -> 7
|
||||
// y() -> 5
|
||||
|
@ -22,7 +22,7 @@ contract D {
|
||||
// ----
|
||||
// f() -> 1
|
||||
// gas irOptimized: 77051
|
||||
// gas legacy: 112260
|
||||
// gas legacy: 112280
|
||||
// g() -> 5
|
||||
// gas irOptimized: 77106
|
||||
// gas legacy: 112796
|
||||
// gas legacy: 112816
|
||||
|
@ -24,4 +24,4 @@ contract B {
|
||||
// ----
|
||||
// g() -> 42
|
||||
// gas irOptimized: 80813
|
||||
// gas legacy: 122447
|
||||
// gas legacy: 122471
|
||||
|
@ -23,6 +23,6 @@ contract B {
|
||||
|
||||
// ----
|
||||
// g() -> 42
|
||||
// gas irOptimized: 100266
|
||||
// gas legacy: 180398
|
||||
// gas legacyOptimized: 112576
|
||||
// gas irOptimized: 100282
|
||||
// gas legacy: 180440
|
||||
// gas legacyOptimized: 112596
|
||||
|
@ -20,6 +20,6 @@ contract A {
|
||||
|
||||
// ----
|
||||
// g(int256): -1 -> -1
|
||||
// gas legacy: 102064
|
||||
// gas legacy: 102086
|
||||
// g(int256): 10 -> 10
|
||||
// gas legacy: 101692
|
||||
// gas legacy: 101714
|
||||
|
@ -40,9 +40,9 @@ contract Main {
|
||||
|
||||
// ----
|
||||
// constructor(), 22 wei ->
|
||||
// gas irOptimized: 266864
|
||||
// gas legacy: 392744
|
||||
// gas legacyOptimized: 261611
|
||||
// gas irOptimized: 266886
|
||||
// gas legacy: 392786
|
||||
// gas legacyOptimized: 261633
|
||||
// getFlag() -> true
|
||||
// getName() -> "abc"
|
||||
// getBalances() -> 12, 10
|
||||
|
@ -16,9 +16,9 @@ contract ClientReceipt {
|
||||
}
|
||||
// ----
|
||||
// constructor(), 2000 wei ->
|
||||
// gas irOptimized: 171859
|
||||
// gas legacy: 230026
|
||||
// gas legacyOptimized: 173877
|
||||
// gas irOptimized: 171865
|
||||
// gas legacy: 230038
|
||||
// gas legacyOptimized: 173883
|
||||
// balance -> 1500
|
||||
// gas irOptimized: 191881
|
||||
// gas legacy: 235167
|
||||
|
@ -52,10 +52,10 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// testMul(int32,int32): 42, 10 -> 420
|
||||
// gas irOptimized: 102545
|
||||
// gas legacy: 183939
|
||||
// gas legacyOptimized: 123539
|
||||
// gas irOptimized: 102563
|
||||
// gas legacy: 183981
|
||||
// gas legacyOptimized: 123563
|
||||
// testInc(int32): 42 -> 43
|
||||
// gas irOptimized: 102368
|
||||
// gas legacy: 183197
|
||||
// gas legacyOptimized: 123227
|
||||
// gas irOptimized: 102386
|
||||
// gas legacy: 183239
|
||||
// gas legacyOptimized: 123251
|
||||
|
@ -58,10 +58,10 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// testMul(int32,int32): 42, 10 -> 420
|
||||
// gas irOptimized: 102545
|
||||
// gas legacy: 183939
|
||||
// gas legacyOptimized: 123539
|
||||
// gas irOptimized: 102563
|
||||
// gas legacy: 183981
|
||||
// gas legacyOptimized: 123563
|
||||
// testInc(int32): 42 -> 43
|
||||
// gas irOptimized: 102368
|
||||
// gas legacy: 183197
|
||||
// gas legacyOptimized: 123227
|
||||
// gas irOptimized: 102386
|
||||
// gas legacy: 183239
|
||||
// gas legacyOptimized: 123251
|
||||
|
@ -26,4 +26,4 @@ contract C {
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// createDSalted(bytes32,uint256): 42, 64 ->
|
||||
// gas legacy: 102921
|
||||
// gas legacy: 102943
|
||||
|
@ -23,4 +23,4 @@ contract A {
|
||||
// same_salt() -> true
|
||||
// gas irOptimized: 98438897
|
||||
// gas legacy: 98439109
|
||||
// gas legacyOptimized: 98438966
|
||||
// gas legacyOptimized: 98438967
|
||||
|
@ -21,6 +21,6 @@ contract A {
|
||||
// EVMVersion: >=constantinople
|
||||
// ----
|
||||
// f(), 10 ether -> 3007, 3008, 3009
|
||||
// gas irOptimized: 254190
|
||||
// gas legacy: 380967
|
||||
// gas legacyOptimized: 279640
|
||||
// gas irOptimized: 254238
|
||||
// gas legacy: 381063
|
||||
// gas legacyOptimized: 279694
|
||||
|
@ -25,5 +25,5 @@ contract D {
|
||||
// stateDecimal() -> right(42)
|
||||
// stateBytes() -> left(0x4200ef)
|
||||
// internalStateDecimal() -> 0x20
|
||||
// gas legacy: 100255
|
||||
// gas legacy: 100265
|
||||
// update(bool,uint256,bytes32): false, -23, left(0x2300ef) -> false, -23, left(0x2300ef)
|
||||
|
@ -40,4 +40,4 @@ contract D {
|
||||
// ----
|
||||
// library: "A":L
|
||||
// test() -> 3
|
||||
// gas legacy: 120859
|
||||
// gas legacy: 120881
|
||||
|
@ -38,6 +38,6 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// testRuntime() -> true
|
||||
// gas legacy: 100165
|
||||
// gas legacy: 100177
|
||||
// testCreation() -> true
|
||||
// gas legacy: 100588
|
||||
// gas legacy: 100600
|
||||
|
@ -24,4 +24,4 @@ contract C {
|
||||
|
||||
// ----
|
||||
// test() -> 7
|
||||
// gas legacy: 100839
|
||||
// gas legacy: 100849
|
||||
|
@ -24,4 +24,4 @@ contract C {
|
||||
// EVMVersion: >=constantinople
|
||||
// ----
|
||||
// test() -> 42
|
||||
// gas legacy: 100225
|
||||
// gas legacy: 100235
|
||||
|
@ -25,5 +25,5 @@ contract C {
|
||||
|
||||
// ----
|
||||
// test() -> 9, 7
|
||||
// gas legacy: 127478
|
||||
// gas legacy: 127514
|
||||
// t2() -> 9
|
||||
|
@ -30,9 +30,9 @@ contract D {
|
||||
}
|
||||
// ----
|
||||
// constructor(), 1 ether ->
|
||||
// gas irOptimized: 186962
|
||||
// gas legacy: 255963
|
||||
// gas legacyOptimized: 178911
|
||||
// gas irOptimized: 186970
|
||||
// gas legacy: 255973
|
||||
// gas legacyOptimized: 178919
|
||||
// c() -> 0x137aa4dfc0911524504fcd4d98501f179bc13b4a
|
||||
// balance: 0x137aa4dfc0911524504fcd4d98501f179bc13b4a -> 1000000000000000000
|
||||
// balance -> 0
|
||||
|
@ -17,7 +17,7 @@ contract D {
|
||||
|
||||
// ----
|
||||
// constructor(), 27 wei ->
|
||||
// gas irOptimized: 169371
|
||||
// gas legacy: 218447
|
||||
// gas legacyOptimized: 167286
|
||||
// gas irOptimized: 169377
|
||||
// gas legacy: 218459
|
||||
// gas legacyOptimized: 167292
|
||||
// f() -> 27
|
||||
|
@ -35,7 +35,7 @@ contract D {
|
||||
// EVMVersion: >=byzantium
|
||||
// ----
|
||||
// f() -> 0x1 # This should work, next should throw #
|
||||
// gas legacy: 102085
|
||||
// gas legacy: 102095
|
||||
// fview() -> FAILURE
|
||||
// gas irOptimized: 98438596
|
||||
// gas legacy: 98438774
|
||||
|
@ -20,7 +20,7 @@ contract test {
|
||||
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// gas irOptimized: 174345
|
||||
// gas legacy: 252286
|
||||
// gas legacyOptimized: 180346
|
||||
// gas irOptimized: 174351
|
||||
// gas legacy: 252296
|
||||
// gas legacyOptimized: 180352
|
||||
// sendAmount(uint256): 5 -> 8
|
||||
|
@ -19,7 +19,7 @@ contract test {
|
||||
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// gas irOptimized: 175209
|
||||
// gas legacy: 253810
|
||||
// gas legacyOptimized: 180778
|
||||
// gas irOptimized: 175215
|
||||
// gas legacy: 253820
|
||||
// gas legacyOptimized: 180784
|
||||
// sendAmount(uint256): 5 -> 8
|
||||
|
Loading…
Reference in New Issue
Block a user