-
Notifications
You must be signed in to change notification settings - Fork 824
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
Scenario with very slow function execution in Wasmer on Windows compared to other runtimes and a native app #2260
Comments
@k-nasa interesting! Maybe it only occurs on Windows (I will try out on other OS later). I'm on Windows 10 (19042.928) |
Yes, it only seems to occur on windows. I just tried on linux, mac, and two different windows machines. I've updated the description and title. |
I want to try this problem, but I don't have windows machine... |
I reproduce the issue, even with current wasmer codebase. I made some profiling, and it seems the cause is an excessive amount of |
I believe this might be causing the issue: |
2666: fix(windows) Fix slow memory grow handling (fix #2260) r=ptitSeb a=ptitSeb # Description Fix slowiness on Windows plateforms with "memory grow". Will fix #2260 and should speedup Windows use in general. 2668: Fix time format spec in debug output r=ptitSeb a=Amanieu `%Z` is not a valid specifier for the `time` crate, it should be `%z` instead. This was causing panics in debug builds. Co-authored-by: ptitSeb <[email protected]> Co-authored-by: Amanieu d'Antras <[email protected]>
Thanks a lot! I can confirm it is fixed and super fast now in 2.1. |
Describe the bug
Usually wasmer is pretty quick, but I have a scenario where it's way way slower than browsers and a native rust app.
Steps to reproduce
Reproduction steps available in https://github.com/dsherret/slow-wasm-example
Expected behavior
Would at least expect it to execute somewhere close to chrome (I would hope it would be close to wasmtime though).
Actual behavior
On my machine:
This may be because the code is doing many allocations via bumpalo, but usually it's pretty quick...
The text was updated successfully, but these errors were encountered: