Jun Heo, Seung Woo, Hakbeom Jang, Kyungyeon Yang, Jae W. Lee
{"title":"通过高效的内存字节码缓存提高JavaScript性能","authors":"Jun Heo, Seung Woo, Hakbeom Jang, Kyungyeon Yang, Jae W. Lee","doi":"10.1109/ICCE-ASIA.2016.7804810","DOIUrl":null,"url":null,"abstract":"Web browsing is one of the most important applications for personalized consumer electronics devices such as smartphones and tablets. It is common usage pattern on these devices for a user to visit a relatively small set of websites repeatedly, which dominates the total browsing time. Exploiting this, modern web browsers cache downloaded resources in local disks such as HTML/JavaScript files and image files. While saving network bandwidth, resource caching does not eliminate redundant computation for processing these files. This paper presents an efficient in-memory code cache to improve the performance of interactive, dynamic webpages written in JavaScript. Evaluated on a production-grade JavaScript engine with JSBench, which record-and-replays five real-world websites, the proposed technique reduces both JavaScript compilation time and execution time by 57.9% and 30.9% on an embedded platform running at 2.3 GHz with 2GB RAM.","PeriodicalId":229557,"journal":{"name":"2016 IEEE International Conference on Consumer Electronics-Asia (ICCE-Asia)","volume":"58 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Improving JavaScript performance via efficient in-memory bytecode caching\",\"authors\":\"Jun Heo, Seung Woo, Hakbeom Jang, Kyungyeon Yang, Jae W. Lee\",\"doi\":\"10.1109/ICCE-ASIA.2016.7804810\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Web browsing is one of the most important applications for personalized consumer electronics devices such as smartphones and tablets. It is common usage pattern on these devices for a user to visit a relatively small set of websites repeatedly, which dominates the total browsing time. Exploiting this, modern web browsers cache downloaded resources in local disks such as HTML/JavaScript files and image files. While saving network bandwidth, resource caching does not eliminate redundant computation for processing these files. This paper presents an efficient in-memory code cache to improve the performance of interactive, dynamic webpages written in JavaScript. Evaluated on a production-grade JavaScript engine with JSBench, which record-and-replays five real-world websites, the proposed technique reduces both JavaScript compilation time and execution time by 57.9% and 30.9% on an embedded platform running at 2.3 GHz with 2GB RAM.\",\"PeriodicalId\":229557,\"journal\":{\"name\":\"2016 IEEE International Conference on Consumer Electronics-Asia (ICCE-Asia)\",\"volume\":\"58 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2016-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2016 IEEE International Conference on Consumer Electronics-Asia (ICCE-Asia)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICCE-ASIA.2016.7804810\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 IEEE International Conference on Consumer Electronics-Asia (ICCE-Asia)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCE-ASIA.2016.7804810","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Improving JavaScript performance via efficient in-memory bytecode caching
Web browsing is one of the most important applications for personalized consumer electronics devices such as smartphones and tablets. It is common usage pattern on these devices for a user to visit a relatively small set of websites repeatedly, which dominates the total browsing time. Exploiting this, modern web browsers cache downloaded resources in local disks such as HTML/JavaScript files and image files. While saving network bandwidth, resource caching does not eliminate redundant computation for processing these files. This paper presents an efficient in-memory code cache to improve the performance of interactive, dynamic webpages written in JavaScript. Evaluated on a production-grade JavaScript engine with JSBench, which record-and-replays five real-world websites, the proposed technique reduces both JavaScript compilation time and execution time by 57.9% and 30.9% on an embedded platform running at 2.3 GHz with 2GB RAM.