Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

starknet_in_rust performance #770

@kkovaacs

Description

@kkovaacs

For some reason our re_execute tool is significantly slower with starknet_in_rust than it is with blockifier.
With blockifier:

target/release/examples/re_execute ./mainnet.sqlite 82000 82100  225,50s user 7,90s system 2122% cpu 10,998 total

That is, re-executing blocks from 82000 to 82100 takes ~11s.

With starknet_in_rust:

target/release/examples/re_execute ./mainnet.sqlite 82000 8210  1765,70s user 60,95s system 2208% cpu 1:22,71 total

Having had a quick look at the flamegraph it seems ContractClass cloning/dropping is pretty much dominating:

flamegraph

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions