Skip to content

Commit

Permalink
Update metering tests and scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
iamyulong committed Sep 22, 2023
1 parent 95e78aa commit 588b570
Show file tree
Hide file tree
Showing 32 changed files with 95 additions and 95 deletions.
16 changes: 8 additions & 8 deletions radix-engine-tests/assets/cost_flash_loan.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Total Cost (XRD) , 0.62851402592, 100.0%
- Execution Cost (XRD) , 0.4680828, 74.5%
Total Cost (XRD) , 0.62856877592, 100.0%
- Execution Cost (XRD) , 0.46813755, 74.5%
- Finalization Cost (XRD) , 0.0322574, 5.1%
- Tipping Cost (XRD) , 0, 0.0%
- Storage Cost (XRD) , 0.12817382592, 20.4%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 9361656, 100.0%
Execution Cost Breakdown , 9362751, 100.0%
- AfterInvoke , 1884, 0.0%
- AllocateNodeId , 5141, 0.1%
- BeforeInvoke , 7694, 0.1%
Expand All @@ -20,13 +20,13 @@ Execution Cost Breakdown ,
- OpenSubstate::GlobalFungibleResourceManager , 259797, 2.8%
- OpenSubstate::GlobalGenericComponent , 47692, 0.5%
- OpenSubstate::GlobalNonFungibleResourceManager , 632452, 6.8%
- OpenSubstate::GlobalPackage , 3400691, 36.3%
- OpenSubstate::GlobalPackage , 3401039, 36.3%
- OpenSubstate::InternalFungibleVault , 290575, 3.1%
- OpenSubstate::InternalGenericComponent , 211658, 2.3%
- PinNode , 636, 0.0%
- PrepareWasmCode , 967496, 10.3%
- PrepareWasmCode , 967836, 10.3%
- QueryActor , 10500, 0.1%
- ReadSubstate , 1325097, 14.2%
- ReadSubstate , 1325437, 14.2%
- RunNativeCode::AuthZone_pop , 33696, 0.4%
- RunNativeCode::AuthZone_push , 47700, 0.5%
- RunNativeCode::Worktop_drain , 11224, 0.1%
Expand Down Expand Up @@ -54,8 +54,8 @@ Execution Cost Breakdown ,
- 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 , 75809, 0.8%
- RunWasmCode::BasicFlashLoan_take_loan , 69340, 0.7%
- RunWasmCode::BasicFlashLoan_repay_loan , 75849, 0.8%
- RunWasmCode::BasicFlashLoan_take_loan , 69367, 0.7%
- ValidateTxPayload , 18800, 0.2%
- VerifyTxSignatures , 14000, 0.1%
- WriteSubstate , 33968, 0.4%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Total Cost (XRD) , 207.47923633518, 100.0%
- Execution Cost (XRD) , 2.5894889, 1.2%
Total Cost (XRD) , 207.47933838518, 100.0%
- Execution Cost (XRD) , 2.58959095, 1.2%
- Finalization Cost (XRD) , 2.47943445, 1.2%
- Tipping Cost (XRD) , 0, 0.0%
- Storage Cost (XRD) , 202.41031298518, 97.6%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 51789778, 100.0%
Execution Cost Breakdown , 51791819, 100.0%
- AfterInvoke , 4752, 0.0%
- AllocateNodeId , 2231, 0.0%
- BeforeInvoke , 2093962, 4.0%
Expand All @@ -20,15 +20,15 @@ Execution Cost Breakdown ,
- OpenSubstate::GlobalFungibleResourceManager , 121872, 0.2%
- OpenSubstate::GlobalGenericComponent , 43690, 0.1%
- OpenSubstate::GlobalNonFungibleResourceManager , 14330, 0.0%
- OpenSubstate::GlobalPackage , 2966854, 5.7%
- OpenSubstate::GlobalPackage , 2967553, 5.7%
- OpenSubstate::InternalFungibleVault , 90202, 0.2%
- OpenSubstate::InternalGenericComponent , 59014, 0.1%
- OpenSubstate::InternalKeyValueStore , 40536, 0.1%
- OpenSubstate::InternalNonFungibleVault , 133804, 0.3%
- PinNode , 240, 0.0%
- PrepareWasmCode , 353200, 0.7%
- PrepareWasmCode , 353866, 0.7%
- QueryActor , 2000, 0.0%
- ReadSubstate , 632528, 1.2%
- ReadSubstate , 633194, 1.2%
- RunNativeCode::Worktop_drain , 11224, 0.0%
- RunNativeCode::Worktop_drop , 17918, 0.0%
- RunNativeCode::Worktop_put , 29033, 0.1%
Expand All @@ -42,7 +42,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 , 24579, 0.0%
- RunWasmCode::Faucet_lock_fee , 24589, 0.0%
- SetSubstate , 35917, 0.1%
- ValidateTxPayload , 41840720, 80.8%
- VerifyTxSignatures , 7000, 0.0%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Total Cost (XRD) , 6.54726370536, 100.0%
- Execution Cost (XRD) , 0.2979503, 4.6%
Total Cost (XRD) , 6.54736575536, 100.0%
- Execution Cost (XRD) , 0.29805235, 4.6%
- Finalization Cost (XRD) , 2.4964143, 38.1%
- Tipping Cost (XRD) , 0, 0.0%
- Storage Cost (XRD) , 3.75289910536, 57.3%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 5959006, 100.0%
Execution Cost Breakdown , 5961047, 100.0%
- AfterInvoke , 4806, 0.1%
- AllocateNodeId , 2231, 0.0%
- BeforeInvoke , 10522, 0.2%
Expand All @@ -20,15 +20,15 @@ Execution Cost Breakdown ,
- OpenSubstate::GlobalFungibleResourceManager , 121872, 2.0%
- OpenSubstate::GlobalGenericComponent , 43690, 0.7%
- OpenSubstate::GlobalNonFungibleResourceManager , 14330, 0.2%
- OpenSubstate::GlobalPackage , 2966854, 49.8%
- OpenSubstate::GlobalPackage , 2967553, 49.8%
- OpenSubstate::InternalFungibleVault , 90202, 1.5%
- OpenSubstate::InternalGenericComponent , 59122, 1.0%
- OpenSubstate::InternalKeyValueStore , 40536, 0.7%
- OpenSubstate::InternalNonFungibleVault , 135427, 2.3%
- PinNode , 240, 0.0%
- PrepareWasmCode , 353200, 5.9%
- PrepareWasmCode , 353866, 5.9%
- QueryActor , 2000, 0.0%
- ReadSubstate , 633689, 10.6%
- ReadSubstate , 634355, 10.6%
- RunNativeCode::Worktop_drain , 11224, 0.2%
- RunNativeCode::Worktop_drop , 17918, 0.3%
- RunNativeCode::Worktop_put , 29033, 0.5%
Expand All @@ -42,7 +42,7 @@ Execution Cost Breakdown ,
- RunNativeCode::lock_fee , 45243, 0.8%
- RunNativeCode::put_NonFungibleVault , 35354, 0.6%
- RunNativeCode::try_deposit_batch_or_abort , 121257, 2.0%
- RunWasmCode::Faucet_lock_fee , 24579, 0.4%
- RunWasmCode::Faucet_lock_fee , 24589, 0.4%
- SetSubstate , 36370, 0.6%
- ValidateTxPayload , 171920, 2.9%
- VerifyTxSignatures , 7000, 0.1%
Expand Down
14 changes: 7 additions & 7 deletions radix-engine-tests/assets/cost_publish_large_package.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Total Cost (XRD) , 304.85419030219, 100.0%
- Execution Cost (XRD) , 4.94868265, 1.6%
Total Cost (XRD) , 304.85429235219, 100.0%
- Execution Cost (XRD) , 4.9487847, 1.6%
- Finalization Cost (XRD) , 0.07669735, 0.0%
- Tipping Cost (XRD) , 0, 0.0%
- Storage Cost (XRD) , 299.82881030219, 98.4%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 98973653, 100.0%
Execution Cost Breakdown , 98975694, 100.0%
- AfterInvoke , 326, 0.0%
- AllocateNodeId , 1552, 0.0%
- BeforeInvoke , 2096226, 2.1%
Expand All @@ -18,22 +18,22 @@ Execution Cost Breakdown ,
- MoveModule , 1960, 0.0%
- OpenSubstate::GlobalFungibleResourceManager , 126616, 0.1%
- OpenSubstate::GlobalGenericComponent , 43690, 0.0%
- OpenSubstate::GlobalPackage , 2518726, 2.5%
- OpenSubstate::GlobalPackage , 2519425, 2.5%
- OpenSubstate::InternalFungibleVault , 91807, 0.1%
- OpenSubstate::InternalGenericComponent , 18072, 0.0%
- OpenSubstate::InternalKeyValueStore , 40536, 0.0%
- PinNode , 156, 0.0%
- PrepareWasmCode , 353200, 0.4%
- PrepareWasmCode , 353866, 0.4%
- QueryActor , 1500, 0.0%
- ReadSubstate , 469051, 0.5%
- ReadSubstate , 469717, 0.5%
- RunNativeCode::Worktop_drop , 17918, 0.0%
- RunNativeCode::create , 24592, 0.0%
- RunNativeCode::create_empty_vault_FungibleResourceManager , 35570, 0.0%
- RunNativeCode::create_with_data , 27471, 0.0%
- RunNativeCode::get_amount_FungibleVault , 14451, 0.0%
- RunNativeCode::lock_fee , 45243, 0.0%
- RunNativeCode::publish_wasm_advanced , 46852012, 47.3%
- RunWasmCode::Faucet_lock_fee , 24579, 0.0%
- RunWasmCode::Faucet_lock_fee , 24589, 0.0%
- SetSubstate , 403, 0.0%
- ValidateTxPayload , 41911240, 42.3%
- VerifyTxSignatures , 7000, 0.0%
Expand Down
Loading

0 comments on commit 588b570

Please sign in to comment.