<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.jbkempf.com/blog/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Yet another blog for JBKempf - Tag - Javascript</title>
  <link>http://www.jbkempf.com/blog/</link>
  <atom:link href="http://www.jbkempf.com/blog/feed/tag/Javascript/rss2" rel="self" type="application/rss+xml"/>
  <description>This is the blog of Jean-Baptiste Kempf. I will share some info about my life, my works and my VideoLAN work</description>
  <language>en</language>
  <pubDate>Mon, 01 Dec 2008 17:30:57 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>[FR]Firefox 3 beta4: ameliorations des performances</title>
    <link>http://www.jbkempf.com/blog/post/2008/03/11/%5BFR%5DFirefox-3-beta4%3A-ameliorations-des-performances</link>
    <guid isPermaLink="false">urn:md5:99e4ab39dd5822386b1f28a91d6a8d55</guid>
    <pubDate>Tue, 11 Mar 2008 13:02:00 +0100</pubDate>
    <dc:creator>JBK</dc:creator>
        <category>Geek &amp; Computer</category>
        <category>Benchmark</category><category>Firefox 3</category><category>Javascript</category>    
    <description>    &lt;p&gt;This is a French translation of &lt;a href=&quot;http://www.jbkempf.com/blog/post/2008/03/11/Firefox-3-beta4%3A-Performances-improvements&quot; hreflang=&quot;en&quot;&gt;this&lt;/a&gt; article on Firefox 3.&lt;/p&gt;


&lt;h2&gt;Firefox 3&lt;/h2&gt;


&lt;p&gt;&lt;a href=&quot;http://www.jbkempf.com/blog/tag/Firefox%203&quot;&gt;Firefox 3&lt;/a&gt; se prépare et approche de la release. La &lt;a href=&quot;http://www.jbkempf.com/blog/tag/beta4&quot;&gt;béta4&lt;/a&gt; et sortie et fonctionne!&lt;/p&gt;


&lt;p&gt;J'ai essayé de faire quelques benchmarks sur la bête, en me focalisant sur les performances &lt;a href=&quot;http://www.jbkempf.com/blog/tag/JavaScript&quot;&gt;JavaScript&lt;/a&gt; et la consommation mémoire.&lt;/p&gt;


&lt;h2&gt;Méthodologie des tests Javascript:&lt;/h2&gt;

&lt;p&gt;Le javascript a été utilisé et testé avec le &lt;a href=&quot;http://webkit.org/perf/sunspider-0.9/sunspider.html&quot; hreflang=&quot;en&quot;&gt; test sunspider javascript &lt;/a&gt; lancé 5 fois, sur un Firefox tout neuf, tout beau.&lt;/p&gt;


&lt;p&gt;Les  tests ont été lancés en utilisant  Firefox 2, Firefox 3 beta3 et Firefox 3 beta 4.&lt;/p&gt;


&lt;p&gt;Les tests ont été lancés sous Windows XP et Linux, en utilisant 3 machines différentes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Thinkpad T61p Core2 Duo 7500, avec 2GB de RAM&lt;/li&gt;
&lt;li&gt;Dell Pentium 4 3,4 Ghz, avec 1GB de RAM&lt;/li&gt;
&lt;li&gt;HP Celeron 2Ghz, avec 512 de RAM&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Résulats des tests Javascript&lt;/h2&gt;

&lt;p&gt;Ces résultats sont une moyenne des 5 résultats de chaque test..&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Les résultats montre une accélération nette allant de x3 à x5 en passant de Firefox 2 à Firefox 3!&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;En ne prenant en compte que la migration Firefox 3 beta3 à Firefox 3 beta4, on atteint entre x2 et x3!&lt;/p&gt;


&lt;p&gt;Je ne vais détailler que les résultats moyens sur la machine la plus lente et la plus rapide, sous Windows XP afin de ne pas rallonger ce post.&lt;/p&gt;


&lt;h3&gt;Machine la plus rapide&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Firefox 2&lt;/em&gt; : &lt;strong&gt;15688.1ms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Firefox 3 beta3&lt;/em&gt; : &lt;strong&gt;10016.8ms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Firefox 3 beta4&lt;/em&gt; : &lt;strong&gt;5158.4ms&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Speedup&lt;/em&gt; : 304%&lt;/p&gt;


