Home:ALL Converter>Are all wasm speeds equal?

Are all wasm speeds equal?

Ask Time:2019-10-16T18:47:45         Author:kol23

Json Formatter

As we know wasm can be 'compiled' from cpp c# typescript rust etc. Question is will it make a big performance difference whether the wasm was compiled from for example cpp or typescript? Or it doesn't matter where it was compiled from, the wasm will be the same wasm?

Author:kol23,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/58411512/are-all-wasm-speeds-equal
Bumsik Kim :

No. Ask yourself - Are all x86 programs using different languages have the same speed? No.\n\nThe same thing happens to wasm.\n\nWhen different languages used, they hardly produce the same binaries. Actually, even with the same code with the same language they may perform differently depending on optimization options.\n\nThey don't share the same toolchain, libraries, optimizations, nor runtime. Even if you successfully built exactly the same binaries you still may have different host-side runtimes (or imported functions).",
2019-10-16T11:22:01
yy