A Comparative Evaluation of JavaScript Execution Behavior

  • Jan Kasper Martinsen
  • Håkan Grahn
  • Anders Isberg
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 6757)


JavaScript is a dynamically typed, object-based scripting language with runtime evaluation. It has emerged as an important language for client-side computation of web applications. Previous studies indicate some differences in execution behavior between established benchmarks and real-world web applications.

Our study extends previous studies by showing some consequences of these differences. We compare the execution behavior of four application classes, i.e., four JavaScript benchmark suites, the first pages of the Alexa top-100 web sites, 22 use cases for three social networks, and demo applications for the emerging HTML5 standard. Our results indicate that just-in-time compilation often increases the execution time for web applications, and that there are large differences in the execution behavior between benchmarks and web applications at the bytecode level.


  1. 1.
    Alexa: Top 500 sites on the web (2010),
  2. 2.
    Martinsen, J.K., Grahn, H.: A methodology for evaluating JavaScript execution behavior in interactive web applications. In: Proc. of the 9th ACS/IEEE Int’l Conf. on Computer Systems And Applications, pp. XX–YY (December 2011)Google Scholar
  3. 3.
    Martinsen, J.K., Grahn, H., Isberg, A.: Evaluating four aspects of JavaScript execution behavior in benchmarks and web applications. Technical Report No. 2011:01, Blekinge Institute of Technology, Sweden (2011)Google Scholar
  4. 4.
    Ratanaworabhan, P., Livshits, B., Zorn, B.G.: JSMeter: Comparing the behavior of JavaScript benchmarks with real web applications. In: WebApps 2010: Proc. of the 2010 USENIX Conf. on Web Application Development, pp. 3–3 (2010)Google Scholar
  5. 5.
    Richards, G., Lebresne, S., Burg, B., Vitek, J.: An analysis of the dynamic behavior of JavaScript programs. In: PLDI 2010: Proc. of the 2010 ACM SIGPLAN Conf. on Programming Language Design and Implementation, pp. 1–12 (2010)Google Scholar
  6. 6.
    WebKit. The WebKit open source project (2010),

Copyright information

© Springer-Verlag Berlin Heidelberg 2011

Authors and Affiliations

  • Jan Kasper Martinsen
    • 1
  • Håkan Grahn
    • 1
  • Anders Isberg
    • 2
  1. 1.Blekinge Institute of TechnologyKarlskronaSweden
  2. 2.Sony Ericsson Mobile Communications ABLundSweden

Personalised recommendations