misc/wasm: webassembly performance worse than JavaScript? #41599
Labels
arch-wasm
WebAssembly issues
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
benchmark link
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Fibonacci
Same code implement in C/C++, Golang and Javascript
SumInt
For some reason, I can't implement the same as C/C++ in Golang. It's very hard to pass an array to golang wasm, then get the element like slice. So I call js.Value.Index(i).Int() a lot.
What did you expect to see?
Are there someway to improve golang wasm performance?
The text was updated successfully, but these errors were encountered: