{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,31]],"date-time":"2026-10-31T19:20:56Z","timestamp":1793474456559,"version":"4.5.0"},"reference-count":73,"publisher":"Association for Computing Machinery (ACM)","issue":"ICFP","license":[{"start":{"date-parts":[[2021,8,19]],"date-time":"2021-08-19T00:00:00Z","timestamp":1629331200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2021,8,22]]},"abstract":"<jats:p>The fastest JavaScript production implementations use just-in-time (JIT) compilation and the vast majority of academic publications about implementations of dynamic languages published during the last two decades focus on JIT compilation. This does not imply that static compilers (AoT) cannot be competitive; as comparatively little effort has been spent creating fast AoT JavaScript compilers, a scientific comparison is lacking. This paper presents the design and implementation of an AoT JavaScript compiler, focusing on a performance analysis. The paper reports on two experiments, one based on standard JavaScript benchmark suites and one based on new benchmarks chosen for their diversity of styles, authors, sizes, provenance, and coverage of the language. The first experiment shows an advantage to JIT compilers, which is expected after the decades of effort that these compilers have paid to these very tests. The second shows more balanced results, as the AoT compiler generates programs that reach competitive speeds and that consume significantly less memory. The paper presents and evaluates techniques that we have either invented or adapted from other systems, to improve AoT JavaScript compilation.<\/jats:p>","DOI":"10.1145\/3473575","type":"journal-article","created":{"date-parts":[[2021,8,19]],"date-time":"2021-08-19T10:44:29Z","timestamp":1629369869000},"page":"1-30","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":16,"title":["Of JavaScript AOT compilation performance"],"prefix":"10.1145","volume":"5","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-5240-1610","authenticated-orcid":false,"given":"Manuel","family":"Serrano","sequence":"first","affiliation":[{"name":"Inria, France \/ University of C\u00f4te d'Azur, France"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2021,8,19]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594332"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/11531142_19"},{"key":"e_1_2_2_3_1","unstructured":"Apple. 2018. WebKit. https:\/\/webkit.org\/.  Apple. 2018. WebKit. https:\/\/webkit.org\/."},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.3390\/app10103525"},{"key":"e_1_2_2_5_1","unstructured":"R. Artoul. 2015. Javascript Hidden Classes and Inline Caching in V8. http:\/\/richardartoul.github.io\/jekyll\/update\/2015\/04\/26\/hidden-classes.html  R. Artoul. 2015. Javascript Hidden Classes and Inline Caching in V8. http:\/\/richardartoul.github.io\/jekyll\/update\/2015\/04\/26\/hidden-classes.html"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3357390.3361032"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/2784731.2784740"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1002\/spe.4380180902"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/3385412.3385968"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/73141.74831"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/74878.74884"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3022671.2984017"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2015.101"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2016.7"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314587"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-48288-9_11"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/2887746.2754181"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.5555\/3049832.3049860"},{"key":"e_1_2_2_19_1","unstructured":"ECMA International. 2015. Standard ECMA-262 - ECMAScript Language Specification (6.0 ed.).  ECMA International. 2015. Standard ECMA-262 - ECMAScript Language Specification (6.0 ed.)."},{"key":"e_1_2_2_20_1","unstructured":"ECMA International. 2018. ECMAScript 2018 Language Specification (9.0 ed.). https:\/\/www.ecma-international.org\/publications\/files\/ECMA-ST\/Ecma-262.pdf  ECMA International. 2018. ECMAScript 2018 Language Specification (9.0 ed.). https:\/\/www.ecma-international.org\/publications\/files\/ECMA-ST\/Ecma-262.pdf"},{"key":"e_1_2_2_21_1","unstructured":"David Eder. 2020. a simple BASIC interpreter. http:\/\/eder.us\/projects\/jbasic\/  David Eder. 2020. a simple BASIC interpreter. http:\/\/eder.us\/projects\/jbasic\/"},{"key":"e_1_2_2_22_1","volume-title":"JavaScript \u2013 The definitive guide","author":"Flanagan D.","unstructured":"D. Flanagan . 2002. JavaScript \u2013 The definitive guide ( fourth edition). O\u2019Reilly & Associates , USA. D. Flanagan. 2002. JavaScript \u2013 The definitive guide (fourth edition). O\u2019Reilly & Associates, USA."},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/1542476.1542528"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1542476.1542528"},{"key":"e_1_2_2_25_1","unstructured":"Google. 2018. V8 JavaScript Engine. http:\/\/developers.google.com\/v8  Google. 2018. V8 JavaScript Engine. http:\/\/developers.google.com\/v8"},{"key":"e_1_2_2_26_1","unstructured":"Google. 2019. JIT-less V8. https:\/\/v8.dev\/blog\/jitless  Google. 2019. JIT-less V8. https:\/\/v8.dev\/blog\/jitless"},{"key":"e_1_2_2_27_1","volume-title":"Proceedings of the European Conference on Object-Oriented Programming (ECOOP\u201910)","author":"Guha A.","year":"1883","unstructured":"A. Guha , C. Saftoiu , and S. Krishnamurthi . 2010. The essence of JavaScript . In Proceedings of the European Conference on Object-Oriented Programming (ECOOP\u201910) . https:\/\/doi.org\/10.5555\/ 1883 978.1883988 10.5555\/1883978.1883988 A. Guha, C. Saftoiu, and S. Krishnamurthi. 2010. The essence of JavaScript. In Proceedings of the European Conference on Object-Oriented Programming (ECOOP\u201910). https:\/\/doi.org\/10.5555\/1883978.1883988"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062363"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/2345156.2254094"},{"key":"e_1_2_2_30_1","unstructured":"James Halliday. 2020. Minimist: parse argument options. https:\/\/github.com\/substack\/minimist  James Halliday. 2020. Minimist: parse argument options. https:\/\/github.com\/substack\/minimist"},{"key":"e_1_2_2_31_1","unstructured":"Zoltan Herczeg. 2015. Performance comparison of regular expression engines. https:\/\/zherczeg.github.io\/sljit\/regex_perf.html  Zoltan Herczeg. 2015. Performance comparison of regular expression engines. https:\/\/zherczeg.github.io\/sljit\/regex_perf.html"},{"key":"e_1_2_2_32_1","volume-title":"Proceedings of the European Conference on Object-Oriented Programming (ECOOP \u201991)","author":"H\u00f6lzle U.","unstructured":"U. H\u00f6lzle , C. Chambers , and D. Ungar . 1991. Optimizing Dynamically-Typed Object-Oriented Languages With Polymorphic Inline Caches . In Proceedings of the European Conference on Object-Oriented Programming (ECOOP \u201991) . UK. 21\u201338. isbn:3-540-54262-0 https:\/\/doi.org\/10.1.1.126.7745 U. H\u00f6lzle, C. Chambers, and D. Ungar. 1991. Optimizing Dynamically-Typed Object-Oriented Languages With Polymorphic Inline Caches. In Proceedings of the European Conference on Object-Oriented Programming (ECOOP \u201991). UK. 21\u201338. isbn:3-540-54262-0 https:\/\/doi.org\/10.1.1.126.7745"},{"key":"e_1_2_2_33_1","unstructured":"Adobe Systems Incorporated. 2020. jpeg.js A pure javascript JPEG encoder and decoder for node.js. https:\/\/github.com\/eugeneware\/jpeg-js  Adobe Systems Incorporated. 2020. jpeg.js A pure javascript JPEG encoder and decoder for node.js. https:\/\/github.com\/eugeneware\/jpeg-js"},{"key":"e_1_2_2_34_1","unstructured":"Isaacs. 2016. https:\/\/github.com\/isaacs\/minimatch  Isaacs. 2016. https:\/\/github.com\/isaacs\/minimatch"},{"key":"e_1_2_2_35_1","unstructured":"Christopher Jeffrey. 2020. Marked. https:\/\/github.com\/markedjs\/marked  Christopher Jeffrey. 2020. Marked. https:\/\/github.com\/markedjs\/marked"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-03237-0_17"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-03237-0_17"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-03237-0_17"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/2635868.2635904"},{"key":"e_1_2_2_40_1","unstructured":"Arase Kazuhiko. 2009. QRcode.js. http:\/\/www.d-project.com\/  Arase Kazuhiko. 2009. QRcode.js. http:\/\/www.d-project.com\/"},{"key":"#cr-split#-e_1_2_2_41_1.1","unstructured":"R. Kelsey W. Clinger and J. Rees. 1998. The Revised"},{"key":"#cr-split#-e_1_2_2_41_1.2","unstructured":"(5) Report on the Algorithmic Language Scheme. Higher-Order and Symbolic Computation 11 1 (1998) Sept.. R. Kelsey W. Clinger and J. Rees. 1998. The Revised"},{"key":"#cr-split#-e_1_2_2_41_1.3","unstructured":"(5) Report on the Algorithmic Language Scheme. Higher-Order and Symbolic Computation 11 1 (1998) Sept.."},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2015.28"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/2578856.2508170"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-11970-5_5"},{"key":"e_1_2_2_45_1","volume-title":"Proceedings of the Sixth Workshop on Scheme and Functional Programming. 101\u2013116","author":"Loitsch Florian","year":"2005","unstructured":"Florian Loitsch . 2005 . Javascript to Scheme Compilation . In Proceedings of the Sixth Workshop on Scheme and Functional Programming. 101\u2013116 . Florian Loitsch. 2005. Javascript to Scheme Compilation. In Proceedings of the Sixth Workshop on Scheme and Functional Programming. 101\u2013116."},{"key":"e_1_2_2_46_1","unstructured":"F. Loitsch and M. Serrano. 2008. Trends in Functional Programming. 8 Seton Hall University Intellect Bristol UK\/Chicago USA. 141\u2013158. isbn:978-1-84150-196-3  F. Loitsch and M. Serrano. 2008. Trends in Functional Programming. 8 Seton Hall University Intellect Bristol UK\/Chicago USA. 141\u2013158. isbn:978-1-84150-196-3"},{"key":"e_1_2_2_47_1","unstructured":"MDN. 2019. SpiderMonkey Internals. https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Projects\/SpiderMonkey\/Internals  MDN. 2019. SpiderMonkey Internals. https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Projects\/SpiderMonkey\/Internals"},{"key":"e_1_2_2_48_1","unstructured":"B. Meurer. 2016. The truth about traditional JavaScript benchmarks. https:\/\/benediktmeurer.de\/2016\/12\/16\/the-truth-about-traditional-javascript-benchmarks  B. Meurer. 2016. The truth about traditional JavaScript benchmarks. https:\/\/benediktmeurer.de\/2016\/12\/16\/the-truth-about-traditional-javascript-benchmarks"},{"key":"e_1_2_2_49_1","unstructured":"Moment.com. 2020. Moment.js. https:\/\/momentjs.com\/  Moment.com. 2020. Moment.js. https:\/\/momentjs.com\/"},{"key":"e_1_2_2_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/3394451.3397205"},{"key":"e_1_2_2_51_1","unstructured":"Mozilla. 2020. SpiderMonkey: The Mozilla JavaScript runtime. https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Projects\/SpiderMonkey  Mozilla. 2020. SpiderMonkey: The Mozilla JavaScript runtime. https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Projects\/SpiderMonkey"},{"key":"e_1_2_2_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/1508244.1508275"},{"key":"e_1_2_2_53_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2020.16"},{"key":"e_1_2_2_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/3093334.2989228"},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.1109\/CGO.2019.8661171"},{"key":"e_1_2_2_56_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2018.16"},{"key":"e_1_2_2_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/2908080.2908127"},{"key":"e_1_2_2_58_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2015.271"},{"key":"e_1_2_2_59_1","unstructured":"Manuel Serrano. 1992. Bigloo a Practical Scheme Compiler. http:\/\/www-sop.inria.fr\/indes\/fp\/Bigloo\/  Manuel Serrano. 1992. Bigloo a Practical Scheme Compiler. http:\/\/www-sop.inria.fr\/indes\/fp\/Bigloo\/"},{"key":"e_1_2_2_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276945.3276950"},{"key":"e_1_2_2_61_1","doi-asserted-by":"publisher","DOI":"10.1145\/3302516.3307344"},{"key":"e_1_2_2_62_1","doi-asserted-by":"publisher","DOI":"10.1145\/3377555.3377888"},{"key":"e_1_2_2_63_1","doi-asserted-by":"publisher","DOI":"10.1145\/960116.54007"},{"key":"e_1_2_2_64_1","doi-asserted-by":"publisher","DOI":"10.1145\/2384616.2384685"},{"key":"e_1_2_2_65_1","unstructured":"2020. uuid.js For the creation of RFC4122 UUIDs. https:\/\/www.npmjs.com\/package\/uuid  2020. uuid.js For the creation of RFC4122 UUIDs. https:\/\/www.npmjs.com\/package\/uuid"},{"key":"e_1_2_2_66_1","unstructured":"V8 Team. 2017. Retiring Octane. https:\/\/v8.dev\/blog\/retiring-octane  V8 Team. 2017. Retiring Octane. https:\/\/v8.dev\/blog\/retiring-octane"},{"key":"e_1_2_2_67_1","unstructured":"J\u00e9r\u00f4me Vouillon. 2020. Js_of_ocaml. https:\/\/ocsigen.org\/js_of_ocaml  J\u00e9r\u00f4me Vouillon. 2020. Js_of_ocaml. https:\/\/ocsigen.org\/js_of_ocaml"},{"key":"e_1_2_2_68_1","doi-asserted-by":"publisher","DOI":"10.1145\/3078633.3081037"},{"key":"e_1_2_2_69_1","unstructured":"Wikipedia. 2021. W\u0142and X. https:\/\/en.wikipedia.org\/wiki\/W%5EX  Wikipedia. 2021. W\u0142and X. https:\/\/en.wikipedia.org\/wiki\/W%5EX"},{"key":"e_1_2_2_70_1","doi-asserted-by":"publisher","DOI":"10.1145\/3360610"},{"key":"e_1_2_2_71_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062381"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3473575","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3473575","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T21:28:15Z","timestamp":1750195695000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3473575"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,8,19]]},"references-count":73,"journal-issue":{"issue":"ICFP","published-print":{"date-parts":[[2021,8,22]]}},"alternative-id":["10.1145\/3473575"],"URL":"https:\/\/doi.org\/10.1145\/3473575","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,8,19]]},"assertion":[{"value":"2021-08-19","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}