&lt;h3&gt;Machine la plus lente&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Firefox 2&lt;/em&gt; : &lt;strong&gt;51456.1ms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Firefox 3 beta3&lt;/em&gt; : &lt;strong&gt;27556.2ms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Firefox 3 beta4&lt;/em&gt; : &lt;strong&gt;10923.8ms&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Speedup&lt;/em&gt;: 471%&lt;/p&gt;


&lt;h2&gt;Méthodologie des tests mémoire&lt;/h2&gt;


&lt;p&gt;Sous Windows XP et Linux, j'ai ouvert un Firefox tout neuf et ouvert 4 onglets:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;lemonde.fr&lt;/li&gt;
&lt;li&gt;www.nytimes.fr&lt;/li&gt;
&lt;li&gt;slashdot.org&lt;/li&gt;
&lt;li&gt;pcinpact.com&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ensuite j'ai refermé le browser et ouvert beaucoup d'onglets (20).&lt;/p&gt;


&lt;p&gt;J'ai surveillé la consommation mémoire  une fois qu'elle se soit stabilisée.&lt;/p&gt;


&lt;h2&gt;Résultats des benchmarks mémoire&lt;/h2&gt;


&lt;p&gt;Je n'ai pas été impressionné par les résultats, car j'ai trouvé que Firefox 3 beta 4 consomme environ &lt;strong&gt;10% de plus&lt;/strong&gt; en mémoire que  Firefox2 sous Windows et Linux en utilisant le premier test sur la machine la plus rapide. (56Mo vs 50.5Mo).&lt;/p&gt;


&lt;p&gt;Dans le deuxième tests, avec tous les onglets, la mémoire est environ identique, mais pas moindre...&lt;/p&gt;


&lt;p&gt;Par contre, en utilisant Firefox 3 pendant longtemps, je n'ai pas eu d'explosion de la consommation mémoire à 400Mo ou plus. Je suis en train de bosser à essayer de reproduire ce leak de Firefox 2.&lt;/p&gt;


&lt;h2&gt;Conclusion&lt;/h2&gt;


