SlideShare une entreprise Scribd logo
1  sur  14
JavaScript Engine
         Performance
Studierea performantei JavaScript Engine la
                          diferite browsere




                                   Performanta JSE   Cristina Mariniuc
                      08.01.2012
   JavaScript Engine( sau interpretorul JavaScript /
    implementarea JavaScript ) este un software care
    interpreteaza si executa javaScript.

   Exista mai multe utilizari pentru JavaScript
    Engine, insa este cel mai frecvent utilizat in
    browserele web.

   Deoarece JavaScript este folosit frecvent in WEB
    2.0, performanta JavaScript critica pentru toti
    producatorii marilor browsere, incluzand Mozilla
    Firefox, Google Chrome, si Microsoft Internet Explorer



JS Engine
                                                 Performanta JSE   Cristina Mariniuc
                                    08.01.2012
• In continuare vom prezenta implementarile de
   JSE pentru cele mai cunoscute browsere.

 •   Mozilla:
          1.    Rhino
          2.    SpiderMonkey
          3.    TraceMonkey
          4.    JagerMonkey
          5.    IonMonkey
          6.    Tamarin




JS Engines -1
                                            Performanta JSE   Cristina Mariniuc
                               08.01.2012
•   Explorer:
          1.   Chakra
 •   Opera:
          1.   Carakan
          2.   Tuthark
 •   Chrome:
          1.   V8
 •   Safari:
          1.   JSCore




JS Engines -2
                                      Performanta JSE   Cristina Mariniuc
                         08.01.2012
   este un JavaScript Engine open source. Acesta
    este dezvoltat in intregime in Java si este
    gestionat de Fundatia Mozilla.

   converteste scripturi JavaScript in clase.

   este destinat utilizarii in aplicatii server-side, prin
    urmare, nu exista nici un suport built-
    in pentru browsere care sunt frecvent asociate
    cu JavaScript.




Mozilla-JS Engine: Rhino
                                                Performanta JSE   Cristina Mariniuc
                                   08.01.2012
   este primul compilatorul JIT scris pentru
    limbajul JavaScript.

   compilatorul a fost lansat ca parte a SpiderMonkey
    (primul motor JavaScript) la Firefox 3.5, oferind“imbunatatiri
    de performanta cuprinse intre 20 si 40 de ori mai
    rapid" decat interpretorul din Firefox 3.




Mozilla-JS Engine: TraceMonkey
                                                    Performanta JSE   Cristina Mariniuc
                                       08.01.2012
   pe plan intern numit MethodJIT, concepute pentru
    a imbunatati performanta in cazurile in care TraceMonkey nu
    poate genera cod nativ stabil

   acesta a fost lansat cu Firefox 4

   functioneaza foarte diferit de alte compilatoare din clasa sa
    avand avantajul de a fi extrem de rapid, ceea ce este
    util pentru JavaScript, deoarece este frecventa recompilarea
    cauzata de schimbarea variabilelor.



Mozilla-JS Engine: JägerMonkey
                                                     Performanta JSE   Cristina Mariniuc
                                        08.01.2012
   este un Jscript Engine dezvoltat de Microsoft pentru Internet
    Explorer 9.
   teste efectuate de SunSpider pe 18 nov 2009 arata
    ca versiunea PDC a IE9 scriptul de executare e mult mai
    rapid decat IE8, dar mai lent decât Firefox
    3.6,Chrome 4, şi WebKit Nightly .
   aceeaşi test efectuat pe 15 martie 2010 a aratat
    primul Anunt IE9 Platform (folosind versiunea in acel
    moment de Chakra) pentru a fi mai rapid
    decât Firefox (cu SpiderMonkey), dar mai lent decât Safari (cu
    SquirrelFish Extreme), Chrome (cu V8), şi Opera (cu Carakan).

Explorer-JS Engine: Chakra
                                                    Performanta JSE   Cristina Mariniuc
                                       08.01.2012
   V8 este un JS Engine de la google si este open source.
   V8 este scris in C++ si este folosit de Google Chrome,
   Browserul open source de la Google.
   V8 implementeaza ECMAScript asa cum este specificat
    in ECMA-262, 3rd edition si ruleaza pe sisteme Windows
    XP si Vista, Mac OS X 10.5 (Leopard), si Linux care
    folosesc procesoare IA-32 sau ARM.
   V8 este dedicat executiei aplicatiilor JavaScript de
    dimensiuni mari
   Performanta V8 este data de cei trei factori de mai jos:
       1.   Acces Rapid la proprietati
       2.   Generare dinamica de cod masina
       3.   Garbage Collection eficient




Google Chrome V8
                                                     Performanta JSE   Cristina Mariniuc
                                        08.01.2012
   Performanta JSE pe diferite browsere, poate fi
    masurata folosind diferite programe
    benchmark, ca:
       1. SunSpider: testeaza doar performanta JSE
       2. V8 Benchmark: testeaza doar performanta JS
       3. Dromaeo: testeaza JS, DOM, si JavaScript
          Library performance.




JSE Benchmarks
                                            Performanta JSE   Cristina Mariniuc
                               08.01.2012
   Chrome este cel mai
                   rapid in aceste teste

                  Rezultatele de la
                   TraceMonkey nu sunt
                   incluse




Teste cu SunSpider
                                Performanta JSE
                   08.01.2012                     Cristina Mariniuc
   Google Chrome a
                    dezvolata propriul
                    benchmark pentru
                    analiza performantei

                   Google Chrome
                    decimeaza celelalte
                    browsere in aceste
                    teste



Google Chrome Benchmark

                                 Performanta JSE
                    08.01.2012                     Cristina Mariniuc
   Rezultate pentru
              masurare
              performantei
              JavaScript, DOM, si
              librariei de test.




