-
Notifications
You must be signed in to change notification settings - Fork 141
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
Conversation
3ffbe35
to
ae0dc06
Compare
use fvm_ipld_encoding::CborStore; | ||
use fvm_shared::version::NetworkVersion; | ||
|
||
fn bench_compile(c: &mut Criterion) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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 [email protected]
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.
There was a problem hiding this comment.
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.
ae0dc06
to
f25a3ac
Compare
Specifically, it benchmarks compiling wasm -> native via cranelift.