With the introduction of WebAssembly to the four major browsers (Chrome, FireFox, Safari, Edge), browsers will soon be able to run apps capable of reaching near-native speeds, and magnitudes faster than current JavaScript code. This program compares the performance of finding Fibonacci terms in JavaScript and C++ compiled WebAssembly running in the browser (Macbook 2015, El Capitan).
- Go to the EMSDK website and follow the instructions
yarn install
yarn run compile && yarn start