Firefox 4's JavaScript Now Faster Than Chrome's 352
An anonymous reader writes "Firefox 4's JavaScript engine is now faster than V8 (used in Chrome) and Nitro (used in Safari) in the SunSpider benchmark on x86. On Mozilla's test system Nitro completes the benchmark in 369.7 milliseconds, V8 in 356.5 milliseconds, and Firefox 4's TraceMonkey and JaegerMonkey combination in 350.3 milliseconds. Conceivably Tech has a brief rundown of some benchmark figures from their test system obtained with the latest JS preview build of Firefox 4: 'Our AMD Phenom X6-based Dell XPS 7100 PC completed the Sunspider test with the latest Firefox JS (4.0 b8-pre) build in 478.6 ms this morning, while Chrome 8.0.560.0 clocked in at 589.8 ms.' On x86-64 Nitro still has the lead over V8 and TraceMonkey+JaegerMonkey in the SunSpider benchmark."
FF4 (Score:5, Funny)
FF4 crashes when I try to open Gmail since the change. This makes it slower for opening my mail.
1. connect to gmail with FF4
2. FF4 crashes.
3. Open chrome and go to gmail
4. ??? (train monkeys to joust)
5. Profit
Re: (Score:2)
Re:FF4 has some pretty serious memory leaks still, (Score:5, Informative)
It's not a memory leak problem. This is pretty obvious when, after weeks of continuous use, Firefox's memory usage remains more or less constant.
However, Firefox does have a memory fragmentation problem. After continuous use, the program will become noticeably slower on certain tasks which it previously had no issues with. This is particularly the case if you're visiting more intensive webpages. Often you're better just restarting it after the first 100 or so tabs.
Re: (Score:2, Insightful)
Fragmentation can certainly cause a program to slow down. If memory is fragmented significantly, you're going to see a lot more page faults as memory is accessed. With an OS like Windows that's aggressive in moving memory out to disk things will certainly slow down.
Re: (Score:2, Interesting)
Re: (Score:2)
I love competition! I don't have to bother with being called a troll for reporting a problem, I can just switch to a better browser like Chrome! I do miss my tree-style tabs, though.
FF4's JS is faster? That's nice. Maybe that'll help to make up for the abysmal amount of time it takes to even LAUNCH on my system.
Re: (Score:3, Informative)
Re:FF4 has some pretty serious memory leaks still, (Score:5, Insightful)
I think they forget that page caching is not a leak.
Re: (Score:3, Insightful)
Re: (Score:2)
I can see them just fine. I've had my firefox consuming over 2GB of ram before, with the only tab open being blank at the time. I'm now in the habit of restarting my firefox many times per day, so I can't say for sure if it's still currently a problem or not, but I typically "remember" to kill firefox whenever my work machine starts to get slow out of habit. My home machine rarely cares because it's got 12GB of ram, and even 2GB is really nothing to it.
Re: (Score:2)
Re: (Score:2)
Home: Windows 7 Home Premium 64-bit SP1, EVga X58 3X SLI Motherboard, Intel 930 CPU, 12GB of kingston DDR3 Hyper-X, PNY NVidia 8800Gtx (Replaced a dead NVidia 295GTX temporarily - waiting for the NVidia 580 to come out), Intel 80GB Gen 2 SSD Boot Drive (74GB S:), Corsair H50 Water CPU cooler, 2 Seagate 1TB 7200.12 drives (954GB Raid-0 (683GB C:, 247GB P:), and 477 GB Raid-1 (465GB U:)), and 2 Seagate 320GB 7200.10 drives (305GB Raid-1 (Backup)), 8GB OCZ RallyX Thumbdrive (7.47GB R:) in a cooler master HAF-X
Re: (Score:2)
Sorry, the Office machine has 4Gb of RAM (3.4GB useable) and is running 32-bit version of XP.
Re: (Score:2)
It's very easy to reproduce these problems: 1. Download the Firefox installer for your platform from mozilla.org. This could be the latest 3.6 release, or the latest 4.0 beta. 2. Install it. Make sure you do not install any sort of plugins or extensions. We want a clean, default Firefox installation. 3. Browse the web for 30 minutes. Visit a variety of sites, including Slashdot, Facebook, and some of the popular news sites.
I've done that. Several times over the years. But:
4. Use top or the Task Manager or whatever your system offers to see the memory usage of the Firefox-related processes. Notice that they'll be in the gigabytes.
didn't happen. Only time was with FF4 b5/b6 memory leak because of a bug in their new audio API. Chrome OTOH happily ocupies several hundred MB RAM after just 3-4 hours of usage.
Re: (Score:2)
Re: (Score:2)
Admittedly, I haven't followed your instructions exactly. I have Firefox 3.6.11 from the Ubuntu repositories for 10.10, rather than what one would retrieve from mozilla.org. Also, I have several add-ons active, though only Adblock Plus would potentially filter out things that might add to memory leakage--and wouldn't more plugins use more RAM? ps output shows that it's been running for an hour I have twelve tabs open, including Facebook, Yahoo! mail, Instapundit and New World Notes, both of which tend to ha
Re: (Score:2)
Re: (Score:2)
You are entitled to that opinion, but many people think otherwise. I want my browser to be optimized primarily for features, speed and latency, not memory usage. I can buy more RAM if I need to.
Re: (Score:3, Informative)
Your operating system should be dealing with that, not the browser.
Re: (Score:3, Insightful)
You're an idiot. There's no strict definition of what a beta release is or how often it can be released and, since everybody has a different way of working and putting out releases, there's no way to compare the number of betas to anybody else that produces any meaningful statistic.
Re: (Score:3, Interesting)
I would say quite a few have a beta 6. You are probably used to seeing commercial beta releases which you only see the public betas. I've seen semi-public betas get into the 30's.
6 milliseconds! Wheee!!! (Score:5, Funny)
I'll be able to do one more mouse click every three weeks or so.
Re: (Score:2, Insightful)
Having good javascript runtimes will help the web go to the next level. This is useful for the gaming industry to tap into the non-gamers and casual gamers pool, e.g. this this port of quake that is able in javascript as a proof of concept:
http://code.google.com/p/quake2-gwt-port/
But this can also be useful for non games usage: applications such as google street view and google earth could soon be embedded in regular webapps without the need for flash plugin for instance.
Re:6 milliseconds! Wheee!!! (Score:4, Insightful)
I'm not looking forward to 'the next level' of the web. It will only have more dancing and blinking crap on the page.
Want to make you site fast? You don't need Ajax, Flash, or any other "Hype du Jour". Toss it all out, stick with plain old HTML and make it look decent with simple CSS. Wham, your site is now an order of magnitude faster. You don't need those five load balancers and those twenty application servers just to serve up a page that could easily run on one server when you actually had a clue.
The Web is rapidly going the way of television: once it was about content, then ads came 'to pay for the content' and now it is all ads with the absolute minimum of content. Spreading a two paragraph article over eight pages just to have more ad impressions. Six pictures that just have to be in a slide show. Ads. Profit. Bottomline.
Get me a bucket, I'm going to hurl...
Re:6 milliseconds! Wheee!!! (Score:5, Interesting)
I'm not looking forward to 'the next level' of the web. It will only have more dancing and blinking crap on the page.
Want to make you site fast? You don't need Ajax, Flash, or any other "Hype du Jour". Toss it all out, stick with plain old HTML and make it look decent with simple CSS. Wham, your site is now an order of magnitude faster. You don't need those five load balancers and those twenty application servers just to serve up a page that could easily run on one server when you actually had a clue.
Want to view content? I agree with your theme in that case, and there are plenty of sites out there that are designed around just that: simple presentation-focused static content display.
However, most of the impetus for "Web 2.0" has not been around content viewing, but rather about utilizing the web browser as an effective, cross-platform thin client for applications. Now, granted, some sites are (ab)using AJAX and whatnot for purposes ranging from nefarious to just annoying, and there is some spillover from the dynamic application-based web pages into the static information-based ones, but it's generally kept in balance by the ease with which people can transition to a competing website if yours is too annoying.
Recent advancements in Javascript execution speed are oriented towards polishing the thin client experience and capabilities. If fast Javascript execution becomes ubiquitous, sites can design much more successful thin clients because they can take that execution speed for granted. It's not all just flashing lights and annoying ads: take a look at the stunning Deluge BitTorrent Client's Web UI [deluge-torrent.org] to see how nicely "Web 2.0" can be used.
Re: (Score:2)
Now, granted, some sites are (ab)using AJAX and whatnot for purposes ranging from nefarious to just annoying ... it's generally kept in balance by the ease with which people can transition to a competing website if yours is too annoying
So what keeps you here?
Re: (Score:2)
Maybe he enable the "Slashdot Classic Discussion System" like I did? It's right there on the preferences.
Re: (Score:2)
I know that; been using it until quite recently. How I think, now, that the AJAX one is better doesn't dispel its abuses (and you know, some parts of the site simply do not work without js anymore)
Re: (Score:2)
Re: (Score:2)
Cool, the luddites are finally on board with CSS!
Re:Lets move to gopher or whatever (Score:3, Insightful)
Tired of http? Lets move on to gopher..
Re:6 milliseconds! Wheee!!! (Score:5, Insightful)
1) Nobody uses load balancers and multiple app servers because they're serving "dancing and blinking crap" (Flash and JS heavy) sites. Those things slow down people's browsers, not the servers. Heavy server resources are needed when you need lots of server side processing, which generally comes from delivering customized pages to every user (ie you can't just cache everything). Furthermore, using AJAX helps REDUCE server load, by only requesting snippets of content, instead of complete page requests; you think GMail would be faster and less server-intensive if every click required a full page response? How about Google Maps?
2) You seem to be under the impression that developers actually design sites. Maybe in some tiny one-man-show setup, but in the real world a UX/IA specialist designs the user experience, a designer does the visuals, the client signs off on it, and then the developer makes it all happen using whatever tools and techniques are necessary. They don't have the option to "toss it all out" and make it as simple as they like, much as they'd like to. Heck, I have to fight to make sure there's accessible fallback versions of the fancy JS-enhanced UIs everyone designs these days. "Throw it all out"? You live in a dream world buddy, or you do work of extremely limited scope.
In short, your post is just "get off my lawn!". More and more clients demand rich user experiences, and this will continue to grow. Welcome to 2010.
Re: (Score:2)
Faster javacript is also good when you visit Websites that were written by your Redneck third cousin who is also your wife (i.e. none too bright):
For example NBC.com's feedback site made my firefox freeze for about 10 seconds when I visited it yesterday. 6ms faster response on a "good" javascipt site might translate to a full second faster on a poorly-coded site..... i.e. waiting 9 seconds to "unfreeze" nbc.com instead of 10 seconds. For me that would make it worth switching from Chrome to Firefox.
Re: (Score:2)
>>>worth switching from Chrome to Firefox
Or SeaMonkey which I've been trying these last few days. It has the same engine as FF4 but with far less bloat (~150,000 vs. ~300,000 kilobytes). Copied from another guy's post yesterday:
Q: Why not use Firefox instead of Seamonkey?
A: "Yes, Firefox web browser, Thunderbird email and news client, Sunbird Calendar, and NVU HTML editor are useful programs. The Mozilla/SeaMonkey suite, with all of this functionality, is about 11M compressed, whereas the separa
Re: (Score:2)
Seamonkey definitely feels snappier than FF every time I try it, and able to gracefully withstand much heavier browsing (why? Less reckless code in UI / more cautious with changes there / doesn't have to accommodate extensions? UI which, running also via js, isn't the most speedy type by design...); a bit funny, considering the stated goals at the start of Phoenix effort.
Re: (Score:2)
Are you sure that still applies? Since 2006 Mozilla launched XULRunner, which is shared between the applications, including Seamonkey, and provides the base functionality (all the XPCom libraries, if I'm not mistaken, are in XULRunner).
Also, I don't use Thunderbird nor NVU and Sunbird has been deprecated, rendering the "sharing functionality" less useful.
Re: (Score:2)
Re: (Score:2)
>>>I would just turn off JS for that site.
You can't do that if your browser is frozen for ten seconds. You have to sit and wait.
Quake II was released in 1997. (Score:2, Insightful)
Quake II was released in 1997. That's 13 years ago. At the time of its release, Intel's top-end CPU was the Pentium II running at 233 MHz, and even that had only just been released. Most Quake II players were still using Pentium or high-end 486 systems.
Today, a decade and a half later, we have cell phones that are many hundreds of times faster than those Pentium and Pentium II systems, and desktop systems that are thousands or tens of thousands of times more powerful. Yet with all that raw processing power,
Re: (Score:3, Interesting)
There is a general trend to higher level (which are bigger/slower) languages, look at the current fascination with ruby...
The general trend has been that while hardware gets faster, software gets slower so the overall user experience remains the same... If you want a laugh, install some really old software on new hardware, i ran windows 3.0 on a p133 with 32mb a few years ago and it booted almost instantly compared to the 386/486 machines it was typically used on.
Re: (Score:3, Insightful)
Hyperbole much? Cell phones aren't many hundreds of times faster than a Pentium or a P2, and desktops aren't thousands, much less tens of thousands of times faster. Hell, the clock is only about 10x faster (2GHz to 3GHz) -- where exactly do you think a 100- to 1000-fold increase in per-clock performance is coming from?
For the record, the Quake 2 software renderer apparently does about 250 fps at 800x600 on todays top-of-the-line Intel CPUs. I still remember how Quake1 was choppy in software mode even at pai
Re: (Score:3, Informative)
Today, a decade and a half later, we have cell phones that are many hundreds of times faster than those Pentium and Pentium II systems,
A hundred times faster than a 233 MHz processor? That's 23 GHz. What phone has a 23 GHz processor?
Re: (Score:2)
To be totally fair, John Carmack didn't work on JavaScript yet he did design Quake II's rendering engine, and he's kind of brilliant.
Also, JS for 3D games is kind of silly and a pipe dream, but that doesn't make the language useless. Moderate JS use can do a lot for page usability, and AJAX is pretty cool with lots of applications.
Re: (Score:2)
What Mozilla giveth, Slashcode taketh away. (Score:5, Funny)
Why do I have a feeling that Slashcode's terrible AJAX interface is going to get even worse in the near future?
This is quite possibly the lamest e-peen measuring contest ever.
Re:What Mozilla giveth, Slashcode taketh away. (Score:5, Funny)
Yea, what is even more irritating is they keep subjecting us to it. Even thought the boxes stay checked I have had to go to my user preferences and turn on and then back off the new comment system several times in the last two weeks. I hate it, based on the comments I read here on Slashdot just about everyone else hates it two. Some of them are just Luddites that want the Slashdot of 1997 period but the rest of us just hate because its an awful way to browse and read comments, awful (GET IT TACO AWFUL) so many other sites have gotten it write, if you feel he need to update the look and feel of Slashdot go look at what others are doing!
Re:What Mozilla giveth, Slashcode taketh away. (Score:4, Insightful)
I actually like d2. I hate loading new pages for comments below my threshold. I just wish d2 worked better on iOS.
Re: (Score:3, Informative)
I hate the new comments system, too.
Shit, I thought that I was the only person that happened to. I even had to log out/in to get the preference change to "stick".
Re: (Score:2)
I am glad I am not the only one that *HATES* Slashdot's cutesy Ajax stuff. Every time they make a change, I have to go search all over the place to find a way to TURN IT BACK OFF so I can use the logical, easy, fast, simple, efficient comment system of the past. UG!
Re:What Mozilla giveth, Slashcode taketh away. (Score:4, Insightful)
I think Slashdot's AJAX is pretty poor, certainly not in line with what some of the better AJAXy sites do. That said, and even though I also keep having to look for stuff, I really love being able to things like in-line previewing and replying. I used to open the reply link in another tab, but that's a bad workaround. And changing the treshold without reloading the whole page is also nice, as is opening up "titles only" posts.
thats great but.... (Score:2, Insightful)
Re: (Score:2, Insightful)
Given that a lot of the browser is implemented in JavaScript, it should also make the browser itself faster.
Re: (Score:3, Informative)
Note the times for this article, however. The benchmarks that they are running are taking less than half a second from loading the JavaScript code to finishing running. That's a fairly good test for typical web pages, but it's a pretty pointless benchmark. Any script that does that little will run at an adequate speed with a fairly naive bytecode interpreter.
The things that really benefit from JavaScript speed are long-running scripts. Consider something like a Flash game that runs for minutes at a t
Re: (Score:2, Funny)
Your sig:
This will not work unless you give us your password. :-)
Re: (Score:2)
That will probably never truly happen.
When IE was 'integrated' into Windows - it caused an anti-trust lawsuit.
Also, when you have browsers which are meant to work across different operating systems (firefox is an example, chrome/chromium and opera others) - then doing so becomes significantly more difficult, or other OSes will get left out. Firefox's GPU acceleration works only in Windows if I remember
Re: (Score:2)
Firefox GPU acceleration is supposed to work on all platforms, it works very well on linux for me but doesn't seem to work at all on OSX (on linux i get 90+ fps on the mozilla hardware acceleration stress test, i get 3fps on osx)
Re: (Score:2)
I hear this argument a lot, that people have to restart their browsers once a day. Why is that a problem?
Because some of us do actual work with our browsers. At the moment I have about 30 tabs open, many of which are on password protected intranet sites, or are otherwise session-specific, and restarting the browser (even with session management) means I'll have to reopen all of these. That'd take probably 20-30 minutes out of my day, which is time I'd rather not have to spend.
Re: (Score:2)
Fortunately I don't need to restart the browser daily; maybe it's because I use AdBlock and NoScript.
I use those plugins too (and now RequestPolicy too) and my problem is not having to restart my browser often enough.
I am a tab hoarder and I used to rely on firefox crashes to force me to "throw out" unneeded tabs.
But on both ubuntu 10.04 and WinXP I can go for well over a month without crashing or hanging firefox 3.6.x.
It's gotten to the point where my firefox will grow well to over 3GB - not because of a memory leak, just because I've got hundreds of tabs lying around.
Who would have thought that too much
Benchmarks (Score:4, Insightful)
I am sure this will set off a whole series of arguments over benchmarks, tuning, fairness, etc. But from this article I will just take this: I don't care which one is fastest to the few dozen milliseconds, they are probably all in the same "class" now. Everybody wins. (I can sorta understand not including IE, but wonder why they didn't include Opera?)
Now that Javascript is so much faster, perhaps the browsers can focus on giving some type of automated/intelligent control over when it is used and how so older machines won't come to a CRAWL because of all the cutesy animation and junk spread over most big sites now. (And no, NoScript doesn't cut it- too complicated for most users, not automatic, too easy to break Javascript that is actually needed, etc). Suppress time-delayed actions, disable tight loops, throw artificial delays in loops under user control, visually tag elements to manually "play" on-demand only or stop after X seconds. I know, keep dreaming.
Re: (Score:2)
I am sure this will set off a whole series of arguments over benchmarks, tuning, fairness, etc. But from this article I will just take this: I don't care which one is fastest to the few dozen milliseconds, they are probably all in the same "class" now. Everybody wins.
I agree. Even IE 9 should be good enough by now, to not much JS that much of a bottleneck when loading web pages, even pretty JS heavy ones.
Also, as for tuning, there's no secret that Mozilla has tuned Firefox 4 particularly to win Sunspider and V8.
Re: (Score:2)
Re: (Score:3, Insightful)
Flashblock only stops Flash, not Javascript animation. First it was animated GIF, then Flash, and now it is Javascript animation. Animated GIF and Flash are both easy to control. But Javascript animation is a whole different story. And although Adblock helps, a lot of the stuff is not ads.
Web site designers don't seem to give a damn how much horsepower their site need or use. It is apparent when you try to browse the web using an older machine, or a smartphone. And on a portable device, all that extra
Re: (Score:2)
>You *could* get the NoScript extension. It lets you disable what sites can/can't use scripting.
And from my original posting:
"(And no, NoScript doesn't cut it- too complicated for most users, not automatic, too easy to break Javascript that is actually needed, etc)."
NoScript doesn't really manage stuff, it is just a series of allow/deny logic. It requires a lot of user interaction, knowledge, and time. Most people have none of the three and would just end up "breaking" most sites. It is not the soluti
Re: (Score:2)
>You *could* get the NoScript extension. It lets you disable what sites can/can't use scripting.
And from my original posting:
"(And no, NoScript doesn't cut it- too complicated for most users, not automatic, too easy to break Javascript that is actually needed, etc)."
NoScript doesn't really manage stuff, it is just a series of allow/deny logic. It requires a lot of user interaction, knowledge, and time. Most people have none of the three and would just end up "breaking" most sites. It is not the solution that I had in mind.
I'll admit I understand what it's doing so it's probably a bit easier for me than most users, but I don't see what's so hard about clicking a button and saying "allow scripting" when you need those scripts to work (which is pretty easy to tell, because if you find part of the site not working, it's an obvious guess that it depends on a script...).
Re: (Score:2)
Seconded! NoScript breaks too many pages and it takes to much fiddling to figure out which scripts to allow. I'm constantly faced with broken pages that are importing javascript from a dozen different places and it's neigh impossible to figure out which ones to allow. Right now FlashBlock plus a custom AdBlock blacklist does a good job of stopping 99% of annoying adds, but as things move from Flash to HTML 5, I'm sure that will change.
Re: (Score:3, Interesting)
I am sure this will set off a whole series of arguments over benchmarks, tuning, fairness, etc. But from this article I will just take this: I don't care which one is fastest to the few dozen milliseconds, they are probably all in the same "class" now. Everybody wins. (I can sorta understand not including IE, but wonder why they didn't include Opera?)
Now that Javascript is so much faster, ....
Sunspider is a particularly bad benchmark. It was developed before any of the browsers had JITs. V8 is a bit better but still doesn't really stress the browser with the kinds of tasks that are still slow in JS. Mozilla's Kraken benchmark, http://krakenbenchmark.com/ [krakenbenchmark.com] does that. If you want to see why we still have a long ways to go, compare the speeds all browsers get on the Kraken tests with compiled code implementations of those features. Firefox leads the way on much of that, but it's still slow compared
Re: (Score:2)
That is a really crappy attitude. You are completely ignoring:
1) Older machines
2) Phones
3) Portable devices/pads
4) Thin clients
5) People who don't want to see such crap or who are severely distracted/annoyed by it.
And it doesn't matter HOW fast your machine is- good design is good design. Making assumptions about what device the user is using and not caring, or just not caring at all, is bad design.
Re: (Score:2)
Re: (Score:2)
>Isn't competition so much nicer than having a monopoly one one browser that hasn't been updated in years?
Oh yes. It is wonderful to have multiplatform, competition, and standards based. Throw in some open source and community driven stuff too and it is really nice!
The Best Java Script Engine Available... (Score:2, Informative)
Thanks for the hard work (Score:5, Interesting)
As a developer I completely understand the dislike of the "everything in a browser" attitude, but we need to look beyond that. The next version of ECMAScript will give us the security we've been wanting, and this round of browsers will give us the speed we need. Enabling universal, secure process level interaction between machines is the goal. You can think of it as widgets,
Now give me an 100% on the Acid3 test please, that way I'll have multiple tools to leverage against my boss next time he asks me to make a web app IE6 compatible.
Re: (Score:2)
Call your Microsoft reps, and tell him about your boss, he will take him to golf and you will use ie9 !
Re: (Score:2)
exactly, they need to spend more time on the green with PHBs if they want a larger corporate adoption.
Re: (Score:2)
Seeing that Firefox on a few weeks ago was starting to lag pretty severely behind Chrome, I applaud and thank the Firefox team for their hard work. This is also a boon for their technique, the so-called "shotgunning" method of pushing through compilation the old way if it will complete faster than the optimizations. I had become afraid I might have to move to Chrome, looks like that won't be necessary.
You don't seem to understand how JaegerMonkey works, or what the SunSpider benchmark actually tests. The entire speedup here can be attributed to Firefox not compiling JS "the old way." Instead of defaulting to bytecode like they were previously, they always emit compiled instructions via Nitro's assembler. And given how the SunSpider benchmark works, all that is being tested is their parsing plus Nitro's assembly. The SunSpider benchmark doesn't even run long enough for Mozilla's tracing engine to be a sig
Re:Thanks for the hard work (Score:4, Informative)
There are several things wrong here:
1) Spidermonkey still compiles the AST to bytecode.
2) An assembler does just that: assembles. This means a 1-1 mapping of some other sort of
representation of the exact machine instructions you want into actual bits in memory.
There are no smarts here and no optimization going on; the only question is how fast
you generate those bits in memory; an ideal assembler does this as fast as possible
and without using too much memory. Now you have to generate assembly (or whatever
representation the assembler takes as input) for it to assemble. That's the job of
the compiler. JaegerMonkey takes the bytecode generated in step 1 and compiles it,
passing the output to the assembler borrowed from Nitro. This compilation step is
where (some of) the optimization takes place, and this is not code shared with Nitro.
3) Tracemonkey is most certainly useful for Sunspider; just not as useful as for other
things. See, for example, http://arewefastyet.com/?machine=6 [arewefastyet.com] where the purple line is
below the black one solely because of Tracemonkey. Alernately, see
https://bug580468.bugzilla.mozilla.org/attachment.cgi?id=482609 [mozilla.org] where you can see the
scores on each sunspider subtest as of a week or so ago; the -m column is JaegerMonkey
without Tracemonkey, -j is Tracemonkey without Jaegermonkey, and -mjp is what's
actually being used now (a combination of the two, with some smarts about deciding
when to use which one).
4) The goal of Kraken is in fact to include anticipated use cases. If you know
anticipated use cases it doesn't include, I'm sure Rob Sayre would love to know what
they are.
Re: (Score:3, Interesting)
I'll try explaining this again. SunSpider doesn't perform sufficient runs to take advantage of the tracing logic. And given the way the test is designed you will actually take a performance hit if you burn many cycles on front-end analysis. So, you consistently hit the unoptimized path where a good implementation uses simple translation logic for emitted instructions, along with a fast and light-weight assembler. (Comparing to YASM is silly, btw, because the needs of real-time JIT are very different from co
and yet Firefox still can't use 1 core... :( (Score:5, Insightful)
Tell me, mr anderson, what good is javascript performance if you are unable to use multiple cores?
I wish someone would get on this and make firefox work with multiple cores better. As it is I use the "|" character in my home page settings to open about 20 tabs-- forums, review sites, slashdot, economics blogs, etc....and firefox slows to a grinding halt for about the 15 seconds (just timed it) it takes to render all those pages.
Chrome does it in about 4 seconds and pegs all 4 of my cores to 100%.
Please Mozilla, I know this would require a serious redesign, but it's seriously needed. Hitching while scrolling up/down because a tab is loading in the background (I make use of middle click to open tabs in the background extensively) is very annoying.
Re:and yet Firefox still can't use 1 core... :( (Score:4, Informative)
Just about any moron can make a new browser window per tab and not have them talking to each other. But it takes a fair amount of work to get them connected enough for performance reasons without causing one tab to crash others.
Re: (Score:2)
>I wish someone would get on this and make firefox work with multiple cores better.
And right after adding multithreading support (which is generally a good thing), PLEASE MAKE SURE to give the user the option to TURN IT OFF (or at least compile without it). In a thin-client environment, Firefox/Web 2.0 is already destroying the application servers. The only thing that limits it from completely ruining them is that the servers are multicore. Once Firefox can take over multiple cores, the game is over :
Interesting? (Score:4, Informative)
I really don't see the point in a posting like this. Its all
My _______ (1) is _______ (2) than yours
with typical choices for (1):
- car
- wife / husband / significant other
- d*ck
- browser
- javascript
- OS
and choices for (2) like:
- faster
- harder
- more expensive
- longer
- more open
- prettier
Now that we have covered all these discussions, can we move on please?
CU, Martin
Re: (Score:2, Funny)
You're just jealous that my wife is harder than yours.
Re: (Score:2)
OK, let's try to fill according to your instructions ...
My wife / husband / significant other is longer than yours.
My d*ck is more expensive than yours.
My javascript is harder than yours.
Hmmm ... somehow doesn't work that well ... :-)
Yeah, but my significant other is more open than yours.
Oh, wait.
Re: (Score:2)
Sure? I heard people bragging about:
- long legs of their girlfriend
- spending money for d*ck enhancements
- less bugs of their js environment
I can only see one use case for faster JS (Score:2, Insightful)
Really, all this focus on faster Javascript puzzles me. JS, used correctly, should be a thin layer of glue, representing only a fraction of the total run time for a browser. The only real use I could begin to see would be if they could apply the same speed-ups to the Actionscript engine within Flash to improve the decoding of Hulu's encryption system - but since all the client sees is the bytecoded form of the decryption, not the AS source, and since this speedup is in the JS in the browser rather than the
Re: (Score:3, Insightful)
Really, all this focus on faster Javascript puzzles me. JS, used correctly, should be a thin layer of glue,
That was the original idea of JS. It's already being used much more heavily in current web apps. But the main point of speeding it up isn't for today's websites, it's so that websites can do entirely new things without bringing the browser to a crawl. Think image processing, online mini-games, and no doubt hundreds of more imaginative uses.
Re: (Score:2)
Think image processing, online mini-games, and no doubt hundreds of more imaginative uses.
All of which would be better done with a native app.
Re: (Score:2)
The sensible answer: Web apps have various advantages over native apps (and of course, various disadvantages). For example, easy collaboration, and no installation or upgrade procedure for the user. There's even a security benefit: if a user wants to play some silly game, it's much safer to run that in a browser than it is for them to download and install something potentially dodgy. Native apps aren't dead, but web apps have a place too, and there's enough reason to expand what they can do.
The other answer
Re: (Score:2)
For example, easy collaboration, and no installation or upgrade procedure for the user.
There's no reason a native app should be any less capable of networking than a web app. Installation is trivial
There's even a security benefit: if a user wants to play some silly game, it's much safer to run that in a browser than it is for them to download and install something potentially dodgy.
There is no security benefit. The browser is not a sandbox. Putting all this capability into javascript increases the attack
Most of Firefox is written in JavaScript. (Score:3, Insightful)
I know, I know, it's damn near impossible to believe, but the Firefox developers voluntarily chose to write a huge portion of Firefox in JavaScript and XML (XUL). The rendering engine and network stack are written in C++, but just about everything else is implemented using JavaScript and XUL, including all of the UI.
This is why JavaScript performance is so important to Firefox. While other browsers didn't make the same mistake, and wrote the bulk of the browsers in a real language like C++, the Firefox deve
Re: (Score:2)
If all you want the browser for is to do the same kind of stuff that we were doing ten years ago, then Javascript "should be a thin layer of glue". And your modern browser should be seen as nothing more than a pimped up version of Lynx.
That is not what I want. The combination of HTML, CSS, Javascript, and big pipes make it possible to write applications that can run on multiple platforms, and (more to the point) be updated across their entire user base by simply uploading the new version to your website.
What about the File API? (Score:2)
Does Firefox support the new File API yet? The same as Chrome and Safari, not the older one which was Firefox-only.
Re: (Score:2)
Oups, I meant the HTML5 file upload part sorry. Firefox 4 is supposed to be compatible with the Chrome and Safari method and drop the method used in Firefox 3.6.
HOW is it faster?!? (Score:2)
I'm tired of looking at benchmark figures. I want blog articles on how these JIT engines work (differently) and WHY one or anther is faster. Or at least why the FF engine is faster than it used to be.
Verified on my sw-only 3D benchmark as well (Score:3, Informative)
Apples to Apples (or Beta to Beta) (Score:2)
Comparing Chrome 8.0.552.11 dev to Firefox 4.0b6 on Sun Spider.
Chrome: 335.6ms +/- 2.8%
Firefox: 543.6ms +/- 2.4%
System: AMD Phenom II 965 w/ 4GB RAM on Win7 Ultimate.
Please stop moaning! (Score:4, Insightful)
Re: (Score:2, Funny)
Well, if it sucks, maybe you should implement a vacuum cleaner with it.
Re: (Score:2)
The question is: are all current browser implementations compatible to each other ?
No. No they aren't. Not all browsers support the same DOM properties. Some have different names for the same data and other just don't support some items. It's a mess to program for every JS implementation.
Re: (Score:2, Informative)
"3. Why isn't Opera/IE/something here?
Right now, the performance tests are run on a Mac, which means no IE. Also the tests rely on a "shell" JS engine that runs in a command line. It doesn't test browsers. We'll change that, eventually."
Re: (Score:2)
Whatever language the game is written in, those bits of the game which run locally on the client as opposed to the server are prone to cheating... Just because a game comes as a precompiled blob doesn't mean it's not possible, plenty of people use such cheats with closed source games all the time.