X
Tap here to go to the mobile version of the site.

Support Forum

Will javascript in Firefox be faster in the near future? ( it is 4-times slower than Chrome/Opera/Vivaldi)

Posted

I'm writing a web-app, which depends a lot on javascript, and surprisingly it turned out that only on Firefox the performance is lacking. In a test, 25MP image was rendered on the site, with Chrome/Opera/Vivaldi all renders in around 10sec, but Firefox took about 40 seconds to render. Environment: PC Windows-8; all plugins/extensions are disabled; the latest version - 53.0.2 (64-bit); also the "developer edition" of Firefox 54.0a2 (2017-05-10) (64-bit) gave the same performance result.

Using the mouse-wheel to change the blending ("target image" is re-rendered with different parameters the preview image), with all other browsers happens smoothly, but with Firefox takes 0.5~1 second to re-render a frame, when the other browsers manage to smoothly animate the adjustments.

rendering script is using "typed arrays" / Uint32Array

needless to say, the end results are disappointing compared to the rest of the tested browsers. I would really like to avoid having to say "use anything but Firefox" =/

you can test, confirm for yourself here: https://kinoseed.com/

I'm writing a web-app, which depends a lot on javascript, and surprisingly it turned out that only on Firefox the performance is lacking. In a test, 25MP image was rendered on the site, with Chrome/Opera/Vivaldi all renders in around 10sec, but Firefox took about 40 seconds to render. Environment: PC Windows-8; all plugins/extensions are disabled; the latest version - 53.0.2 (64-bit); also the "developer edition" of Firefox 54.0a2 (2017-05-10) (64-bit) gave the same performance result. Using the mouse-wheel to change the blending ("target image" is re-rendered with different parameters the preview image), with all other browsers happens smoothly, but with Firefox takes 0.5~1 second to re-render a frame, when the other browsers manage to smoothly animate the adjustments. rendering script is using "typed arrays" / Uint32Array needless to say, the end results are disappointing compared to the rest of the tested browsers. I would really like to avoid having to say "use anything but Firefox" =/ you can test, confirm for yourself here: https://kinoseed.com/

Chosen solution

Actually version 55 is getting a lot of improvements in performance. You can try it from https://www.mozilla.org/en-US/firefox/nightly/all/

If it's still not enough, you should file a bug with your testcase on bugzilla.mozilla.org.

Read this answer in context 1
Quote
TyDraniu 27 solutions 163 answers

Chosen Solution

Actually version 55 is getting a lot of improvements in performance. You can try it from https://www.mozilla.org/en-US/firefox/nightly/all/

If it's still not enough, you should file a bug with your testcase on bugzilla.mozilla.org.

Actually version 55 is getting a lot of improvements in performance. You can try it from https://www.mozilla.org/en-US/firefox/nightly/all/ If it's still not enough, you should file a bug with your testcase on bugzilla.mozilla.org.
Was this helpful to you? 1
Quote

Helpful Reply

Thanks, it seems there is improvement, but it still lags x2 behind all other browsers. (10 seconds in other browsers -vs- 25 seconds in Firefox)

And in "scroll-test", it works "ok" for 5-10seconds, and then it fails (0 frames/second rendered, where in Chrome performance is constant).

Thanks, it seems there is improvement, but it still lags x2 behind all other browsers. (10 seconds in other browsers -vs- 25 seconds in Firefox) And in "scroll-test", it works "ok" for 5-10seconds, and then it fails (0 frames/second rendered, where in Chrome performance is constant).
Was this helpful to you? 2
Quote
TyDraniu 27 solutions 163 answers

Could you file a bug and provide here a bug number? Thanks.

Could you file a bug and provide here a bug number? Thanks.
Was this helpful to you? 1
Quote
jscher2000
  • Top 10 Contributor
6251 solutions 51369 answers

After I clicked "Render," I eventually got an unresponsive script warning dialog (I'm not using multiprocess in this profile), so Firefox seems to be looping hard in generating the blob.

Since Chrome/Opera/Vivaldi all use the Blink engine, to get the full view for your users, you may also want to test in Edge on Windows 10 and Safari on Mac.

After I clicked "Render," I eventually got an unresponsive script warning dialog (I'm not using multiprocess in this profile), so Firefox seems to be looping hard in generating the blob. Since Chrome/Opera/Vivaldi all use the Blink engine, to get the full view for your users, you may also want to test in Edge on Windows 10 and Safari on Mac.
Was this helpful to you? 0
Quote

Question owner

jscher2000, it seems like even "booting" the page started slower (although nightly version seems to catch up with the performance) when "rendering" I get the "warning" twice. (once on the "nightly version")

Windows 10 / Safari are not available here (the only other tests that could be done are on linux).

I'll file a bug-report.

jscher2000, it seems like even "booting" the page started slower (although nightly version seems to catch up with the performance) when "rendering" I get the "warning" twice. (once on the "nightly version") Windows 10 / Safari are not available here (the only other tests that could be done are on linux). I'll file a bug-report.
Was this helpful to you?
Quote

Helpful Reply

bug number: 1365376 https://bugzilla.mozilla.org/show_bug.cgi?id=1365376
Was this helpful to you? 1
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.