-
Notifications
You must be signed in to change notification settings - Fork 745
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
Platform-specific performance differences when running wasm-opt
.
#4650
Comments
Wow, that orders of magnitude difference (3 to 112 seconds) on I would try using the linux One possible guess is that that pass hashes function contents. Perhaps the hash function in the STL on that machine is very slow, somehow? We do depend on system libraries there, so system differences can matter. Another thing to check is whether the slow build is a debug build - maybe Finally, I'd make sure the machine has enough memory, as maybe that pass uses more than others, and it starts to swap. Can try to build with Relevant to #4165 |
It seems that But just setting
vs
Memory does not seem to an issue, though. It never seems to go even beyond 1GB used in either case. |
An interesting thing is that we are also testing that on macOS and the same code that @MichaelMauderer is posting about is taking 30-45 seconds (!!!) on M1 macOS, which is crazily fast in comparison to Linux and Windows machines. |
So maybe this is actually related to the version of Using a newly built version from this repo I see much more reasonable results, where more cores are faster at least.
|
Interesting that the |
Running on Windows with 16 cores and the latest binaries (107).
So, it seems the huge difference is gone in the current version. |
It seems that
wasm-opt
on my machine has serious differences in performance when running either on Windows 10 or Manjaro.I'm using
wasm-opt
throughwasm-pack
on a non-trivial Rust project. On Windows, thewasm-opt
pass takes 133.157 seconds, on the same machine, different partition running Manjaro the same compile takes 728.146 seconds.This is the output when setting
BINARYEN_PASS_DEBUG=1
for Windowsand on Manjaro
The specs of the machine used:
Processor AMD Ryzen Threadripper 2950X 16-Core Processor 3.50 GHz
Installed RAM 64.0 GB (63.9 GB usable)
Is there a known reason for this performance difference? My preferred work environment is Manjaro, but the time it takes to run
wasm-opt
there is killing my workflow, and I do need to work with the fully optimized output at the moment.The text was updated successfully, but these errors were encountered: