Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Very slow javascript execution
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gruszczy
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2005
Posts: 100

PostPosted: Thu Mar 26, 2009 10:30 pm    Post subject: Very slow javascript execution Reply with quote

When I run firefox, javascript can sometimes be painfully slow. A friend of mine suggested, that it could be because of me not having graphic card support. But, well I do and I can run hapilly some openGL examples (And it doesn't complain, that I don't have graphic support, as it used to, when I didn't). So, do you have any idea, what might be the reason for a very slow js execution? I'd love to change this, because this actually affects my daily usage of a computer ;)
_________________
Filip Gruszczyñski
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Fri Mar 27, 2009 12:35 am    Post subject: Reply with quote

To quantify "slow", run this benchmark and post the results:

http://webkit.org/perf/sunspider-0.9/sunspider.html

If you have multiple browsers installed, try it on all of them.

Also, post your "emerge --info" and "emerge -pv mozilla-firefox".
Back to top
View user's profile Send private message
gruszczy
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2005
Posts: 100

PostPosted: Sat Mar 28, 2009 11:05 pm    Post subject: Reply with quote

Code:

Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Genuine_Intel-R-_CPU_T2060_@_1.60GHz-with-glibc2.0
Timestamp of tree: Fri, 27 Mar 2009 14:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en pl"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa apache apache2 apm bash-completion bindist branding bzip2 cairo cdinstall cdr cjk cli crypt cups dbus doc dri dvd dvdr dvdread encode esd examples exif fastcgi fbcon ffmpeg fftw firefox flac ftp gdbm geoip gif glib gnome gpm gstreamer gtk gtk2 hal hardened ieee1394 ipv6 isdnlog java javascript jikes jpeg kerberos krb4 libcaca libg++ lm_sensors mad memlimit midi mime mmx mp3 mpeg mplayer mudflap musepack musicbrainz ncurses nls nocd nptl nptlonly nsplugin ogg opengl openmp pam pcmcia pcntl pcre pda pdf perl php pic png posix postgres ppds pppd profile python qt3support qt4 rdesktop readline reflection samba scanner slang soap sockets source spell spl sqlite sqlite3 sse sse2 ssl startup-notification symlink sysfs sysvipc tetex threads truetype unicode usb vcd videos vorbis wifi win32codecs x86 xml xmlrpc xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-client/mozilla-firefox-3.0.7  USE="bindist dbus gnome java startup-notification -custom-optimization -iceweasel -mozdevelop -restrict-javascript -xulrunner" LINGUAS="en pl -af -ar -be -bg -bn -bn_IN -ca -cs -cy -da -de -el -en_GB -en_US -eo -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hu -id -is -it -ja -ka -kn -ko -ku -lt -lv -mk -mn -mr -nb -nb_NO -nl -nn -nn_NO -oc -pa -pa_IN -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -te -th -tr -uk -zh -zh_CN -zh_TW" 19 kB

Total: 1 package (1 reinstall), Size of downloads: 19 kB


Firefox benchmark:
Code:

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

  3d:                    627.8ms +/- 2.2%
    cube:                234.4ms +/- 2.9%
    morph:               188.8ms +/- 3.6%
    raytrace:            204.6ms +/- 7.9%

  access:                742.4ms +/- 2.2%
    binary-trees:         87.4ms +/- 1.9%
    fannkuch:            298.8ms +/- 2.8%
    nbody:               257.0ms +/- 3.8%
    nsieve:               99.2ms +/- 2.9%

  bitops:                534.0ms +/- 5.5%
    3bit-bits-in-byte:    99.2ms +/- 28.6%
    bits-in-byte:        130.2ms +/- 3.5%
    bitwise-and:         140.8ms +/- 3.3%
    nsieve-bits:         163.8ms +/- 3.9%

  controlflow:            67.6ms +/- 2.1%
    recursive:            67.6ms +/- 2.1%

  crypto:                310.4ms +/- 2.3%
    aes:                 123.8ms +/- 2.6%
    md5:                  90.4ms +/- 1.2%
    sha1:                 96.2ms +/- 8.1%

  date:                  612.6ms +/- 2.2%
    format-tofte:        368.6ms +/- 3.9%
    format-xparb:        244.0ms +/- 2.3%

  math:                  597.8ms +/- 2.7%
    cordic:              244.6ms +/- 4.3%
    partial-sums:        242.8ms +/- 5.3%
    spectral-norm:       110.4ms +/- 2.6%

  regexp:                463.4ms +/- 8.7%
    dna:                 463.4ms +/- 8.7%

  string:               1479.8ms +/- 6.7%
    base64:              158.2ms +/- 11.5%
    fasta:               337.4ms +/- 4.5%
    tagcloud:            295.4ms +/- 6.1%
    unpack-code:         481.4ms +/- 13.2%
    validate-input:      207.4ms +/- 10.8%


Opera benchmark:
Code:

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

  3d:                   1010.6ms +/- 8.5%
    cube:                308.2ms +/- 6.6%
    morph:               398.8ms +/- 11.8%
    raytrace:            303.6ms +/- 7.2%

  access:               1399.0ms +/- 5.2%
    binary-trees:        118.6ms +/- 7.9%
    fannkuch:            707.6ms +/- 5.0%
    nbody:               327.0ms +/- 2.5%
    nsieve:              245.8ms +/- 14.9%

  bitops:               1429.2ms +/- 13.0%
    3bit-bits-in-byte:   159.2ms +/- 10.4%
    bits-in-byte:        307.4ms +/- 61.6%
    bitwise-and:         655.8ms +/- 0.8%
    nsieve-bits:         306.8ms +/- 3.6%

  controlflow:           189.4ms +/- 60.4%
    recursive:           189.4ms +/- 60.4%

  crypto:                585.8ms +/- 4.8%
    aes:                 267.8ms +/- 3.3%
    md5:                 157.6ms +/- 3.3%
    sha1:                160.4ms +/- 12.0%

  date:                 1150.0ms +/- 5.5%
    format-tofte:        443.4ms +/- 3.0%
    format-xparb:        706.6ms +/- 7.4%

  math:                  865.0ms +/- 9.5%
    cordic:              367.6ms +/- 5.5%
    partial-sums:        319.2ms +/- 19.0%
    spectral-norm:       178.2ms +/- 4.5%

  regexp:               1394.6ms +/- 4.8%
    dna:                1394.6ms +/- 4.8%

  string:               2578.4ms +/- 4.7%
    base64:              271.6ms +/- 10.5%
    fasta:               499.2ms +/- 5.6%
    tagcloud:            496.4ms +/- 7.2%
    unpack-code:         984.8ms +/- 8.7%
    validate-input:      326.4ms +/- 6.8%


Whoa! I didn't expect opera to run nearly twice slower!
_________________
Filip Gruszczyñski
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum