WebAssembly & JavaScript Comparison Fail
Unsolved
Qt for WebAssembly
-
hello everyone,
for a student research project i want to do a performance comparison between javascript and wasm. i built a prime number finder in c++(wasm) and javascript to run them against each other. unfortunately, running the function in c++ took much longer than in js. i can't explain why 🙂
this would be the link to the source code: GitHub
took this tutorial for compiling c++ to wasm: Compiling a New C/C++ Module to WebAssemblycan someone tell me what i did wrong or what i didn't think of?
or can someone tell me which functions are more suitable for comparison?
I am grateful for any input!lg roberto