The maintainer of this website has a Spotify Coding Playlist of their Lo-fi Hip Hop beats!

JavaScript/WASM Performance Comparison

A performance comparison tool for fractal image calculation in JavaScript and Web Assembly

You can switch between using JavaScript to perform the calculations (press 'j') or Web Assembly (press 'w')

This tool creates an image of the Mandelbrot Set, then as you move the mouse pointer over the image, the corresponding Julia Set for that location is dynamically calculated and the calculation time displayed.

Performance Comparison ScreenShot

IMPORTANT

The Web Assembly runtimes are quite consistent across different browsers; however, the JavaScript runtimes are not particularly consistent, and values will vary depending on the JavaScript engine your browser uses

Engine Browser Comments
SpiderMonkey Firefox Tends to be the fastest - sometimes being as fast as, or slightly faster than Web Assembly
JavaScriptCore Safari Tends to be a little slower than SpiderMonkey
V8 Brave
Google Chrome/Chromium
Tends to be slower than either SpiderMonkey or JavaScriptCore
Chakra Microsoft Edge No data

Additional Resources

  • The Rust part of this application can be found in this Git Repository
Date Added: 1/7/20