A practical visual performance comparison of CPU-intensive image processing tasks.
What if WebAssembly is not truly faster than JS everywhere? This project tries to understand whereS and howS.
Why not? Image processing is a commonly used in most popular applications today and it requires a lot of CPU power, which makes it a suitable choice for optimizing with WASM.
milliseconds
MP/s)
Lightweight operation - inverting RGB values pixel by pixel
Medium-intensity operation - detecting edges using the Sobel operator
High-weight operation - reducing colors using K-Means clustering algorithm
Each test runs multiple iterations (1-30 depending on image size) to ensure statistical reliability. Results show the median value to reduce the impact of outliers caused by browser garbage collection or system processes. Run counts and other variables related to the tests are