-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webassembly is slower than javascript #25
Comments
Same here. Running on chrome (on pixel) , getting a stable -28% webasm vs js. |
My observations of the demo, with 64-bit Firefox Nightly for Windows on a Surface Book (i7-6600U, using integrated graphics):
|
Same. On different filters values vary between -77 to -99%. Chrome Version 61.0.3163.100 (64 bit). Windows 10. |
Same here. |
Same here. Edit: Firefox shows similar slowness. |
For the simple filters like Grayscale and Invert JS is faster. Once the filters get computation complex, like Gaussian Blur WebAssembly is 50-100% faster. Which matches what you would expect because there is data transfer overhead. Version 63.0.3239.84 (Official Build) (64-bit) |
Same on firefox, Macbook Air 2014 |
I'm getting 40% better FPS on Gaussian Blur with JS, is it possible that Chrome has some optimization and runs the filters on the GPU? |
I have seen a nice video which was talking about performance of web-assembly, but running your example
the javascript is playing with similar speed, but on the graph it has been shown that the wasm is -97% is faster than javascript.
https://youtu.be/6v4E6oksar0?t=1796
my green line is showing 2.3, and my blue line is showing 400-500
The text was updated successfully, but these errors were encountered: