Skip to content

t-katsumura/webassembly-examples-eratosthenes

Repository files navigation

webassembly-examples-eratosthenes

MIT licensed Github pages available

This repository provides some examples and benchmarks of WebAssembly implementation compiled from various languages. Note that WebAssembly is not always faster than JavaScript. It depends on the tasks.
Examples implement the Sieve of Eratosthenes which algorithm is old but very simple and calculate the max prime below given "N".

Run examples

Check my git-pages (https://t-katsumura.github.io/webassembly-examples-eratosthenes/).
How to compile or how to run the examples are briefly described there.

Demos

Demos are available for these languages.
To compare the performance between WebAssembly and JavaScript, there are also demos of JavaScript and TypeScript.

Contributing

Any contributions are always be appreciated!

  1. Fork it
  2. Create feature branch (git checkout -b <your branch name>)
  3. Develop on the branch
  4. Commit your changes (git commit -m "<commit comment>")
  5. Push to the branch (git push -u origin <your branch name>)
  6. Create new Pull Request on Github

Git pages are created using docusaurus.
When updating the pages,

  • change or add markdown in website/docs/
  • resources of demos are in website/static/demos/
  • check the updates with npm run start
  • run npm run build to generate static pages in docs/
  • finally push your updates