This topic has been closed. No new entries allowed.
Reason: You can now post comments on articles on Dev Opera
You need to be logged in to post in the forums. If you do not have an account, please sign up first.
( Read the article )
var worker = new Worker('worker.js')
All scripts are placed in a subdir called scripts but creating the worker throws an exception, no matter whether I call 'worker.js' or 'scripts/worker.js'.
Opera is built as a single-threaded browser with support for a wide variety of platforms, so our current implementation of Web Workers interleaves code execution in the single UI thread. Other browsers, however, may have multi-threaded architectures which enable simultaneous execution of code.
which kinda negates the purpose ...
compare Chrome or IE10 vs Opera 11.50
Not only are web-workers slower than single thread, but also (overhead of throwing exception ?) opera is passing this test much slower than two aforementioned browsers.