Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(l2): fix load tests and better document load test comparisons #1273

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

jrchatruc
Copy link
Collaborator

Motivation

Description

@jrchatruc jrchatruc marked this pull request as ready for review November 26, 2024 13:53
@jrchatruc jrchatruc requested a review from a team as a code owner November 26, 2024 13:53
Copy link
Contributor

@fborello-lambda fborello-lambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left 1 suggestion

crates/l2/docs/README.md Outdated Show resolved Hide resolved
Co-authored-by: Federico Borello <[email protected]>
@jrchatruc jrchatruc added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit 685ecd6 Nov 27, 2024
16 checks passed
@jrchatruc jrchatruc deleted the fix-load-tests branch November 27, 2024 20:21
github-merge-queue bot pushed a commit that referenced this pull request Nov 28, 2024
**Motivation**

Depends on #1273 

When doing flamegraphs of load tests, the node spends around 50% of its
time on the `fill_transactions` function, and in there spends most of
its time just calling the `sender()` method to recover the sender's
address. By caching it when it's first added to the mempool, the time
spent on `fill_transactions` goes down to around 8%, and block execution
becomes roughly ~7x faster

Before the change:


![flamegraph_original](https://github.com/user-attachments/assets/d9e443f5-c151-4dfd-81c5-eef339ec8ca7)

After the change:


![flamegraph_cached_sender](https://github.com/user-attachments/assets/076a79d7-6c46-4ec7-9456-8c819ddcb4f3)


**Description**

<!-- A clear and concise general description of the changes this PR
introduces -->

<!-- Link to issues: Resolves #111, Resolves #222 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants