You are not logged in.

#1 2009-06-28 14:44:47

Maroko
Member
From: Slovakia
Registered: 2009-06-23
Posts: 14

Firefox and slow JavaScript in 64 bit

Hello!

I've installed 64 bit Archlinux on my laptop. I noticed poor JavaScript performance with firefox. I had 32 bit linux before. I ran benchmark from this site: http://www2.webkit.org/perf/sunspider-0 … pider.html and I got these results (approximately) - Less means better:

firefox 3.0.11 - 3200 ms
firefox 3.5rc2 - 1500 ms
midori 0.1.7 - 1400 ms

But now on 64 bit, firefox is slown down:

firefox 3.0.11 - 3800 ms
firefox 3.5rc3 - 3200 ms
midori 0.1.7 - 860 ms

I tried several builds including self compiling, but results are the same sad
Well, it's not that big issue, because browsing is fine. I'm just curious why there is such difference. I thought 64 bit would be even faster...

Offline

#2 2009-06-28 18:34:22

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: Firefox and slow JavaScript in 64 bit

This is what I get testing my x86_64 Firefox (3.0.11).

============================================
RESULTS (means and 95% confidence intervals)
--------------------------------------------
Total:                 3205.4ms +/- 0.5%
--------------------------------------------

  3d:                   383.8ms +/- 1.3%
    cube:               143.2ms +/- 3.0%
    morph:              133.6ms +/- 0.8%
    raytrace:           107.0ms +/- 1.8%

  access:               546.8ms +/- 1.7%
    binary-trees:        44.4ms +/- 2.5%
    fannkuch:           258.8ms +/- 0.4%
    nbody:              142.0ms +/- 5.3%
    nsieve:             101.6ms +/- 3.9%

  bitops:               499.0ms +/- 0.6%
    3bit-bits-in-byte:   84.6ms +/- 0.8%
    bits-in-byte:       134.6ms +/- 1.7%
    bitwise-and:        118.8ms +/- 0.9%
    nsieve-bits:        161.0ms +/- 0.5%

  controlflow:           43.2ms +/- 3.2%
    recursive:           43.2ms +/- 3.2%

  crypto:               209.4ms +/- 0.7%
    aes:                 88.8ms +/- 1.2%
    md5:                 60.6ms +/- 1.1%
    sha1:                60.0ms +/- 1.5%

  date:                 272.8ms +/- 1.2%
    format-tofte:       168.0ms +/- 0.7%
    format-xparb:       104.8ms +/- 2.1%

  math:                 370.0ms +/- 1.9%
    cordic:             164.8ms +/- 0.3%
    partial-sums:       129.0ms +/- 5.3%
    spectral-norm:       76.2ms +/- 0.7%

  regexp:               190.2ms +/- 2.1%
    dna:                190.2ms +/- 2.1%

  string:               690.2ms +/- 0.9%
    base64:              91.4ms +/- 1.8%
    fasta:              171.6ms +/- 1.0%
    tagcloud:           130.0ms +/- 1.5%
    unpack-code:        202.6ms +/- 1.5%
    validate-input:      94.6ms +/- 3.4%

The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#3 2009-06-30 20:44:16

jxy
Member
Registered: 2008-12-03
Posts: 133

Re: Firefox and slow JavaScript in 64 bit

Same thing here.

Firefox is significantly slower than midori.

Here "FROM" is firefox 3.0.11, "TO" is midori 0.1.7.  Both are from extra.

TEST                   COMPARISON            FROM                 TO             DETAILS

=============================================================================

** TOTAL **:           3.01x as fast     3470.6ms +/- 6.6%   1152.4ms +/- 10.0%     significant

=============================================================================

  3d:                  2.28x as fast      389.6ms +/- 8.4%    171.0ms +/- 17.1%     significant
    cube:              3.04x as fast      138.8ms +/- 10.2%     45.6ms +/- 45.3%     significant
    morph:             1.73x as fast      121.8ms +/- 9.9%     70.4ms +/- 42.9%     significant
    raytrace:          2.35x as fast      129.0ms +/- 21.9%     55.0ms +/- 5.3%     significant

  access:              4.34x as fast      474.8ms +/- 13.3%    109.4ms +/- 32.1%     significant
    binary-trees:      4.15x as fast       56.4ms +/- 19.8%     13.6ms +/- 44.6%     significant
    fannkuch:          4.93x as fast      208.2ms +/- 14.6%     42.2ms +/- 43.2%     significant
    nbody:             3.94x as fast      137.2ms +/- 17.9%     34.8ms +/- 15.7%     significant
    nsieve:            3.88x as fast       73.0ms +/- 39.8%     18.8ms +/- 56.2%     significant

  bitops:              6.19x as fast      412.4ms +/- 7.4%     66.6ms +/- 12.1%     significant
    3bit-bits-in-byte: 6.55x as fast       64.2ms +/- 19.9%      9.8ms +/- 48.6%     significant
    bits-in-byte:      5.30x as fast      120.8ms +/- 17.8%     22.8ms +/- 11.2%     significant
    bitwise-and:       9.86x as fast      116.4ms +/- 7.6%     11.8ms +/- 46.2%     significant
    nsieve-bits:       5.00x as fast      111.0ms +/- 11.8%     22.2ms +/- 8.3%     significant

  controlflow:         6.34x as fast       67.2ms +/- 24.1%     10.6ms +/- 58.4%     significant
    recursive:         6.34x as fast       67.2ms +/- 24.1%     10.6ms +/- 58.4%     significant

  crypto:              3.24x as fast      232.0ms +/- 11.4%     71.6ms +/- 18.5%     significant
    aes:               2.45x as fast       82.4ms +/- 17.6%     33.6ms +/- 40.7%     significant
    md5:               2.77x as fast       60.4ms +/- 18.2%     21.8ms +/- 11.0%     significant
    sha1:              5.51x as fast       89.2ms +/- 15.7%     16.2ms +/- 44.2%     significant

  date:                2.14x as fast      353.4ms +/- 15.6%    165.0ms +/- 16.0%     significant
    format-tofte:      2.42x as fast      204.6ms +/- 14.0%     84.4ms +/- 17.8%     significant
    format-xparb:      1.85x as fast      148.8ms +/- 20.4%     80.6ms +/- 25.5%     significant

  math:                2.66x as fast      319.8ms +/- 8.7%    120.2ms +/- 27.4%     significant
    cordic:            4.61x as fast      122.6ms +/- 13.9%     26.6ms +/- 46.2%     significant
    partial-sums:      1.89x as fast      134.8ms +/- 20.7%     71.2ms +/- 32.1%     significant
    spectral-norm:     2.79x as fast       62.4ms +/- 16.9%     22.4ms +/- 32.5%     significant

  regexp:              5.46x as fast      288.4ms +/- 16.1%     52.8ms +/- 34.8%     significant
    dna:               5.46x as fast      288.4ms +/- 16.1%     52.8ms +/- 34.8%     significant

  string:              2.42x as fast      933.0ms +/- 16.6%    385.2ms +/- 11.1%     significant
    base64:            2.78x as fast      124.6ms +/- 22.6%     44.8ms +/- 44.8%     significant
    fasta:             1.90x as fast      171.8ms +/- 16.6%     90.2ms +/- 9.6%     significant
    tagcloud:          2.32x as fast      189.4ms +/- 9.0%     81.6ms +/- 28.5%     significant
    unpack-code:       2.99x as fast      323.8ms +/- 41.1%    108.4ms +/- 8.8%     significant
    validate-input:    2.05x as fast      123.4ms +/- 11.0%     60.2ms +/- 29.4%     significant

Offline

#4 2009-06-30 22:37:44

dejavu
Member
Registered: 2008-05-26
Posts: 103

Re: Firefox and slow JavaScript in 64 bit

Tracemonkey from Firefox 3.5 final isn't available for x86_64 yet...

Offline

#5 2009-07-01 05:34:29

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: Firefox and slow JavaScript in 64 bit

Try firefox-hg from AUR. I got 1400ms on that benchmark with it smile x86_64. Not sure if that was tracemonkey though.

Last edited by Themaister (2009-07-01 05:38:54)

Offline

#6 2009-07-01 10:25:24

Maroko
Member
From: Slovakia
Registered: 2009-06-23
Posts: 14

Re: Firefox and slow JavaScript in 64 bit

Thanx for replies. I will wait until firefox 3.5 is in extra, which will be soon. Hope it will have new tracemonky and better score. If not, I will try firefox-hg from AUR.

