TensorFlow
Here is an example of JavaScript. You could find the full code from .
The above Tensorflow inference example takes 1–2 seconds to run. It is acceptable in web application scenarios but could be improved. Recall that WasmEdge is the fastest WebAssembly runtime today due to its AOT (Ahead-of-time compiler) optimization. WasmEdge provides a utility to compile and add a native machine code section to the wasm
file for much faster performance.
You can see that the image classification task can be completed within 0.1s. It is at least 10x improvement!