cardanoapi / hardfork-testing

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

Create Blog Post, with benchmark results like the one made for artano. #34

Closed mesudip closed 3 weeks ago

mesudip commented 3 months ago

Using the benchmark and test results for v2 and v3 contracts with/without reference script, Write a blogpost showing the progresses made in PlutusV3 in context of a marketplace contract.

Acceptance Criteria

mesudip commented 2 months ago

https://github.com/dQuadrant/cardano-marketplace/tree/main/reports/test-sanchonet-cardano-api-8.46

Based on the tests run on the marketplace with latest following was observed:

Analysis:

mesudip commented 2 months ago

Native PlutusV3 is worse than the PlutusV2 in terms of size and cost. It is possible to have a workaround by not decoding the ScriptContext and directly working on the BuiltinData, but it makes code look messy and a lot of Plutus helper functions cannot be used when writing contract in that way. (Plutarch with PlutusV3 might be a better option)

Martin response: By "directly working on the BuiltinData" you mean something like https://github.com/IntersectMBO/plutus/blob/b989f60c3b59d844bbaca1b9c39cbe89d2087c72/plutus-ledger-api/test-plugin/Spec/ScriptSize.hs#L98, right?

reeshavacharya commented 2 months ago

https://github.com/cardanoapi/chang-hardfork-testing/blob/b378b7c49992d9818eecebc00a97526e12de10c3/changHardForkTesting/app/V3/Spend/TxInfoFields.hs#L64

spannercode commented 3 weeks ago

This is the final document that will be shared with the community from Intersect side:

https://github.com/cardanoapi/hardfork-testing/blob/main/migration.md