Skip to content

vankhoawin/Fibonacci-JS-Vs-WASM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fibonacci Performance Benchmark: JavaScript Vs. WebAssembly

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).

Installation

  • Go to the EMSDK website and follow the instructions
  • yarn install
  • yarn run compile && yarn start

Miscellaneous