Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Benchmark building vs importing vs validating #2048

Closed
@bkchr

Description

We should write some benchmark that is checking the difference between building a block, importing a block and validating a block (calling validate_block as the relay chain) for a parachain.

The benchmark can be relative simple. We push as many transactions as possible to a block until all weight of the block is used. We may want to change the "benchmarking runtime" to allow 100% weight for normal transactions. For creating the transactions we can follow: https://github.com/paritytech/polkadot-stps/blob/main/docs/introduction.md
Maybe we want to split the benchmark into two, one compute heavy and one io intensive benchmark. For that we would need to select the best transactions that are either compute/io intensive.

There should only be a difference for the IO intensive benchmark as we keep the PoV in memory and read the data from there. The compute intensive benchmark should show almost no difference between building/importing/validating.

Metadata

Assignees

Labels

I9-optimisationAn enhancement to provide better overall performance in terms of time-to-completion for a task.

Type

No type

Projects

  • Status

    done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions