Keep in mind the Jaegermonkey project, which will greatly improve javascript performance is still under heavy work. So as of today, the javascript performance is still significantly behind chrome. (http://arewefastyet.com/)
That being said, javascript performance currently has little impact on user-perceived speed, and the "Reducing I/O from the main thread", GPU accelerated rendering, and startup/shutdown perf improvements are already causing incredibly noticeable perf gains.
Firefox 4.0 beta 1 is not released yet, but it probably will be within a few days. (There was a candidate build yesterday, but we decided to wait for a second build with some more fixes.) When it is actually released, it will be announced on http://blog.mozilla.com and available from http://mozilla.com/firefox/all-beta.html
The first link you give is to an SVG document, the second is SVG in namespaced XHTML.
SVG (and MathML) is now part of HTML5 so you can put it in HTML documents. Firefox just replace their HTML parser with a new one which is faster, runs on its own thread, understands HTML5 properly and supports SVG inline in HTML as a feature too. This blog post goes into some details:
I don't have very high hopes for Firefox. They promised V8-like speed with 3.5, 3.6, and now they're promising it with 4.0, but they're still more than twice as slow, and have been every single time I have tried them.
The only reason I use Firefox anymore is Firebug. All of my normal browsing occurs in Chrome. Even if they eventually get Firefox's VMs as fast as V8 or SquirrelFish Extreme, the interface is clunky and old and much, much slower than Chrome, and really that's what makes it feel so much faster; Chrome starts immediately, I can move tabs quickly, there's no needless address bar/search bar segregation, and so on. I think I am a permanent Chrome user.
Firefox has had years to catch up to Chrome by this point and their results have been pretty bad, imo. Unless they can get it together, I think that Fx is destined to decline permanently soon.