3 ms·
Looks like the code is pretty slow. Lots of branches in the inner loop, like range check. https://github.com/blaze33/way-of-life/blob/master/src/js/wasm/engin
by vardump 9y ago
Looks like the code is pretty slow.
Lots of branches in the inner loop, like range check.
https://github.com/blaze33/way-of-life/blob/master/src/js/wasm/engine.c https://github.com/blaze33/way-of-life/blob/master/src/js/wa...
- blaze33 9y agoI'll concede that I did not spend any time optimizing the C code, the focus was mainly on getting a working wasm module that integrated correctly with th js code. I'll probably have a look on this after work.
- vardump 9y agoYeah, my point was this example shouldn't be used to judge webasm performance. No point to benchmark "Hello, World!"s.
- blaze33 9y agoThanks for the comment, I added a small paragraph along this line: http://blog.openbloc.fr/webassembly-first-steps/#part4 http://blog.openbloc.fr/webassembly-first-steps/#part4