&lt;p&gt;Firefox 3 est beaucoup plus rapide dans sa gestion du Javascript, un peu mieux dans sa gestion de la mémoire (consomme plus avec peu d'onglets mais semble leaker un peu moins) et dans l'ensemble semble plus rapide (peut être juste un feeling).&lt;/p&gt;


&lt;p&gt;Selon mes tests, Firefox 3 est plus rapide qu'Opera, que IE7/IE8beta1 dans sa gestion du Javascript.&lt;/p&gt;


&lt;p&gt;Moralité: &lt;em&gt;Utilisez Firefox 3&lt;/em&gt;, c'est que du bon.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.jbkempf.com/blog/post/2008/03/11/%5BFR%5DFirefox-3-beta4%3A-ameliorations-des-performances#comment-form</comments>
      <wfw:comment>http://www.jbkempf.com/blog/post/2008/03/11/%5BFR%5DFirefox-3-beta4%3A-ameliorations-des-performances#comment-form</wfw:comment>
      <wfw:commentRss>http://www.jbkempf.com/blog/feed/atom/comments/124</wfw:commentRss>
      </item>
    
  <item>
    <title>Firefox 3 beta4: Performances improvements.</title>
    <link>http://www.jbkempf.com/blog/post/2008/03/11/Firefox-3-beta4%3A-Performances-improvements</link>
    <guid isPermaLink="false">urn:md5:e45716666fe3d691fe00fb0270134ced</guid>
    <pubDate>Tue, 11 Mar 2008 12:22:00 +0100</pubDate>
    <dc:creator>JBK</dc:creator>
        <category>Geek &amp; Computer</category>
        <category>Benchmark</category><category>beta4</category><category>browser</category><category>Firefox 3</category><category>Javascript</category>    
    <description>    &lt;h2&gt;Firefox 3&lt;/h2&gt;


&lt;p&gt;&lt;a href=&quot;http://www.jbkempf.com/blog/tag/Firefox%203&quot;&gt;Firefox 3&lt;/a&gt; is in the works, approaching the release. The &lt;a href=&quot;http://www.jbkempf.com/blog/tag/beta4&quot;&gt;beta4&lt;/a&gt; is out and runs.&lt;/p&gt;


&lt;p&gt;I tried to benchmark it a bit, especially on &lt;a href=&quot;http://www.jbkempf.com/blog/tag/JavaScript&quot;&gt;JavaScript&lt;/a&gt; performance and memory consumption.&lt;/p&gt;




&lt;h2&gt;Javascript Testing: Methodology&lt;/h2&gt;

&lt;p&gt;The javascript has been used with the &lt;a href=&quot;http://webkit.org/perf/sunspider-0.9/sunspider.html&quot; hreflang=&quot;en&quot;&gt;sunspider javascript  test &lt;/a&gt; that was run 5 times, on freshly installed firefox.&lt;/p&gt;


&lt;p&gt;The tests were run using Firefox 2, Firefox 3 beta3 and Firefox 3 beta 4.&lt;/p&gt;


&lt;p&gt;The tests were done on Windows XP and Linux, using 3 different machines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Thinkpad T61p Core2 Duo 7500, with 2GB of RAM&lt;/li&gt;
&lt;li&gt;Dell Pentium 4 3,4 Ghz, with 1GB of RAM&lt;/li&gt;
&lt;li&gt;HP Celeron 2Ghz, with 512 of RAM&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Javascript Testing:  Results&lt;/h2&gt;

&lt;p&gt;Those results are an average of the complete 5 times tests.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;The results show a &lt;em&gt;5x&lt;/em&gt; to &lt;em&gt;3x&lt;/em&gt; speedup in Javascript performance from Firefox 2 to Firefox 3!&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;From Firefox 3 beta 3 to Firefox 3 beta 4, the speedup is between 2x and 3x.&lt;/p&gt;


&lt;p&gt;I will detail the results for the fastest and the slowest machine on Windows.&lt;/p&gt;


&lt;h3&gt;Faster machine&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Firefox 2&lt;/em&gt; : &lt;strong&gt;15688.1ms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Firefox 3 beta3&lt;/em&gt; : &lt;strong&gt;10016.8ms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Firefox 3 beta4&lt;/em&gt; : &lt;strong&gt;5158.4ms&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Speedup&lt;/em&gt; : 304%&lt;/p&gt;


&lt;h3&gt;Slower machine&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Firefox 2&lt;/em&gt; : &lt;strong&gt;51456.1ms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Firefox 3 beta3&lt;/em&gt; : &lt;strong&gt;27556.2ms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Firefox 3 beta4&lt;/em&gt; : &lt;strong&gt;10923.8ms&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Speedup&lt;/em&gt;: 471%&lt;/p&gt;


&lt;h2&gt;Memory Benchmark: Methodology&lt;/h2&gt;


&lt;p&gt;On windows XP and Linux,  I opened a fresh browser and opened&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;lemonde.fr&lt;/li&gt;
&lt;li&gt;www.nytimes.fr&lt;/li&gt;
&lt;li&gt;slashdot.org&lt;/li&gt;
&lt;li&gt;pcinpact.com&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then I reclosed the browser and opened many many tabs.&lt;/p&gt;


&lt;p&gt;I monitored the &lt;em&gt;stabilized&lt;/em&gt; memory consumption.&lt;/p&gt;


&lt;h2&gt;Memory Benchmark: Results&lt;/h2&gt;


&lt;p&gt;I wasn't impressed by the results, because I have found that Firefox 3 beta 4 takes around &lt;strong&gt;10% more&lt;/strong&gt; memory than Firefox2 on Windows and Linux on the first test on the faster machine (56MB vs 50.5MB).&lt;/p&gt;


&lt;p&gt;On the second test, with many more tabs, I have found that the memory is usually around the same, but not really better.&lt;/p&gt;


&lt;p&gt;On a long way use, I didn't have any huge memleaks with Firefox using 400MB of RAM quite suddenly, but I am working on it to make it do that too :D&lt;/p&gt;


&lt;h2&gt;Conclusion&lt;/h2&gt;


&lt;p&gt;Firefox 3 is way faster in Javascript handling, a bit better in memory consumption, (it takes more memory but seems to not leak like a madman) and overall it seems faster to load pages (just a feeling), compared to Firefox 2.&lt;/p&gt;


&lt;p&gt;According to my tests, it is faster than IE7/IE8beta1, Opera 9.5 in Javascript performance.&lt;/p&gt;


&lt;p&gt;Then &lt;em&gt;GO and USE it.&lt;/em&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.jbkempf.com/blog/post/2008/03/11/Firefox-3-beta4%3A-Performances-improvements#comment-form</comments>
      <wfw:comment>http://www.jbkempf.com/blog/post/2008/03/11/Firefox-3-beta4%3A-Performances-improvements#comment-form</wfw:comment>
      <wfw:commentRss>http://www.jbkempf.com/blog/feed/atom/comments/123</wfw:commentRss>
      </item>
    
</channel>
</rss>