3 ms·
Compiling your C to WASM might make it run twice as fast as compiling it to JS. That's all. All other aspects of the workflow are the same.
by TekMol 2y ago
Compiling your C to WASM might make it run twice as fast as compiling it to JS.
That's all. All other aspects of the workflow are the same.
- thot_experiment 2y agoI will try but I suspect the final score will be 1. WASM 2. JS handwritten for speed 3. C compiled to JS and the gaps will be greater than 2x
- TekMol 2y agoAwesome. I will notice when you reply here, no matter when. I routinely check for new replies even to old comments.
- flohofwoe 2y agoYou forgot 'C compiled to the asm.js subset of Javascript', that would be on second place right after WASM (the switch from asm.js to WASM was hardly noticeable in my C/C++ code performance-wise - some browsers had special 'fast paths' for the asm.js subset though).