EDIT:
Well, problem is still there :-( I hope they will enable new tracemonkey in 64 bit version some day...

Last edited by Maroko (2009-07-02 17:30:37)

Offline

#7 2009-07-01 13:35:27

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 226
Website

Re: Firefox and slow JavaScript in 64 bit

AFAIK there is no code for 64bit tracemonkey in FF 3.5 final, and there is not yet a definite plan on when it will be there. so it could be with some of the minor 3.5 upgrades or it also could be with 3.6 or whatever will come after 3.5. Mozilla apparently considers the 64bit userbase to small to make 64bit tracemonkey a priority (thats at least what I read on some blogs/comments). Maybe its time to finally make the switch to midori ^^


My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP

Offline

#8 2009-07-03 10:04:18

Kariddi
Member
Registered: 2009-03-12
Posts: 45

Re: Firefox and slow JavaScript in 64 bit

Another thing you can do is installing the "firefox32" package from AUR + lib32-flashplugin and use that instead in the meantime.

At the moment 64 bit browsing still sucks because of low interest by the developers of both browsers and plugins (flashplayer).

I've noticed a lot of compiling problems on firefox on my 64 bit system even with past releases and the 64 bit flash player is far from being competitive with it's 32 bit counterpart (it's much slower on HD videos and such).

I hope this will change in the future sad

Offline

#9 2009-07-03 11:47:07

stefan1975
Member
From: 53 6e 65 65 6b
Registered: 2007-04-16
Posts: 195

Re: Firefox and slow JavaScript in 64 bit

or use opera-snapshot from archlinux.fr. It has a QT4 build of opera10beta ..... which is really really fast on my pc.


"root# su - bofh"
OS: F10_x64, Arch, Centos5.3, RHEL4.7, RHEL5.3
Desktop Hardware: Dell Precision M65 laptop, core2duo, 2gb, 80gb 7200rpm
Registered linux user #459910 since 1998

Offline

#10 2009-09-15 02:10:28

originalsurfmex
Member
Registered: 2008-11-13
Posts: 150

Re: Firefox and slow JavaScript in 64 bit

ive been struggling with this problem for a coupla months now.  i just went from openjdk to jre and everything is super fast again.

hope that helps.

Offline

#11 2009-09-15 06:28:57

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Firefox and slow JavaScript in 64 bit

openjdk and jre are somethin completly different than javascript. Tracemonkey probably will not be enabled even for firefox 3.6 x86_64 and is definitly not available in firefox-hg.


Proud ex-maintainer of firefox-pgo

Offline

#12 2009-09-15 20:18:24

cjpembo
Member
Registered: 2008-08-06
Posts: 105

Re: Firefox and slow JavaScript in 64 bit

If you need super-fast javascript in a 64-bit browser, it seems Google is doing something right:

opera10 x86_64:             3306.2 ms
firefox 3.5.2 x86-64:        1985.2 ms
chromium-snapshot-64:     428.4 ms

Javascript in chromium is 4.63 times faster than in firefox on my 64-bit system.  And chromium blows opera 10 away.
Not sure if it makes a bit of difference in actual browsing...

Chris

Offline

#13 2009-09-16 05:21:17

doorknob60
Member
Registered: 2008-09-29
Posts: 403

Re: Firefox and slow JavaScript in 64 bit

Lol my results are worse:

firefox-pgo 3.5.3: 4378.0ms
chromium-snapshot-64: 726.6ms
Midori: 724.4ms

BTW:
Konqueror....I never though you were so slow...: 5114.0ms
Opera 10...and I thought Konqueror was slow...: 6295.0ms

My conclusions:
1. Firefox is faster than people make it out to be (shut it, Opera fanboys!)
2. Webkit kicks any other rendering engine's ass smile

3. I still don't care, Firefox and its extensions FTW.

Offline

#14 2009-09-17 05:15:17

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Firefox and slow JavaScript in 64 bit

TM has been enabled on x86_64 in HG. It will be also available with 3.6a2.


Proud ex-maintainer of firefox-pgo

Offline

#15 2009-09-23 05:11:01

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: Firefox and slow JavaScript in 64 bit

just letting you know, i posted this on the firefox-pgo thread:

successfully built 3.7a1 (i called it firefox-pgo-hg on my pkgbuild), build 2009 09 22 232207.

jit options in about:config both set to true

sunspider javascript benchmark shows:
Total:                  967.2ms

this is on x86_64

Last edited by toxygen (2009-09-23 05:11:25)


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#16 2009-09-23 06:18:35

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Firefox and slow JavaScript in 64 bit

So it is working in TRUNK:)
Too bad 3.6a2 hasn't merged TM code, we have to wait for 3.6a3.


Proud ex-maintainer of firefox-pgo

Offline

Board footer

Powered by FluxBB