Skip to content

arcanis/astar-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A* in WebAssembly

This repository is a showcase of a same implementation running on three different ecosystem: one in pure JS, another in native C++17, and the final one compiled to WASM and run within Node.

Interestingly my results seem to indicate that the JS one is faster than the native one, which leads me to believe I've made an error somewhere:

./native
Avg 130.58
node ./index.js --wasm
Avg 121.24
node ./index.js
Avg 111.55

Prerequisites

You must have the emsdk located in $HOME/emsdk.

Usage

Just run yarn && make all. This will run the same benchmark on the various environments (they all follow the same logic).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published