cardanoapi / hardfork-testing

Hardfork testing by Dquadrant Team (Project management repository)
0 stars 0 forks source link

Plutus V3 cost plan testing #2

Open mesudip opened 2 months ago

mesudip commented 2 months ago

Task Details

Approach

Acceptance Criteria

reeshavacharya commented 2 months ago

Attempted Tasks

Cases

Knowledge Block

mesudip commented 2 months ago

Approach is still not clear. Will require further investigation on this one.

mesudip commented 2 months ago

This is unclear because smart contract will contain extra code and not just single function call. The execution unit may change depending on

spannercode commented 5 days ago
reeshavacharya commented 4 days ago

Simple Market Efficiency Analysis

V3 Script Performance Comparison

Type Script Bytes Cost to Create Ref Script Size of Tx to Create Ref Script Cost to Withdraw Token Using Ref Script Cost to Buy Token Using Ref Script
Normal 8118 530,657 8429 402,933 456,318
Lazy 7125 486,965 7436 376,888 417,008

Calculation Details

Note: Total cost due to reference script is calculated as `tx_bytes 15` since none of our reference scripts exceed 25,000 bytes.*

Withdraw Using Reference Script

Buy Using Reference Script

reeshavacharya commented 4 days ago

V3 Script Performance

Type Script Bytes Cost to Create Ref Script Size of Tx to Create Ref Script Cost to Withdraw Token Using Ref Script Cost to Buy Token Using Ref Script
Normal 8118 530,657 8429 402,933 456,318
Super Lazy 2573 285,093 2848 258,164 297,826

V2 Script Performance

Type Script Bytes Cost to Create Ref Script Size of Tx to Create Ref Script Cost to Withdraw Token Using Ref Script Cost to Buy Token Using Ref Script
Normal 4594 374,017 4869 378,849 438,889
Super Lazy 2848 297,193 3123 298,732 334,188

Efficiency of Fees in withdraw Tx

Normal V2 vs Normal V3

Super Lazy V2 vs Super Lazy V3

Efficiency of Fees in buy Tx

Normal V2 vs Normal V3

Super Lazy V2 vs Super Lazy V3