Skip to content

ramesaliyev/webassembly-square-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello WASM & Little Benchmark

This repo contains my hello world with Web Assembly and a little square benchmark.
I've followed this article while creating the base structure.

You can try it on your own system! Online Demo
Benchmark feedbacks are welcome!

Sample Screenshot

Benchmark code is; sum square of numbers within range of 0 to 1,000,000,000 (bilion) 10 times.

  • MacBook Air (13-inch, Early 2014), 1,7 GHz Intel Core i7, 8 GB 1600 MHz DDR3
Language Execution Time (ms)
Native JavaScript ~1100
Wasm Written by Hand ~930
C++ Compiled to Wasm ~930
Rust Compiled to Wasm ~930
  • Windows 10 Desktop PC, 4.2 GHz Intel Core i7, 16 GB 3200 MHz DDR4
Language Execution Time (ms)
Native JavaScript ~920
Wasm Written by Hand ~???
C++ Compiled to Wasm ~1110
Rust Compiled to Wasm ~1110

Thanks Berkan Yavri for contributing Rust code and Windows Benchmark.

Tools Used

What next?

Releases

No releases published

Packages

No packages published

Languages