Skip to content

dsherret/slow-wasm-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On a Windows machine (works fine on Linux and Mac):

  1. Build the .wasm file by running ./build.sh.
  2. cd native-app && cargo run --release - Note the time it takes.
  3. cd wasmer-app && cargo run --release - Note the time it takes.
  4. cd wasmtime-app && cargo run --release - Note the time it takes.
  5. Run a web server in the root directory (ex. python -m SimpleHTTPServer 7800).
  6. Go to http://localhost:7800/test.html and open the console. Note the time it takes in different browsers.

Results on my machine:

  1. Native - ~433ms
  2. Wasmer (cranelift) - 145s ~448ms -- Fixed :)
  3. Wasmtime - ~436ms
  4. Chrome - 5s
  5. Firefox - 705ms

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published