Performance Analysis and Comparison of Acceleration Methods in Java']JavaScript Environments Based on Simplified Standard Hough Transform Algorithm

被引:1
作者
Koper, Damian [1 ]
Woda, Marek [1 ]
机构
[1] Wroclaw Univ Sci & Technol, Fac Informat & Commun Technol, Wroclaw, Poland
来源
NEW ADVANCES IN DEPENDABILITY OF NETWORKS AND SYSTEMS, DEPCOS-RELCOMEX 2022 | 2022年 / 484卷
关键词
!text type='Java']Java[!/text]Script; Acceleration; SHT; Standard Hough transform; Node; Browser; Deno; WebGL; Webpack; WASM; SIMD; Workers;
D O I
10.1007/978-3-031-06746-4_13
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
In this paper, we present an analysis of popular acceleration methods in JavaScript execution environments including Chrome, Firefox, Node, and Deno. We focus evenly on adopting the same code-base to take advantage of every method, benchmarking our solutions and caveats of building libraries compatible with multiple environments. To compare performance, we use a simplified standard Hough transform algorithm. As reference points of our benchmarks, we use a sequential version of the algorithm written in both JavaScript and C++. Our study shows that Chrome is the fastest JS environment in every benchmark and Firefox is the slowest in which we identified optimization problems. WebGL appears as the fastest acceleration method. Without parallel execution native C++ addon in Node is the most performant. This analysis will help to find the most efficient way to speed up execution making JavaScript a more robust environment for CPU-intensive computations.
引用
收藏
页码:131 / 142
页数:12
相关论文
共 19 条
[1]  
Chitra LP, 2017, 2017 INTERNATIONAL CONFERENCE ON ALGORITHMS, METHODOLOGY, MODELS AND APPLICATIONS IN EMERGING TECHNOLOGIES (ICAMMAET)
[2]  
Choubey M., 2021, Deno vs node performance comparison: hello world
[3]  
Djarv Karltorp J., 2020, Performance of multi-threaded web applications using web workers in client-side JavaScript
[4]   USE OF HOUGH TRANSFORMATION TO DETECT LINES AND CURVES IN PICTURES [J].
DUDA, RO ;
HART, PE .
COMMUNICATIONS OF THE ACM, 1972, 15 (01) :11-&
[5]  
github, 2022, US
[6]   JITProf: Pinpointing JIT-Unfriendly Java']JavaScript Code [J].
Gong, Liang ;
Pradel, Michael ;
Sen, Koushik .
2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, :357-368
[7]  
Hough P. V. C., 1962, US Patent, Patent No. 3069654
[8]  
Jangda A, 2019, PROCEEDINGS OF THE 2019 USENIX ANNUAL TECHNICAL CONFERENCE, P107
[9]   Performance Comparison and Evaluation of Web Development Technologies in PHP, Python']Python and Node.js']js [J].
Lei, Kai ;
Ma, Yining ;
Tan, Zhi .
2014 IEEE 17th International Conference on Computational Science and Engineering (CSE), 2014, :661-668
[10]   Combining thread-level speculation and just-in-time compilation in Google's V8 Java']JavaScript engine [J].
Martinsen, Jan Kasper ;
Grahn, Hakan ;
Isberg, Anders .
CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2017, 29 (01)