This app is a demo of using the Halide webassembly backend
To try it out,
-
install emscripten (see emscripten.org), and have emcc in your path.
-
Build with
make all -
Run a local webserver using, e.g.: python3 -m http.server 8080 &
-
Load Google chrome (at least version 84), go to chrome://flags, and turn on all the experimental webassembly stuff (e.g. threads, simd). If you don't do this, only the single-threaded scalar variant will work (at the time of writing).
-
Finally, run
make benchmark_nativeand compare the performance you get with native code