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

Add an actor compilation benchmark #2060

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

Stebalien
Copy link
Member

Specifically, it benchmarks compiling wasm -> native via cranelift.

use fvm_ipld_encoding::CborStore;
use fvm_shared::version::NetworkVersion;

fn bench_compile(c: &mut Criterion) {
Copy link
Member Author

Choose a reason for hiding this comment

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

So, I think this benchmark is correct but... I'm not able to reproduce #2058.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can it be that the slowdown occurs under specific actor version(s)?

Copy link
Contributor

@LesnyRumcajs LesnyRumcajs Oct 21, 2024

Choose a reason for hiding this comment

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

I also didn't manage to reproduce it with this benchmark on a machine that showed a significant slowdown (used this benchmark on this branch and tag fvm@v4.3.3

bench actor compile     time:   [3.5975 s 3.6164 s 3.6374 s]
                        change: [-2.3529% -1.6171% -0.8734%] (p = 0.00 < 0.05)
                        Change within noise threshold.

Copy link
Member Author

Choose a reason for hiding this comment

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

It could be different versions. IIRC, we used to compile the actors optimizing for size instead of speed so that could be causing cranelift to take longer. I'll try pulling a specific version.

@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.70%. Comparing base (a0f85fa) to head (f25a3ac).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2060   +/-   ##
=======================================
  Coverage   75.70%   75.70%           
=======================================
  Files         153      153           
  Lines       15667    15667           
=======================================
  Hits        11861    11861           
  Misses       3806     3806           

@Stebalien Stebalien mentioned this pull request Oct 18, 2024
@Stebalien Stebalien merged commit 15bc696 into master Oct 21, 2024
14 checks passed
@Stebalien Stebalien deleted the steb/benchmark-compile branch October 21, 2024 16:40
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