mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests
This commit is contained in:
parent
5a35c50d16
commit
0f65e17b7b
@ -46,8 +46,8 @@ contract c {
|
|||||||
// storageEmpty -> 0
|
// storageEmpty -> 0
|
||||||
// test_long() -> 67
|
// test_long() -> 67
|
||||||
// gas irOptimized: 89148
|
// gas irOptimized: 89148
|
||||||
// gas legacy: 108639
|
// gas legacy: 105839
|
||||||
// gas legacyOptimized: 106093
|
// gas legacyOptimized: 103293
|
||||||
// storageEmpty -> 0
|
// storageEmpty -> 0
|
||||||
// test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020
|
// test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020
|
||||||
// gas legacy: 61930
|
// gas legacy: 61930
|
||||||
|
@ -17,6 +17,6 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() -> 0
|
// test() -> 0
|
||||||
// gas irOptimized: 157188
|
// gas irOptimized: 125751
|
||||||
// gas legacy: 188576
|
// gas legacy: 150861
|
||||||
// gas legacyOptimized: 183333
|
// gas legacyOptimized: 146667
|
||||||
|
@ -46,6 +46,6 @@ contract C {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// f() -> true
|
// f() -> true
|
||||||
// gas irOptimized: 146756
|
// gas irOptimized: 117405
|
||||||
// gas legacy: 155961
|
// gas legacy: 124769
|
||||||
// gas legacyOptimized: 153588
|
// gas legacyOptimized: 122871
|
||||||
|
@ -13,6 +13,6 @@ contract C {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// f() -> 0
|
// f() -> 0
|
||||||
// gas irOptimized: 134365
|
// gas irOptimized: 107492
|
||||||
// gas legacy: 135313
|
// gas legacy: 108251
|
||||||
// gas legacyOptimized: 134548
|
// gas legacyOptimized: 107639
|
||||||
|
@ -35,12 +35,12 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() -> 0x02000202
|
// test() -> 0x02000202
|
||||||
// gas irOptimized: 4649835
|
// gas irOptimized: 4550335
|
||||||
// gas legacy: 4578446
|
// gas legacy: 4478946
|
||||||
// gas legacyOptimized: 4548309
|
// gas legacyOptimized: 4448809
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
// clear() -> 0, 0
|
// clear() -> 0, 0
|
||||||
// gas irOptimized: 4517023
|
// gas irOptimized: 4477223
|
||||||
// gas legacy: 4450548
|
// gas legacy: 4410748
|
||||||
// gas legacyOptimized: 4422289
|
// gas legacyOptimized: 4382489
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
|
@ -17,6 +17,6 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() -> 5, 4
|
// test() -> 5, 4
|
||||||
// gas irOptimized: 224973
|
// gas irOptimized: 205073
|
||||||
// gas legacy: 233801
|
// gas legacy: 213901
|
||||||
// gas legacyOptimized: 232816
|
// gas legacyOptimized: 212916
|
||||||
|
@ -23,6 +23,6 @@ contract c {
|
|||||||
// compileToEwasm: also
|
// compileToEwasm: also
|
||||||
// ----
|
// ----
|
||||||
// test() -> 3, 4
|
// test() -> 3, 4
|
||||||
// gas irOptimized: 189516
|
// gas irOptimized: 169616
|
||||||
// gas legacy: 215253
|
// gas legacy: 175453
|
||||||
// gas legacyOptimized: 212341
|
// gas legacyOptimized: 172541
|
||||||
|
@ -18,6 +18,6 @@ contract c {
|
|||||||
|
|
||||||
// ----
|
// ----
|
||||||
// test() -> 5, 4
|
// test() -> 5, 4
|
||||||
// gas irOptimized: 272893
|
// gas irOptimized: 252993
|
||||||
// gas legacy: 270834
|
// gas legacy: 250934
|
||||||
// gas legacyOptimized: 269960
|
// gas legacyOptimized: 250060
|
||||||
|
@ -17,6 +17,6 @@ contract c {
|
|||||||
// compileToEwasm: also
|
// compileToEwasm: also
|
||||||
// ----
|
// ----
|
||||||
// test() -> 8, 0
|
// test() -> 8, 0
|
||||||
// gas irOptimized: 236079
|
// gas irOptimized: 196279
|
||||||
// gas legacy: 234695
|
// gas legacy: 194895
|
||||||
// gas legacyOptimized: 234103
|
// gas legacyOptimized: 194303
|
||||||
|
@ -17,7 +17,7 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() -> 4, 5
|
// test() -> 4, 5
|
||||||
// gas irOptimized: 238623
|
// gas irOptimized: 190899
|
||||||
// gas legacy: 238736
|
// gas legacy: 190989
|
||||||
// gas legacyOptimized: 237159
|
// gas legacyOptimized: 189728
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
|
@ -19,6 +19,6 @@ contract c {
|
|||||||
// compileToEwasm: also
|
// compileToEwasm: also
|
||||||
// ----
|
// ----
|
||||||
// test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000
|
// test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000
|
||||||
// gas irOptimized: 124640
|
// gas irOptimized: 104740
|
||||||
// gas legacy: 187414
|
// gas legacy: 167514
|
||||||
// gas legacyOptimized: 165659
|
// gas legacyOptimized: 145759
|
||||||
|
@ -21,6 +21,6 @@ contract c {
|
|||||||
// compileToEwasm: also
|
// compileToEwasm: also
|
||||||
// ----
|
// ----
|
||||||
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0
|
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0
|
||||||
// gas irOptimized: 293486
|
// gas irOptimized: 273586
|
||||||
// gas legacy: 303626
|
// gas legacy: 283726
|
||||||
// gas legacyOptimized: 301945
|
// gas legacyOptimized: 282045
|
||||||
|
@ -21,6 +21,6 @@ contract c {
|
|||||||
// compileToEwasm: also
|
// compileToEwasm: also
|
||||||
// ----
|
// ----
|
||||||
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00
|
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00
|
||||||
// gas irOptimized: 273093
|
// gas irOptimized: 233293
|
||||||
// gas legacy: 276360
|
// gas legacy: 236560
|
||||||
// gas legacyOptimized: 275411
|
// gas legacyOptimized: 235611
|
||||||
|
@ -44,6 +44,6 @@ contract Test {
|
|||||||
// test1() -> 3
|
// test1() -> 3
|
||||||
// test2() -> 6
|
// test2() -> 6
|
||||||
// test3() -> 24
|
// test3() -> 24
|
||||||
// gas irOptimized: 155660
|
// gas irOptimized: 141260
|
||||||
// gas legacy: 156683
|
// gas legacy: 142283
|
||||||
// gas legacyOptimized: 155793
|
// gas legacyOptimized: 141393
|
||||||
|
@ -39,8 +39,8 @@ contract C {
|
|||||||
// gas legacy: 181047
|
// gas legacy: 181047
|
||||||
// gas legacyOptimized: 180029
|
// gas legacyOptimized: 180029
|
||||||
// g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000
|
// g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000
|
||||||
// gas irOptimized: 121097
|
// gas irOptimized: 106697
|
||||||
// gas legacy: 124201
|
// gas legacy: 109801
|
||||||
// gas legacyOptimized: 121353
|
// gas legacyOptimized: 106953
|
||||||
// h() -> 0x40, 0x60, 0x00, 0x00
|
// h() -> 0x40, 0x60, 0x00, 0x00
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
|
@ -46,6 +46,6 @@ contract C {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// f() -> 0xff
|
// f() -> 0xff
|
||||||
// gas irOptimized: 179284
|
// gas irOptimized: 143428
|
||||||
// gas legacy: 191974
|
// gas legacy: 153580
|
||||||
// gas legacyOptimized: 183456
|
// gas legacyOptimized: 146765
|
||||||
|
@ -51,6 +51,6 @@ contract C {
|
|||||||
// gas legacyOptimized: 117021
|
// gas legacyOptimized: 117021
|
||||||
// test2() -> 0x20, 0x14, "[b called][a called]"
|
// test2() -> 0x20, 0x14, "[b called][a called]"
|
||||||
// test3() -> 0x20, 0x14, "[b called][a called]"
|
// test3() -> 0x20, 0x14, "[b called][a called]"
|
||||||
// gas irOptimized: 106056
|
// gas irOptimized: 103256
|
||||||
// gas legacy: 105614
|
// gas legacy: 102814
|
||||||
// gas legacyOptimized: 104506
|
// gas legacyOptimized: 101706
|
||||||
|
@ -23,7 +23,7 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() -> 1, 2, 3
|
// test() -> 1, 2, 3
|
||||||
// gas irOptimized: 2285747
|
// gas irOptimized: 1828598
|
||||||
// gas legacy: 2279034
|
// gas legacy: 1823228
|
||||||
// gas legacyOptimized: 2267444
|
// gas legacyOptimized: 1813956
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
|
@ -18,7 +18,7 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() -> 38, 28, 18
|
// test() -> 38, 28, 18
|
||||||
// gas irOptimized: 185650
|
// gas irOptimized: 148520
|
||||||
// gas legacy: 189492
|
// gas legacy: 151594
|
||||||
// gas legacyOptimized: 178318
|
// gas legacyOptimized: 142655
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
|
@ -18,7 +18,7 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() -> 20, 10
|
// test() -> 20, 10
|
||||||
// gas irOptimized: 157570
|
// gas irOptimized: 126056
|
||||||
// gas legacy: 159279
|
// gas legacy: 127424
|
||||||
// gas legacyOptimized: 152937
|
// gas legacyOptimized: 122350
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
|
@ -10,6 +10,6 @@ contract c {
|
|||||||
|
|
||||||
// ----
|
// ----
|
||||||
// test() -> 0x20, 29, 0x0303030303030303030303030303030303030303030303030303030303000000
|
// test() -> 0x20, 29, 0x0303030303030303030303030303030303030303030303030303030303000000
|
||||||
// gas irOptimized: 109301
|
// gas irOptimized: 109310
|
||||||
// gas legacy: 126702
|
// gas legacy: 101362
|
||||||
// gas legacyOptimized: 123422
|
// gas legacyOptimized: 123422
|
||||||
|
@ -16,7 +16,7 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() -> true
|
// test() -> true
|
||||||
// gas irOptimized: 175619
|
// gas irOptimized: 140496
|
||||||
// gas legacy: 224093
|
// gas legacy: 179275
|
||||||
// gas legacyOptimized: 205152
|
// gas legacyOptimized: 164122
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
|
@ -15,7 +15,7 @@ contract c {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// test() ->
|
// test() ->
|
||||||
// gas irOptimized: 142528
|
// gas irOptimized: 114023
|
||||||
// gas legacy: 164430
|
// gas legacy: 131544
|
||||||
// gas legacyOptimized: 158513
|
// gas legacyOptimized: 126811
|
||||||
// storageEmpty -> 1
|
// storageEmpty -> 1
|
||||||
|
@ -42,10 +42,10 @@ contract C {
|
|||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// f() ->
|
// f() ->
|
||||||
// gas irOptimized: 141557
|
// gas irOptimized: 113246
|
||||||
// gas legacy: 142032
|
// gas legacy: 113626
|
||||||
// gas legacyOptimized: 141400
|
// gas legacyOptimized: 113120
|
||||||
// g() ->
|
// g() ->
|
||||||
// gas irOptimized: 148272
|
// gas irOptimized: 118618
|
||||||
// gas legacy: 148507
|
// gas legacy: 118806
|
||||||
// gas legacyOptimized: 147740
|
// gas legacyOptimized: 118192
|
||||||
|
@ -20,9 +20,9 @@ contract C {
|
|||||||
// gas legacy: 3071683
|
// gas legacy: 3071683
|
||||||
// gas legacyOptimized: 3014415
|
// gas legacyOptimized: 3014415
|
||||||
// test_indices(uint256): 5 ->
|
// test_indices(uint256): 5 ->
|
||||||
// gas irOptimized: 722510
|
// gas irOptimized: 578008
|
||||||
// gas legacy: 719151
|
// gas legacy: 575321
|
||||||
// gas legacyOptimized: 716139
|
// gas legacyOptimized: 572912
|
||||||
// test_indices(uint256): 10 ->
|
// test_indices(uint256): 10 ->
|
||||||
// gas irOptimized: 158347
|
// gas irOptimized: 158347
|
||||||
// gas legacy: 162657
|
// gas legacy: 162657
|
||||||
@ -40,14 +40,14 @@ contract C {
|
|||||||
// gas legacy: 18602799
|
// gas legacy: 18602799
|
||||||
// gas legacyOptimized: 18179744
|
// gas legacyOptimized: 18179744
|
||||||
// test_indices(uint256): 129 ->
|
// test_indices(uint256): 129 ->
|
||||||
// gas irOptimized: 5197778
|
// gas irOptimized: 4158223
|
||||||
// gas legacy: 5212013
|
// gas legacy: 4169611
|
||||||
// gas legacyOptimized: 5157889
|
// gas legacyOptimized: 4126312
|
||||||
// test_indices(uint256): 128 ->
|
// test_indices(uint256): 128 ->
|
||||||
// gas irOptimized: 416732
|
// gas irOptimized: 411932
|
||||||
// gas legacy: 470568
|
// gas legacy: 465768
|
||||||
// gas legacyOptimized: 423768
|
// gas legacyOptimized: 418968
|
||||||
// test_indices(uint256): 1 ->
|
// test_indices(uint256): 1 ->
|
||||||
// gas irOptimized: 726962
|
// gas irOptimized: 581570
|
||||||
// gas legacy: 721789
|
// gas legacy: 577432
|
||||||
// gas legacyOptimized: 720209
|
// gas legacyOptimized: 576168
|
||||||
|
@ -52,18 +52,18 @@ contract C {
|
|||||||
// ----
|
// ----
|
||||||
// test_zeroed_indicies(uint256): 1 ->
|
// test_zeroed_indicies(uint256): 1 ->
|
||||||
// test_zeroed_indicies(uint256): 5 ->
|
// test_zeroed_indicies(uint256): 5 ->
|
||||||
// gas irOptimized: 165044
|
// gas irOptimized: 132036
|
||||||
// gas legacy: 166201
|
// gas legacy: 132961
|
||||||
// gas legacyOptimized: 163439
|
// gas legacyOptimized: 130752
|
||||||
// test_zeroed_indicies(uint256): 10 ->
|
// test_zeroed_indicies(uint256): 10 ->
|
||||||
// gas irOptimized: 282617
|
// gas irOptimized: 226094
|
||||||
// gas legacy: 285088
|
// gas legacy: 228071
|
||||||
// gas legacyOptimized: 280012
|
// gas legacyOptimized: 224010
|
||||||
// test_zeroed_indicies(uint256): 15 ->
|
// test_zeroed_indicies(uint256): 15 ->
|
||||||
// gas irOptimized: 405332
|
// gas irOptimized: 324266
|
||||||
// gas legacy: 409138
|
// gas legacy: 327311
|
||||||
// gas legacyOptimized: 401827
|
// gas legacyOptimized: 321462
|
||||||
// test_zeroed_indicies(uint256): 0xFF ->
|
// test_zeroed_indicies(uint256): 0xFF ->
|
||||||
// gas irOptimized: 6403282
|
// gas irOptimized: 5122626
|
||||||
// gas legacy: 6466233
|
// gas legacy: 5172987
|
||||||
// gas legacyOptimized: 6333077
|
// gas legacyOptimized: 5066462
|
||||||
|
@ -17,11 +17,11 @@ contract C {
|
|||||||
// gas legacy: 105722
|
// gas legacy: 105722
|
||||||
// gas legacyOptimized: 103508
|
// gas legacyOptimized: 103508
|
||||||
// set_get_length(uint256): 0xFF -> 0
|
// set_get_length(uint256): 0xFF -> 0
|
||||||
// gas irOptimized: 841772
|
// gas irOptimized: 821872
|
||||||
// gas legacy: 830227
|
// gas legacy: 810327
|
||||||
// gas legacyOptimized: 806158
|
// gas legacyOptimized: 786258
|
||||||
// set_get_length(uint256): 0xFFF -> 0
|
// set_get_length(uint256): 0xFFF -> 0
|
||||||
// gas irOptimized: 12860984
|
// gas irOptimized: 12841084
|
||||||
// gas legacy: 12668959
|
// gas legacy: 12649059
|
||||||
// gas legacyOptimized: 12287770
|
// gas legacyOptimized: 12267870
|
||||||
// set_get_length(uint256): 0xFFFF -> FAILURE # Out-of-gas #
|
// set_get_length(uint256): 0xFFFF -> FAILURE # Out-of-gas #
|
||||||
|
Loading…
Reference in New Issue
Block a user