The Community for Technology Leaders
RSS Icon
Subscribe
Issue No.02 - March-April (2013 vol.17)
pp: 10-19
ABSTRACT
JavaScript lets developers provide client-side interactivity in Web applications, but because it is sequential, it can't take advantage of multicore processors. Thread-level speculation (TLS) addresses this issue by enabling the speculation of JavaScript function calls and thus exploits the parallel performance potential multicore processors provide. The authors implemented TLS in the Squirrelfish JavaScript engine, which is part of the WebKit browser environment. They evaluate their approach using 15 popular Web applications on an eight-core computer, and show significant speed-ups without any modifications to the JavaScript source code.
INDEX TERMS
Engines, Internet, Google, Program processors, Multicore processing, Runtime, Benchmark testing, multicore processors, thread-level speculation, JavaScript function calls, parallel performance
CITATION
J. K. Martinsen, H. Grahn, A. Isberg, "Using speculation to enhance javascript performance in web applications", IEEE Internet Computing, vol.17, no. 2, pp. 10-19, March-April 2013, doi:10.1109/MIC.2012.146
REFERENCES
1. P. Ratanaworabhan, B. Livshits, and B.G. Zorn, “JSMeter: Comparing the Behavior of JavaScript Benchmarks with Real Web Applications,” Proc. 2010 Usenix Conf. Web Application Development (WebApps 10), Usenix Assoc., 2010, pp. 3–3.
2. G. Richards et al., “An Analysis of the Dynamic Behavior of JavaScript Programs,” Proc. 2010 ACM SIGPLAN Conf. Programming Language Design and Implementation (PLDI 10), ACM, 2010, pp. 1–12.
3. J.K. Martinsen and H. Grahn, “A Methodology for Evaluating JavaScript Execution Behavior in Interactive Web Applications,” Proc. 9th ACS/IEEE Int'l Conf. Computer Systems and Applications, IEEE, 2011, pp. 241–248.
4. J.K. Martinsen, H. Grahn, and A. Isberg, “A Comparative Evaluation of JavaScript Execution Behavior,” Proc. 11th Int'l Conf. Web Eng. (ICWE 11), Springer, 2011, pp. 399–402.
5. E. Fortuna et al., “A Limit Study of JavaScript Parallelism,” Proc. 2010 IEEE Int'l Symp. Workload Characterization (IISWC 10), IEEE, 2010, pp. 1–10.
6. “Web Workers,” W3C candidate recommendation, May 2012; www.w3.org/TRworkers/.
7. J.K. Martinsen and H. Grahn, “An Alternative Optimization Technique for JavaScript Engines,” Proc. 3rd Swedish Workshop on Multi-Core Computing (MCC 10), Chalmers Univ. of Technology, 2010, pp. 155–160.
8. J. Brand and J. Balvanz, “Automation Is a Breeze with Autoit,” Proc. 33rd Ann. ACM SIGUCCS Conf. User Services (SIGUCCS 05), ACM, 2005, pp. 12–15.
9. J.K. Martinsen, H. Grahn, and A. Isberg, Evaluating Four Aspects of JavaScript Execution Behavior in Benchmarks and Web Applications, research report 2011:03, Blekinge Inst. of Technology, July 2011.
13 ms
(Ver 2.0)

Marketing Automation Platform Marketing Automation Tool