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

Add base cost to consume_wasm_execution_units host function #1978

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions radix-engine-tests/assets/metering/cuttlefish/cost_crypto_utils.csv
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Total Cost (XRD) , 1.04183166606, 100.0%
- Execution Cost (XRD) , 0.6651783, 63.8%
Total Cost (XRD) , 1.05047606606, 100.0%
- Execution Cost (XRD) , 0.6738227, 64.1%
- Finalization Cost (XRD) , 0.0102517, 1.0%
- Storage Cost (XRD) , 0.36640166606, 35.2%
- Storage Cost (XRD) , 0.36640166606, 34.9%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 13303566, 100.0%
Execution Cost Breakdown , 13476454, 100.0%
- AfterInvoke , 518, 0.0%
- AllocateNodeId , 1455, 0.0%
- BeforeInvoke , 7778, 0.1%
- Blake2b256Hash , 91, 0.0%
- Bls12381G2SignatureAggregate , 243986, 1.8%
- Bls12381V1AggregateVerify , 2001824, 15.0%
- Bls12381V1FastAggregateVerify , 632277, 4.8%
- Bls12381V1Verify , 461378, 3.5%
- Bls12381V1AggregateVerify , 2001824, 14.9%
- Bls12381V1FastAggregateVerify , 632277, 4.7%
- Bls12381V1Verify , 461378, 3.4%
- CheckReference , 80024, 0.6%
- CloseSubstate , 18576, 0.1%
- CreateNode , 13376, 0.1%
Expand All @@ -25,27 +25,27 @@ Execution Cost Breakdown ,
- MarkSubstateAsTransient , 55, 0.0%
- OpenSubstate::GlobalFungibleResourceManager , 121872, 0.9%
- OpenSubstate::GlobalGenericComponent , 43690, 0.3%
- OpenSubstate::GlobalPackage , 3497709, 26.3%
- OpenSubstate::GlobalPackage , 3497709, 26.0%
- OpenSubstate::InternalFungibleVault , 90202, 0.7%
- OpenSubstate::InternalGenericComponent , 18682, 0.1%
- OpenSubstate::InternalKeyValueStore , 40536, 0.3%
- PinNode , 180, 0.0%
- PrepareWasmCode , 2282710, 17.2%
- PrepareWasmCode , 2282710, 16.9%
- QueryActor , 1000, 0.0%
- ReadSubstate , 2353589, 17.7%
- ReadSubstate , 2353589, 17.5%
- RunNativeCode::Worktop_drop , 17918, 0.1%
- RunNativeCode::get_amount_FungibleVault , 14451, 0.1%
- RunNativeCode::lock_fee , 45243, 0.3%
- RunWasmCode::CryptoScrypto_blake2b_256_hash , 10010, 0.1%
- RunWasmCode::CryptoScrypto_bls12381_g2_signature_aggregate , 362018, 2.7%
- RunWasmCode::CryptoScrypto_bls12381_v1_aggregate_verify , 253847, 1.9%
- RunWasmCode::CryptoScrypto_bls12381_v1_fast_aggregate_verify , 211296, 1.6%
- RunWasmCode::CryptoScrypto_bls12381_v1_verify , 61708, 0.5%
- RunWasmCode::CryptoScrypto_ed25519_verify , 43794, 0.3%
- RunWasmCode::CryptoScrypto_keccak256_hash , 10039, 0.1%
- RunWasmCode::CryptoScrypto_secp256k1_ecdsa_key_recover , 44649, 0.3%
- RunWasmCode::CryptoScrypto_secp256k1_ecdsa_verify , 55047, 0.4%
- RunWasmCode::Faucet_lock_fee , 24589, 0.2%
- RunWasmCode::CryptoScrypto_blake2b_256_hash , 10811, 0.1%
- RunWasmCode::CryptoScrypto_bls12381_g2_signature_aggregate , 422162, 3.1%
- RunWasmCode::CryptoScrypto_bls12381_v1_aggregate_verify , 295892, 2.2%
- RunWasmCode::CryptoScrypto_bls12381_v1_fast_aggregate_verify , 246322, 1.8%
- RunWasmCode::CryptoScrypto_bls12381_v1_verify , 71202, 0.5%
- RunWasmCode::CryptoScrypto_ed25519_verify , 50392, 0.4%
- RunWasmCode::CryptoScrypto_keccak256_hash , 10801, 0.1%
- RunWasmCode::CryptoScrypto_secp256k1_ecdsa_key_recover , 51211, 0.4%
- RunWasmCode::CryptoScrypto_secp256k1_ecdsa_verify , 63252, 0.5%
- RunWasmCode::Faucet_lock_fee , 27840, 0.2%
- Secp256k1EcdsaKeyRecover , 14705, 0.1%
- Secp256k1EcdsaVerify , 14705, 0.1%
- SetCallFrameData , 606, 0.0%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Total Cost (XRD) , 0.62267027592, 100.0%
- Execution Cost (XRD) , 0.46223905, 74.2%
Total Cost (XRD) , 0.62384462592, 100.0%
- Execution Cost (XRD) , 0.4634134, 74.3%
- Finalization Cost (XRD) , 0.0322574, 5.2%
- Storage Cost (XRD) , 0.12817382592, 20.6%
- Storage Cost (XRD) , 0.12817382592, 20.5%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 9244781, 100.0%
Execution Cost Breakdown , 9268268, 100.0%
- AfterInvoke , 1884, 0.0%
- AllocateNodeId , 5141, 0.1%
- BeforeInvoke , 7694, 0.1%
Expand All @@ -21,11 +21,11 @@ Execution Cost Breakdown ,
- OpenSubstate::GlobalFungibleResourceManager , 259797, 2.8%
- OpenSubstate::GlobalGenericComponent , 47692, 0.5%
- OpenSubstate::GlobalNonFungibleResourceManager , 632452, 6.8%
- OpenSubstate::GlobalPackage , 3160161, 34.2%
- OpenSubstate::GlobalPackage , 3160161, 34.1%
- OpenSubstate::InternalFungibleVault , 290575, 3.1%
- OpenSubstate::InternalGenericComponent , 212121, 2.3%
- PinNode , 636, 0.0%
- PrepareWasmCode , 967836, 10.5%
- PrepareWasmCode , 967836, 10.4%
- QueryActor , 10500, 0.1%
- ReadSubstate , 1325876, 14.3%
- RunNativeCode::AuthZone_pop , 33696, 0.4%
Expand All @@ -47,16 +47,16 @@ Execution Cost Breakdown ,
- RunNativeCode::lock_fee , 116047, 1.3%
- RunNativeCode::mint_ruid_NonFungibleResourceManager , 93979, 1.0%
- RunNativeCode::on_drop_FungibleProof , 28382, 0.3%
- RunNativeCode::on_move_FungibleProof , 32360, 0.4%
- RunNativeCode::on_move_FungibleProof , 32360, 0.3%
- RunNativeCode::put_FungibleBucket , 16165, 0.2%
- RunNativeCode::put_FungibleVault , 49108, 0.5%
- RunNativeCode::take_FungibleBucket , 19855, 0.2%
- RunNativeCode::take_FungibleVault , 84914, 0.9%
- RunNativeCode::try_deposit_batch_or_abort , 121257, 1.3%
- RunNativeCode::unlock_amount_FungibleVault , 46544, 0.5%
- RunNativeCode::withdraw , 57851, 0.6%
- RunWasmCode::BasicFlashLoan_repay_loan , 75849, 0.8%
- RunWasmCode::BasicFlashLoan_take_loan , 69367, 0.8%
- RunWasmCode::BasicFlashLoan_repay_loan , 88411, 1.0%
- RunWasmCode::BasicFlashLoan_take_loan , 80292, 0.9%
- SetCallFrameData , 606, 0.0%
- SwitchStack , 1000, 0.0%
- ValidateTxPayload , 18800, 0.2%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Total Cost (XRD) , 207.47148013518, 100.0%
- Execution Cost (XRD) , 2.5817327, 1.2%
Total Cost (XRD) , 207.47164268518, 100.0%
- Execution Cost (XRD) , 2.58189525, 1.2%
- Finalization Cost (XRD) , 2.47943445, 1.2%
- Storage Cost (XRD) , 202.41031298518, 97.6%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 51634654, 100.0%
Execution Cost Breakdown , 51637905, 100.0%
- AfterInvoke , 4752, 0.0%
- AllocateNodeId , 2231, 0.0%
- BeforeInvoke , 2093962, 4.1%
Expand Down Expand Up @@ -43,7 +43,7 @@ Execution Cost Breakdown ,
- RunNativeCode::lock_fee , 45243, 0.1%
- RunNativeCode::put_NonFungibleVault , 35354, 0.1%
- RunNativeCode::try_deposit_batch_or_abort , 121257, 0.2%
- RunWasmCode::Faucet_lock_fee , 24589, 0.0%
- RunWasmCode::Faucet_lock_fee , 27840, 0.1%
- SetCallFrameData , 606, 0.0%
- SetSubstate , 35917, 0.1%
- SwitchStack , 1000, 0.0%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Total Cost (XRD) , 6.53950750536, 100.0%
- Execution Cost (XRD) , 0.2901941, 4.4%
Total Cost (XRD) , 6.53967005536, 100.0%
- Execution Cost (XRD) , 0.29035665, 4.4%
- Finalization Cost (XRD) , 2.4964143, 38.2%
- Storage Cost (XRD) , 3.75289910536, 57.4%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 5803882, 100.0%
Execution Cost Breakdown , 5807133, 100.0%
- AfterInvoke , 4806, 0.1%
- AllocateNodeId , 2231, 0.0%
- BeforeInvoke , 10522, 0.2%
Expand Down Expand Up @@ -43,7 +43,7 @@ Execution Cost Breakdown ,
- RunNativeCode::lock_fee , 45243, 0.8%
- RunNativeCode::put_NonFungibleVault , 35354, 0.6%
- RunNativeCode::try_deposit_batch_or_abort , 121257, 2.1%
- RunWasmCode::Faucet_lock_fee , 24589, 0.4%
- RunWasmCode::Faucet_lock_fee , 27840, 0.5%
- SetCallFrameData , 606, 0.0%
- SetSubstate , 36370, 0.6%
- SwitchStack , 1000, 0.0%
Expand Down
Loading
Loading