Performance issue during Drop
of wasmtime::Module
#10287
Labels
bug
Incorrect behavior in the current implementation that needs fixing
Drop
of wasmtime::Module
#10287
Thanks for filing a bug report! Please fill out the TODOs below.
Note: if you want to report a security issue, please read our security policy!
Test Case
Wasm file
Steps to Reproduce
Expected Results
The time taken to drop a
wasmtime::Module
should be comparable across different operating systems.Actual Results
The drop of a
wasmtime::Module
in MacOS is significantly higher than that of Linux and Windows.Versions and Environment
Wasmtime version or commit: 30.0.1
Operating system: MacOS 15.3.1
Architecture: arm64
Extra Info
1000
wasmtime::Module
are created with thewasm
binary attached above and then dropped. GitHub actions are set up in the repo, which runs thecargo bench
command inubuntu-latest
,windows-latest
, andmacos-latest
runners. The screenshot below shows the results:ubuntu-latest

windows-latest

macos-latest

The difference that was observed, in MacOS, the
wasmtime::CodeMemory
drop takes a significant amount of time which is not the case in Linux. It would be valuable to get some insights.Thank you.
The text was updated successfully, but these errors were encountered: