takahirox / WebAssembly-benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebAssembly-banchmark

Easy JavaScript vs WebAssembly performance comparison test-set.

Demo

Online Demo

Develop locally

$ git clone https://github.com/takahirox/WebAssembly-benchmark.git
$ cd WebAssembly-benchmark
$ ./scripts/run_server.sh
# access http://localhost:8080

Note

  • In WebAssembly performance measurement, I include data copying between WASM and JS so far because I first wanted to know if we can simply replace JS functions with WASM functions. And even if I allocate WASM memory beforehand and remove copying, WASM is still slower in most of the micro tests. (06/09/2017)

About

License:MIT License


Languages

Language:HTML 68.3%Language:C++ 15.8%Language:JavaScript 11.7%Language:C 2.9%Language:Shell 1.3%