Dromaeo
                           Performanta JSE
              08.01.2012                     Cristina Mariniuc
 Concluzie:      In toate testele
                   prezentate,reiese ca
                   Google Chrome este
                   cel mai rapid.




                                                  Cris
                                                  tina
                                Performanta JSE   Mari
                   08.01.2012                     niuc

Contenu connexe

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Js engine performance

  • 1. JavaScript Engine Performance Studierea performantei JavaScript Engine la diferite browsere Performanta JSE Cristina Mariniuc 08.01.2012
  • 2. JavaScript Engine( sau interpretorul JavaScript / implementarea JavaScript ) este un software care interpreteaza si executa javaScript.  Exista mai multe utilizari pentru JavaScript Engine, insa este cel mai frecvent utilizat in browserele web.  Deoarece JavaScript este folosit frecvent in WEB 2.0, performanta JavaScript critica pentru toti producatorii marilor browsere, incluzand Mozilla Firefox, Google Chrome, si Microsoft Internet Explorer JS Engine Performanta JSE Cristina Mariniuc 08.01.2012
  • 3. • In continuare vom prezenta implementarile de JSE pentru cele mai cunoscute browsere. • Mozilla: 1. Rhino 2. SpiderMonkey 3. TraceMonkey 4. JagerMonkey 5. IonMonkey 6. Tamarin JS Engines -1 Performanta JSE Cristina Mariniuc 08.01.2012
  • 4. Explorer: 1. Chakra • Opera: 1. Carakan 2. Tuthark • Chrome: 1. V8 • Safari: 1. JSCore JS Engines -2 Performanta JSE Cristina Mariniuc 08.01.2012
  • 5. este un JavaScript Engine open source. Acesta este dezvoltat in intregime in Java si este gestionat de Fundatia Mozilla.  converteste scripturi JavaScript in clase.  este destinat utilizarii in aplicatii server-side, prin urmare, nu exista nici un suport built- in pentru browsere care sunt frecvent asociate cu JavaScript. Mozilla-JS Engine: Rhino Performanta JSE Cristina Mariniuc 08.01.2012
  • 6. este primul compilatorul JIT scris pentru limbajul JavaScript.  compilatorul a fost lansat ca parte a SpiderMonkey (primul motor JavaScript) la Firefox 3.5, oferind“imbunatatiri de performanta cuprinse intre 20 si 40 de ori mai rapid" decat interpretorul din Firefox 3. Mozilla-JS Engine: TraceMonkey Performanta JSE Cristina Mariniuc 08.01.2012
  • 7. pe plan intern numit MethodJIT, concepute pentru a imbunatati performanta in cazurile in care TraceMonkey nu poate genera cod nativ stabil  acesta a fost lansat cu Firefox 4  functioneaza foarte diferit de alte compilatoare din clasa sa avand avantajul de a fi extrem de rapid, ceea ce este util pentru JavaScript, deoarece este frecventa recompilarea cauzata de schimbarea variabilelor. Mozilla-JS Engine: JägerMonkey Performanta JSE Cristina Mariniuc 08.01.2012
  • 8. este un Jscript Engine dezvoltat de Microsoft pentru Internet Explorer 9.  teste efectuate de SunSpider pe 18 nov 2009 arata ca versiunea PDC a IE9 scriptul de executare e mult mai rapid decat IE8, dar mai lent decât Firefox 3.6,Chrome 4, şi WebKit Nightly .  aceeaşi test efectuat pe 15 martie 2010 a aratat primul Anunt IE9 Platform (folosind versiunea in acel moment de Chakra) pentru a fi mai rapid decât Firefox (cu SpiderMonkey), dar mai lent decât Safari (cu SquirrelFish Extreme), Chrome (cu V8), şi Opera (cu Carakan). Explorer-JS Engine: Chakra Performanta JSE Cristina Mariniuc 08.01.2012
  • 9. V8 este un JS Engine de la google si este open source.  V8 este scris in C++ si este folosit de Google Chrome,  Browserul open source de la Google.  V8 implementeaza ECMAScript asa cum este specificat in ECMA-262, 3rd edition si ruleaza pe sisteme Windows XP si Vista, Mac OS X 10.5 (Leopard), si Linux care folosesc procesoare IA-32 sau ARM.  V8 este dedicat executiei aplicatiilor JavaScript de dimensiuni mari  Performanta V8 este data de cei trei factori de mai jos: 1. Acces Rapid la proprietati 2. Generare dinamica de cod masina 3. Garbage Collection eficient Google Chrome V8 Performanta JSE Cristina Mariniuc 08.01.2012
  • 10. Performanta JSE pe diferite browsere, poate fi masurata folosind diferite programe benchmark, ca: 1. SunSpider: testeaza doar performanta JSE 2. V8 Benchmark: testeaza doar performanta JS 3. Dromaeo: testeaza JS, DOM, si JavaScript Library performance. JSE Benchmarks Performanta JSE Cristina Mariniuc 08.01.2012
  • 11. Chrome este cel mai rapid in aceste teste  Rezultatele de la TraceMonkey nu sunt incluse Teste cu SunSpider Performanta JSE 08.01.2012 Cristina Mariniuc
  • 12. Google Chrome a dezvolata propriul benchmark pentru analiza performantei  Google Chrome decimeaza celelalte browsere in aceste teste Google Chrome Benchmark Performanta JSE 08.01.2012 Cristina Mariniuc
  • 13. Rezultate pentru masurare performantei JavaScript, DOM, si librariei de test. Dromaeo Performanta JSE 08.01.2012 Cristina Mariniuc
  • 14.  Concluzie:  In toate testele prezentate,reiese ca Google Chrome este cel mai rapid. Cris tina Performanta JSE Mari 08.01.2012 niuc