Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Added tests for each SubintentStructureError #2013

Open
wants to merge 2 commits into
base: tests/transaction-validation-refactor
Choose a base branch
from

Conversation

dhedey
Copy link
Contributor

@dhedey dhedey commented Nov 22, 2024

Summary

Added tests for each SubintentStructureError

Copy link

github-actions bot commented Nov 22, 2024

Docker tags
docker.io/radixdlt/private-scrypto-builder:78d57cba4e

Copy link

github-actions bot commented Nov 22, 2024

Benchmark for 78d57cb

Click to view benchmark
Test Base PR %
costing::bench_prepare_wasm 45.6±0.21ms 45.1±0.31ms -1.10%
costing::decode_encoded_i8_array_to_manifest_raw_value 19.3±0.01ms 19.3±0.01ms 0.00%
costing::decode_encoded_i8_array_to_manifest_value 41.2±0.07ms 41.2±0.09ms 0.00%
costing::decode_encoded_tuple_array_to_manifest_raw_value 61.0±0.36ms 61.0±0.29ms 0.00%
costing::decode_encoded_tuple_array_to_manifest_value 98.2±0.19ms 119.8±1.05ms +22.00%
costing::decode_encoded_u8_array_to_manifest_raw_value 32.3±0.15µs 25.9±0.06µs -19.81%
costing::decode_encoded_u8_array_to_manifest_value 41.4±0.06ms 41.3±0.04ms -0.24%
costing::decode_rpd_to_manifest_raw_value 12.9±0.03µs 12.7±0.01µs -1.55%
costing::decode_rpd_to_manifest_value 10.8±0.03µs 11.1±0.04µs +2.78%
costing::deserialize_wasm 1216.7±4.12µs 1220.7±2.89µs +0.33%
costing::execute_transaction_creating_big_vec_substates 692.9±10.22ms 688.5±7.73ms -0.64%
costing::execute_transaction_reading_big_vec_substates 591.1±1.20ms 581.1±0.75ms -1.69%
costing::instantiate_flash_loan 962.7±778.07µs 824.1±175.71µs -14.40%
costing::instantiate_radiswap 872.3±286.58µs 803.6±164.72µs -7.88%
costing::scrypto_malloc 668.7±1.72ms 652.4±1.24ms -2.44%
costing::scrypto_sbor_decode 664.5±1.28ms 658.6±1.40ms -0.89%
costing::scrypto_sha256 588.5±0.84ms 595.6±1.22ms +1.21%
costing::spin_loop_v1 508.9±0.51ms 510.7±3.30ms +0.35%
costing::spin_loop_v2 603.5±1.82ms 599.2±0.34ms -0.71%
costing::validate_sbor_payload 29.7±0.04µs 29.6±0.04µs -0.34%
costing::validate_sbor_payload_bytes 258.1±2.26ns 250.6±1.32ns -2.91%
costing::validate_secp256k1 76.8±0.09µs 76.5±0.12µs -0.39%
costing::validate_wasm 33.7±0.05ms 34.0±0.08ms +0.89%
decimal::add/0 8.4±0.00ns 8.4±0.00ns 0.00%
decimal::add/rust-native 9.8±0.00ns 9.8±0.00ns 0.00%
decimal::add/wasmi 336.1±1.46ns 306.3±3.36ns -8.87%
decimal::add/wasmi-call-native 2.9±0.00µs 2.9±0.01µs 0.00%
decimal::div/0 168.3±0.11ns 168.6±0.39ns +0.18%
decimal::from_string/0 156.8±0.05ns 156.7±0.12ns -0.06%
decimal::mul/0 128.4±0.08ns 128.4±0.08ns 0.00%
decimal::mul/rust-native 125.2±0.08ns 125.1±0.10ns -0.08%
decimal::mul/wasmi 20.9±0.05µs 19.8±0.05µs -5.26%
decimal::mul/wasmi-call-native 3.0±0.02µs 3.1±0.01µs +3.33%
decimal::pow/0 595.0±0.47ns 594.5±0.27ns -0.08%
decimal::pow/rust-native 596.6±0.25ns 594.3±0.29ns -0.39%
decimal::pow/wasmi 92.8±0.27µs 94.1±0.09µs +1.40%
decimal::pow/wasmi-call-native 4.8±0.04µs 4.9±0.01µs +2.08%
decimal::root/0 8.1±0.00µs 8.1±0.01µs 0.00%
decimal::sub/0 8.2±0.00ns 8.2±0.00ns 0.00%
decimal::to_string/0 441.6±0.23ns 440.3±0.53ns -0.29%
large_transaction_processing::prepare 2.3±0.00ms 2.4±0.00ms +4.35%
large_transaction_processing::prepare_and_decompile 6.3±0.01ms 6.0±0.01ms -4.76%
large_transaction_processing::prepare_and_decompile_and_recompile 28.4±2.93ms 29.6±1.53ms +4.23%
metadata_validation::validate_urls 4.7±0.02µs 4.9±0.02µs +4.26%
precise_decimal::add/0 8.9±0.01ns 8.9±0.01ns 0.00%
precise_decimal::add/rust-native 10.7±0.02ns 10.6±0.01ns -0.93%
precise_decimal::add/wasmi 430.3±6.04ns 415.4±4.36ns -3.46%
precise_decimal::add/wasmi-call-native 3.9±0.01µs 3.8±0.01µs -2.56%
precise_decimal::div/0 310.1±0.72ns 304.3±1.96ns -1.87%
precise_decimal::from_string/0 201.8±0.87ns 201.9±0.10ns +0.05%
precise_decimal::mul/0 348.7±1.42ns 343.3±2.04ns -1.55%
precise_decimal::mul/rust-native 283.0±0.22ns 283.4±0.29ns +0.14%
precise_decimal::mul/wasmi 48.6±0.35µs 48.4±0.14µs -0.41%
precise_decimal::mul/wasmi-call-native 4.2±0.00µs 4.2±0.01µs 0.00%
precise_decimal::pow/0 1727.7±3.10ns 1729.4±1.16ns +0.10%
precise_decimal::pow/rust-native 1351.1±0.99ns 1352.3±1.14ns +0.09%
precise_decimal::pow/wasmi 232.0±0.83µs 233.2±0.65µs +0.52%
precise_decimal::pow/wasmi-call-native 7.7±0.03µs 7.6±0.01µs -1.30%
precise_decimal::root/0 57.4±0.02µs 59.0±0.02µs +2.79%
precise_decimal::sub/0 9.2±0.07ns 9.1±0.15ns -1.09%
precise_decimal::to_string/0 701.4±0.53ns 698.9±0.21ns -0.36%
schema::validate_payload 380.4±0.42µs 393.0±0.96µs +3.31%
transaction::radiswap 5.0±0.05ms 4.9±0.03ms -2.00%
transaction::transfer 1818.4±2.64µs 1832.7±2.25µs +0.79%
transaction_validation::validate_manifest 43.0±0.09µs 43.0±0.06µs 0.00%
transaction_validation::verify_bls_2KB 971.9±7.00µs 957.0±9.06µs -1.53%
transaction_validation::verify_bls_32B 987.3±11.32µs 970.0±12.60µs -1.75%
transaction_validation::verify_ecdsa 74.9±0.28µs 74.4±0.07µs -0.67%
transaction_validation::verify_ed25519 42.4±0.13µs 42.5±0.08µs +0.24%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant