diff --git a/justfile b/justfile index e66a1ad300a..763f12c4fb8 100644 --- a/justfile +++ b/justfile @@ -36,30 +36,37 @@ collect-gas-usage: cargo r -p test --release -- --verbose --forc-test-only | ./scripts/compare-gas-usage/extract-gas-usage.sh # This recipe should be used on snapshot tests that contains gas usage from `forc test`, -# because it will extract gas usage from all versions of the file and generate an html interactive report. +# because it will extract gas usage from all versions of the file +# revision_range: as used in git to select the versions of the file that gas will be extracted # path: path to file to extract gas usage -# open: "-o" will open the default browser showing the report +# report: csv or html +# open: for "html", "-o" will open the report in the default browser [linux] [group('benchmark')] -collect-historic-gas-usage path open: +collect-historic-gas-usage revision_range path report open="": #! /bin/bash mkdir -p target - rm target/a.csv - rm target/a.html + rm target/a.csv &>> /dev/null + rm target/a.html &>> /dev/null echo "test,gas,commit" > target/a.csv - for HASH in `git log --format='%H' -- {{path}}`; do + for HASH in `git log --format='%H' {{revision_range}} -- {{path}}`; do TIMESTAMP=$(git show -s --format='%as-%ct-%H' "$HASH") git --no-pager show "$HASH:{{path}}" | bash -c "scripts/compare-gas-usage/extract-gas-usage.sh $TIMESTAMP" >> target/a.csv done - ./scripts/csv2html/csv2html.sh target/a.csv >> target/a.html - if [ -n "{{open}}" ]; then - if which xdg-open &>> /dev/null - then - xdg-open target/a.html - elif which gnome-open &>> /dev/null - then - gnome-open target/a.html + + if [ "{{report}}" = "html" ]; then + ./scripts/csv2html/csv2html.sh target/a.csv >> target/a.html + if [ -n "{{open}}" ]; then + if which xdg-open &>> /dev/null + then + xdg-open target/a.html + elif which gnome-open &>> /dev/null + then + gnome-open target/a.html + fi fi + else + clipivot max target/a.csv --rows=test --cols=commit --val=gas > target/b.csv fi [group('build')] diff --git a/scripts/csv2html/csv2html.sh b/scripts/csv2html/csv2html.sh index 05a90c1e879..a173884ffd8 100755 --- a/scripts/csv2html/csv2html.sh +++ b/scripts/csv2html/csv2html.sh @@ -57,4 +57,4 @@ tail -n +2 "$1" | sed -e 's/^//' -e 's/,/<\/td>/g' -e 's/$/<\/td><\/ echo " -" \ No newline at end of file +" diff --git a/sway-lib-std/src/codec.sw b/sway-lib-std/src/codec.sw index 2d273a7d772..fef49ad4d12 100644 --- a/sway-lib-std/src/codec.sw +++ b/sway-lib-std/src/codec.sw @@ -5359,7 +5359,7 @@ where { let first_parameter = encode(method_name); let second_parameter = encode(args); - let params = encode(( + let params = ( contract_id, asm(a: first_parameter.ptr()) { a: u64 @@ -5367,9 +5367,9 @@ where asm(a: second_parameter.ptr()) { a: u64 }, - )); + ); - __contract_call(params.ptr(), coins, asset_id, gas); + __contract_call(¶ms, coins, asset_id, gas); let ptr = asm() { ret: raw_ptr }; diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract/stdout.snap b/test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract/stdout.snap index 3096bda4faa..3dd256e3096 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract/stdout.snap +++ b/test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract/stdout.snap @@ -1,6 +1,5 @@ --- source: test/src/snapshot/mod.rs -assertion_line: 266 --- > forc test --path test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract --test-threads 1 --logs --reverts exit status: 0 @@ -9,17 +8,17 @@ output: Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling library panicking_lib (test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_lib) Compiling contract panicking_contract (test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract) - Finished debug [unoptimized + fuel] target(s) [8.92 KB] in ??? + Finished debug [unoptimized + fuel] target(s) [8.512 KB] in ??? Running 12 tests, filtered 0 tests tested -- panicking_contract - test test_panicking_in_contract_self_impl ... ok (???, 1618 gas) + test test_panicking_in_contract_self_impl ... ok (???, 1245 gas) revert code: 8000000000000001 ├─ panic message: panicking in contract self impl ├─ panicked: in ::panicking_in_contract_self_impl │ └─ at panicking_contract@1.2.3, src/main.sw:22:9 - test test_directly_panicking_method ... ok (???, 2147 gas) + test test_directly_panicking_method ... ok (???, 1774 gas) revert code: 8080000000000002 ├─ panic message: Error C. ├─ panic value: C(true) @@ -27,7 +26,7 @@ tested -- panicking_contract │ └─ at panicking_contract@1.2.3, src/main.sw:28:9 decoded log values: C(true), log rb: 5503570629422409978 - test test_nested_panic_inlined ... ok (???, 3843 gas) + test test_nested_panic_inlined ... ok (???, 3470 gas) revert code: 830000000540a013 ├─ panic message: Error E. ├─ panic value: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]) @@ -39,7 +38,7 @@ C(true), log rb: 5503570629422409978 └─ at panicking_contract@1.2.3, src/main.sw:32:9 decoded log values: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]), log rb: 5503570629422409978 - test test_nested_panic_inlined_same_revert_code ... ok (???, 3843 gas) + test test_nested_panic_inlined_same_revert_code ... ok (???, 3470 gas) revert code: 830000000540a013 ├─ panic message: Error E. ├─ panic value: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]) @@ -51,7 +50,7 @@ E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString └─ at panicking_contract@1.2.3, src/main.sw:32:9 decoded log values: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]), log rb: 5503570629422409978 - test test_nested_panic_non_inlined ... ok (???, 4171 gas) + test test_nested_panic_non_inlined ... ok (???, 3798 gas) revert code: 838000000680c818 ├─ panic message: Error E. ├─ panic value: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]) @@ -63,7 +62,7 @@ E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString └─ at panicking_contract@1.2.3, src/main.sw:40:9 decoded log values: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]), log rb: 5503570629422409978 - test test_nested_panic_non_inlined_same_revert_code ... ok (???, 4171 gas) + test test_nested_panic_non_inlined_same_revert_code ... ok (???, 3798 gas) revert code: 838000000680c818 ├─ panic message: Error E. ├─ panic value: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]) @@ -75,7 +74,7 @@ E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { d └─ at panicking_contract@1.2.3, src/main.sw:40:9 decoded log values: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]), log rb: 5503570629422409978 - test test_generic_panic_with_unit ... ok (???, 2842 gas) + test test_generic_panic_with_unit ... ok (???, 2469 gas) revert code: 828000000000800f ├─ panic value: () ├─ panicked: in panicking_lib::generic_panic @@ -84,7 +83,7 @@ E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { d └─ at panicking_contract@1.2.3, src/main.sw:48:9 decoded log values: (), log rb: 3330666440490685604 - test test_generic_panic_with_unit_same_revert_code ... ok (???, 2842 gas) + test test_generic_panic_with_unit_same_revert_code ... ok (???, 2469 gas) revert code: 828000000000800f ├─ panic value: () ├─ panicked: in panicking_lib::generic_panic @@ -93,7 +92,7 @@ E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { d └─ at panicking_contract@1.2.3, src/main.sw:48:9 decoded log values: (), log rb: 3330666440490685604 - test test_generic_panic_with_str ... ok (???, 2794 gas) + test test_generic_panic_with_str ... ok (???, 2421 gas) revert code: 818000000000700d ├─ panic message: generic panic with string ├─ panicked: in panicking_lib::generic_panic @@ -102,7 +101,7 @@ E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { d └─ at panicking_contract@1.2.3, src/main.sw:56:9 decoded log values: AsciiString { data: "generic panic with string" }, log rb: 10098701174489624218 - test test_generic_panic_with_different_str_same_revert_code ... ok (???, 2335 gas) + test test_generic_panic_with_different_str_same_revert_code ... ok (???, 1962 gas) revert code: 8180000000004007 ├─ panic message: generic panic with different string ├─ panicked: in panicking_lib::generic_panic @@ -111,7 +110,7 @@ AsciiString { data: "generic panic with string" }, log rb: 10098701174489624218 └─ at panicking_contract@1.2.3, src/main.sw:60:9 decoded log values: AsciiString { data: "generic panic with different string" }, log rb: 10098701174489624218 - test test_generic_panic_with_error_type_enum ... ok (???, 2519 gas) + test test_generic_panic_with_error_type_enum ... ok (???, 2146 gas) revert code: 8200000000005009 ├─ panic message: Error A. ├─ panic value: A @@ -121,7 +120,7 @@ AsciiString { data: "generic panic with different string" }, log rb: 10098701174 └─ at panicking_contract@1.2.3, src/main.sw:64:9 decoded log values: A, log rb: 5503570629422409978 - test test_generic_panic_with_error_type_enum_different_variant_same_revert_code ... ok (???, 2751 gas) + test test_generic_panic_with_error_type_enum_different_variant_same_revert_code ... ok (???, 2378 gas) revert code: 820000000000600b ├─ panic message: Error B. ├─ panic value: B(42) @@ -143,17 +142,17 @@ output: Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling library panicking_lib (test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_lib) Compiling contract panicking_contract (test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract) - Finished release [optimized + fuel] target(s) [7.416 KB] in ??? + Finished release [optimized + fuel] target(s) [7.024 KB] in ??? Running 12 tests, filtered 0 tests tested -- panicking_contract - test test_panicking_in_contract_self_impl ... ok (???, 1183 gas) + test test_panicking_in_contract_self_impl ... ok (???, 869 gas) revert code: 8000000000000000 ├─ panic message: panicking in contract self impl └─ panicked: in ::panicking_in_contract_self_impl └─ at panicking_contract@1.2.3, src/main.sw:22:9 - test test_directly_panicking_method ... ok (???, 1605 gas) + test test_directly_panicking_method ... ok (???, 1291 gas) revert code: 8080000000000000 ├─ panic message: Error C. ├─ panic value: C(true) @@ -161,7 +160,7 @@ tested -- panicking_contract └─ at panicking_contract@1.2.3, src/main.sw:28:9 decoded log values: C(true), log rb: 5503570629422409978 - test test_nested_panic_inlined ... ok (???, 2851 gas) + test test_nested_panic_inlined ... ok (???, 2537 gas) revert code: 8300000000000000 ├─ panic message: Error E. ├─ panic value: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]) @@ -169,7 +168,7 @@ C(true), log rb: 5503570629422409978 └─ at panicking_lib, src/lib.sw:35:5 decoded log values: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]), log rb: 5503570629422409978 - test test_nested_panic_inlined_same_revert_code ... ok (???, 2851 gas) + test test_nested_panic_inlined_same_revert_code ... ok (???, 2537 gas) revert code: 8300000000000000 ├─ panic message: Error E. ├─ panic value: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]) @@ -177,7 +176,7 @@ E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString └─ at panicking_lib, src/lib.sw:35:5 decoded log values: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]), log rb: 5503570629422409978 - test test_nested_panic_non_inlined ... ok (???, 3081 gas) + test test_nested_panic_non_inlined ... ok (???, 2767 gas) revert code: 8380000000000000 ├─ panic message: Error E. ├─ panic value: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]) @@ -185,7 +184,7 @@ E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString └─ at panicking_lib, src/lib.sw:41:9 decoded log values: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]), log rb: 5503570629422409978 - test test_nested_panic_non_inlined_same_revert_code ... ok (???, 3081 gas) + test test_nested_panic_non_inlined_same_revert_code ... ok (???, 2767 gas) revert code: 8380000000000000 ├─ panic message: Error E. ├─ panic value: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]) @@ -193,35 +192,35 @@ E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { d └─ at panicking_lib, src/lib.sw:41:9 decoded log values: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]), log rb: 5503570629422409978 - test test_generic_panic_with_unit ... ok (???, 2053 gas) + test test_generic_panic_with_unit ... ok (???, 1739 gas) revert code: 8280000000000000 ├─ panic value: () └─ panicked: in panicking_lib::generic_panic └─ at panicking_lib, src/lib.sw:74:5 decoded log values: (), log rb: 3330666440490685604 - test test_generic_panic_with_unit_same_revert_code ... ok (???, 2053 gas) + test test_generic_panic_with_unit_same_revert_code ... ok (???, 1739 gas) revert code: 8280000000000000 ├─ panic value: () └─ panicked: in panicking_lib::generic_panic └─ at panicking_lib, src/lib.sw:74:5 decoded log values: (), log rb: 3330666440490685604 - test test_generic_panic_with_str ... ok (???, 2057 gas) + test test_generic_panic_with_str ... ok (???, 1743 gas) revert code: 8180000000000000 ├─ panic message: generic panic with string └─ panicked: in panicking_lib::generic_panic └─ at panicking_lib, src/lib.sw:74:5 decoded log values: AsciiString { data: "generic panic with string" }, log rb: 10098701174489624218 - test test_generic_panic_with_different_str_same_revert_code ... ok (???, 1739 gas) + test test_generic_panic_with_different_str_same_revert_code ... ok (???, 1425 gas) revert code: 8180000000000000 ├─ panic message: generic panic with different string └─ panicked: in panicking_lib::generic_panic └─ at panicking_lib, src/lib.sw:74:5 decoded log values: AsciiString { data: "generic panic with different string" }, log rb: 10098701174489624218 - test test_generic_panic_with_error_type_enum ... ok (???, 1860 gas) + test test_generic_panic_with_error_type_enum ... ok (???, 1546 gas) revert code: 8200000000000000 ├─ panic message: Error A. ├─ panic value: A @@ -229,7 +228,7 @@ AsciiString { data: "generic panic with different string" }, log rb: 10098701174 └─ at panicking_lib, src/lib.sw:74:5 decoded log values: A, log rb: 5503570629422409978 - test test_generic_panic_with_error_type_enum_different_variant_same_revert_code ... ok (???, 2023 gas) + test test_generic_panic_with_error_type_enum_different_variant_same_revert_code ... ok (???, 1709 gas) revert code: 8200000000000000 ├─ panic message: Error B. ├─ panic value: B(42) diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call/stdout.snap b/test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call/stdout.snap index 01aab205782..fbc5f34e8a8 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call/stdout.snap +++ b/test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call/stdout.snap @@ -7,40 +7,40 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [38.76 KB] in ??? + Finished release [optimized + fuel] target(s) [36.248 KB] in ??? Running 29 tests, filtered 0 tests tested -- const_of_contract_call - test cost_of_in_bool ... ok (???, 2627 gas) - test cost_of_in_u8 ... ok (???, 4874 gas) - test cost_of_in_u16 ... ok (???, 4493 gas) - test cost_of_in_u32 ... ok (???, 4926 gas) - test cost_of_in_u64 ... ok (???, 4934 gas) - test cost_of_in_u256 ... ok (???, 4777 gas) - test cost_of_in_b256 ... ok (???, 2491 gas) - test cost_of_in_str_0 ... ok (???, 3043 gas) - test cost_of_in_str_1 ... ok (???, 3345 gas) - test cost_of_in_str_8 ... ok (???, 3768 gas) - test cost_of_in_str_16 ... ok (???, 3374 gas) - test cost_of_in_str_32 ... ok (???, 3572 gas) - test cost_of_in_array_0 ... FAILED (???, 1632 gas) - test cost_of_in_array_1 ... ok (???, 2125 gas) - test cost_of_in_array_8 ... ok (???, 4724 gas) - test cost_of_in_array_16 ... ok (???, 5096 gas) - test cost_of_in_array_32 ... ok (???, 8421 gas) - test cost_of_in_array_64 ... ok (???, 14895 gas) - test cost_of_in_tuple_0 ... ok (???, 3822 gas) - test cost_of_in_tuple_1 ... ok (???, 4392 gas) - test cost_of_in_tuple_2 ... ok (???, 4761 gas) - test cost_of_in_tuple_3 ... ok (???, 5104 gas) - test cost_of_in_tuple_4 ... ok (???, 5468 gas) - test in_struct_u64 ... ok (???, 3635 gas) - test in_struct_u64_u64 ... ok (???, 3897 gas) - test in_struct_u64_u64_u64 ... ok (???, 4156 gas) - test in_enum_u64 ... ok (???, 3186 gas) - test in_enum_u64_u64 ... ok (???, 3061 gas) - test in_enum_u64_u64_u64 ... ok (???, 3173 gas) + test cost_of_in_bool ... ok (???, 2279 gas) + test cost_of_in_u8 ... ok (???, 4526 gas) + test cost_of_in_u16 ... ok (???, 4141 gas) + test cost_of_in_u32 ... ok (???, 4582 gas) + test cost_of_in_u64 ... ok (???, 4589 gas) + test cost_of_in_u256 ... ok (???, 4433 gas) + test cost_of_in_b256 ... ok (???, 2147 gas) + test cost_of_in_str_0 ... ok (???, 2697 gas) + test cost_of_in_str_1 ... ok (???, 2998 gas) + test cost_of_in_str_8 ... ok (???, 3421 gas) + test cost_of_in_str_16 ... ok (???, 3030 gas) + test cost_of_in_str_32 ... ok (???, 3227 gas) + test cost_of_in_array_0 ... FAILED (???, 1285 gas) + test cost_of_in_array_1 ... ok (???, 1779 gas) + test cost_of_in_array_8 ... ok (???, 4382 gas) + test cost_of_in_array_16 ... ok (???, 4753 gas) + test cost_of_in_array_32 ... ok (???, 8079 gas) + test cost_of_in_array_64 ... ok (???, 14545 gas) + test cost_of_in_tuple_0 ... ok (???, 3479 gas) + test cost_of_in_tuple_1 ... ok (???, 4050 gas) + test cost_of_in_tuple_2 ... ok (???, 4418 gas) + test cost_of_in_tuple_3 ... ok (???, 4761 gas) + test cost_of_in_tuple_4 ... ok (???, 5126 gas) + test in_struct_u64 ... ok (???, 3293 gas) + test in_struct_u64_u64 ... ok (???, 3554 gas) + test in_struct_u64_u64_u64 ... ok (???, 3813 gas) + test in_enum_u64 ... ok (???, 2843 gas) + test in_enum_u64_u64 ... ok (???, 2718 gas) + test in_enum_u64_u64_u64 ... ok (???, 2830 gas) failures: test cost_of_in_array_0, "test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call/src/main.sw":347 @@ -62,12 +62,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.448 KB] in ??? + Finished release [optimized + fuel] target(s) [2.016 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_array_0 ... FAILED (???, 1262 gas) + test isolated_cost_of_in_array_0 ... FAILED (???, 956 gas) failures: test isolated_cost_of_in_array_0, "test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call/src/main.sw":175 @@ -89,12 +89,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.624 KB] in ??? + Finished release [optimized + fuel] target(s) [2.192 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_array_1 ... ok (???, 1515 gas) + test isolated_cost_of_in_array_1 ... ok (???, 1185 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -109,12 +109,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.648 KB] in ??? + Finished release [optimized + fuel] target(s) [2.216 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_array_16 ... ok (???, 3955 gas) + test isolated_cost_of_in_array_16 ... ok (???, 3266 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -129,12 +129,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.648 KB] in ??? + Finished release [optimized + fuel] target(s) [2.216 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_array_32 ... ok (???, 6544 gas) + test isolated_cost_of_in_array_32 ... ok (???, 5471 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -149,12 +149,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.848 KB] in ??? + Finished release [optimized + fuel] target(s) [2.288 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_array_64 ... ok (???, 11787 gas) + test isolated_cost_of_in_array_64 ... ok (???, 9914 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -169,12 +169,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.784 KB] in ??? + Finished release [optimized + fuel] target(s) [2.352 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_array_8 ... ok (???, 3225 gas) + test isolated_cost_of_in_array_8 ... ok (???, 2728 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -189,12 +189,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.504 KB] in ??? + Finished release [optimized + fuel] target(s) [2.064 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_b256 ... ok (???, 1462 gas) + test isolated_cost_of_in_b256 ... ok (???, 1120 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -209,12 +209,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.504 KB] in ??? + Finished release [optimized + fuel] target(s) [1.952 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_bool ... ok (???, 1358 gas) + test isolated_cost_of_in_bool ... ok (???, 1047 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -229,12 +229,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.632 KB] in ??? + Finished release [optimized + fuel] target(s) [2.256 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test in_enum_u64 ... ok (???, 1644 gas) + test in_enum_u64 ... ok (???, 1333 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -249,12 +249,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.784 KB] in ??? + Finished release [optimized + fuel] target(s) [2.408 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test in_enum_u64_u64 ... ok (???, 1658 gas) + test in_enum_u64_u64 ... ok (???, 1347 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -269,12 +269,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.96 KB] in ??? + Finished release [optimized + fuel] target(s) [2.584 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test in_enum_u64_u64_u64 ... ok (???, 1661 gas) + test in_enum_u64_u64_u64 ... ok (???, 1350 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -289,12 +289,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.536 KB] in ??? + Finished release [optimized + fuel] target(s) [1.984 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_str_0 ... ok (???, 1451 gas) + test isolated_cost_of_in_str_0 ... ok (???, 1140 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -309,12 +309,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.736 KB] in ??? + Finished release [optimized + fuel] target(s) [2.184 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_str_1 ... ok (???, 1547 gas) + test isolated_cost_of_in_str_1 ... ok (???, 1237 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -329,12 +329,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.776 KB] in ??? + Finished release [optimized + fuel] target(s) [2.224 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_str_16 ... ok (???, 1552 gas) + test isolated_cost_of_in_str_16 ... ok (???, 1241 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -349,12 +349,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.792 KB] in ??? + Finished release [optimized + fuel] target(s) [2.24 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_str_32 ... ok (???, 1553 gas) + test isolated_cost_of_in_str_32 ... ok (???, 1242 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -369,12 +369,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.752 KB] in ??? + Finished release [optimized + fuel] target(s) [2.2 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_str_8 ... ok (???, 1551 gas) + test isolated_cost_of_in_str_8 ... ok (???, 1241 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -389,12 +389,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.496 KB] in ??? + Finished release [optimized + fuel] target(s) [2.072 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test in_struct_u64 ... ok (???, 1435 gas) + test in_struct_u64 ... ok (???, 1113 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -409,12 +409,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.576 KB] in ??? + Finished release [optimized + fuel] target(s) [2.2 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test in_struct_u64_u64 ... ok (???, 1615 gas) + test in_struct_u64_u64 ... ok (???, 1304 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -429,12 +429,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.648 KB] in ??? + Finished release [optimized + fuel] target(s) [2.272 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test in_struct_u64_u64_u64 ... ok (???, 1766 gas) + test in_struct_u64_u64_u64 ... ok (???, 1455 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -449,12 +449,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.024 KB] in ??? + Finished release [optimized + fuel] target(s) [1.472 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_tuple_0 ... ok (???, 1131 gas) + test isolated_cost_of_in_tuple_0 ... ok (???, 820 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -469,12 +469,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.44 KB] in ??? + Finished release [optimized + fuel] target(s) [2.016 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_tuple_1 ... ok (???, 1412 gas) + test isolated_cost_of_in_tuple_1 ... ok (???, 1090 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -489,12 +489,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.568 KB] in ??? + Finished release [optimized + fuel] target(s) [2.192 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_tuple_2 ... ok (???, 1615 gas) + test isolated_cost_of_in_tuple_2 ... ok (???, 1304 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -509,12 +509,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.64 KB] in ??? + Finished release [optimized + fuel] target(s) [2.264 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_tuple_3 ... ok (???, 1766 gas) + test isolated_cost_of_in_tuple_3 ... ok (???, 1455 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -529,12 +529,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.704 KB] in ??? + Finished release [optimized + fuel] target(s) [2.328 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_tuple_4 ... ok (???, 1916 gas) + test isolated_cost_of_in_tuple_4 ... ok (???, 1605 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -549,12 +549,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.528 KB] in ??? + Finished release [optimized + fuel] target(s) [1.976 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_u16 ... ok (???, 1428 gas) + test isolated_cost_of_in_u16 ... ok (???, 1117 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -569,12 +569,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.616 KB] in ??? + Finished release [optimized + fuel] target(s) [2.064 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_u256 ... ok (???, 1431 gas) + test isolated_cost_of_in_u256 ... ok (???, 1120 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -589,12 +589,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.64 KB] in ??? + Finished release [optimized + fuel] target(s) [2.088 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_u32 ... ok (???, 1554 gas) + test isolated_cost_of_in_u32 ... ok (???, 1243 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -609,12 +609,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.256 KB] in ??? + Finished release [optimized + fuel] target(s) [1.88 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_u64 ... ok (???, 1336 gas) + test isolated_cost_of_in_u64 ... ok (???, 1025 gas) test result: OK. 1 passed; 0 failed; finished in ??? @@ -629,12 +629,12 @@ output: Building test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core) Compiling contract const_of_contract_call (test/src/e2e_vm_tests/test_programs/should_pass/test_contracts/const_of_contract_call) - Finished release [optimized + fuel] target(s) [2.472 KB] in ??? + Finished release [optimized + fuel] target(s) [1.92 KB] in ??? Running 1 test, filtered 0 tests tested -- const_of_contract_call - test isolated_cost_of_in_u8 ... ok (???, 1352 gas) + test isolated_cost_of_in_u8 ... ok (???, 1041 gas) test result: OK. 1 passed; 0 failed; finished in ???