- Posts: 593
- Joined: Tue 15 Oct 2019, 09:10
I've compared the speed of various different browsers running the Emscripten / Web Assembly edition of BBC BASIC for SDL 2.0
, using the average of the times reported by the supplied timing.bbc
example program as a metric (which means it is measuring only raw computational speed, the speed of graphics or input-output of any kind isn't assessed):
- Brave: 543 ns
- Chrome: 542 ns
- Edge: 532 ns
- Firefox: 462 ns
- Opera: 555 ns
- Vivaldi: 543 ns
and for reference:
- Native code (x86, 32-bit): 152 ns
I conclude that Web Assembly is at best about 3 times slower
than native machine code, and that Firefox
(as we already knew) is significantly faster than the other browsers.
This is not an invitation to report results from other platforms or other BBC BASIC implementations.
I am suffering from 'cognitive decline' and depression. If you have a comment about the style or tone of this message please report it to the moderators by clicking the exclamation mark icon, rather than complaining on the public forum.