misc/wasm: Go's WASM running slow in Node v19 #59748
Labels
arch-wasm
WebAssembly issues
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
main.go
GOOS=js GOARCH=wasm go build -o wasm.wasm main.go
and the binary size is 19.4 MB (i add some extra dependencies to simulate the real project for this prototype)gzip -9 -v -c wasm.wasm > wasm.wasm.gz
node ./main.js
main.js
What did you expect to see?
The hashed result for
asdf
showing up instantly.What did you see instead?
If the binary size is big, after seeing the result, it takes 5 seconds on my machine to exit. However, it is surprising to me that if I rewrite the js file in deno, it exits instantly after printing the result in my terminal.
deno.js
The text was updated successfully, but these errors were encountered: