FS#27673 - [firefox] JavaScript Performance Much Slower Than Expected
Attached to Project:
Arch Linux
Opened by Martin (mumart) - Thursday, 22 December 2011, 19:10 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 09 January 2012, 14:02 GMT
Opened by Martin (mumart) - Thursday, 22 December 2011, 19:10 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 09 January 2012, 14:02 GMT
|
Details
Description:
Firefox 9 is claimed to have "significantly improved" JavaScript performance over previous versions: http://www.mozilla.org/en-US/firefox/9.0/releasenotes/ I am experiencing a very low V8-benchmark score of 143 in Firefox 9, compared with 815 from Firefox 8 on the same system. The performance is roughly the same if I disable the JIT using "about:config", suggesting the JIT is permanently disabled. Steps to reproduce: Visit "http://v8.googlecode.com/svn/data/benchmarks/v6/run.html" and observe low score. |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Monday, 09 January 2012, 14:02 GMT
Reason for closing: Not a bug
Additional comments about closing: see the last comment
Monday, 09 January 2012, 14:02 GMT
Reason for closing: Not a bug
Additional comments about closing: see the last comment
My guess is that the new Type Inference option in the javascript engine uses more memory which you system doesn't have. Could you re-run the test with javascript.options.typeinference set to false?
I disabled "type inference" and the JIT is now working. The V8 score is now back up to 750, and I can run my synthesizer in real time again. Thanks for your help!
The system an old 1600mhz Athlon XP with 1GB of RAM. So yes, low spec. That's why I run Arch :)
Either way, if my system cannot support type-inference, I don't think it should be automatically disabling the entire JIT.
EDIT: I am getting the same behaviour in Windows XP on this system, so I'll ask around.
It looks like Mozilla is dropping support for JIT-compilation on non SSE2 CPUs. I've found the bug upstream at https://bugzilla.mozilla.org/show_bug.cgi?id=712261