Abstract
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.
Download to read the full chapter text
Chapter PDF
Similar content being viewed by others
References
Alexa: Top 500 sites on the web (2010), http://www.alexa.com/topsites
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)
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)
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)
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)
WebKit. The WebKit open source project (2010), http://www.webkit.org/
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2011 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Martinsen, J.K., Grahn, H., Isberg, A. (2011). A Comparative Evaluation of JavaScript Execution Behavior. In: Auer, S., Díaz, O., Papadopoulos, G.A. (eds) Web Engineering. ICWE 2011. Lecture Notes in Computer Science, vol 6757. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-22233-7_35
Download citation
DOI: https://doi.org/10.1007/978-3-642-22233-7_35
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-22232-0
Online ISBN: 978-3-642-22233-7
eBook Packages: Computer ScienceComputer Science (R0)