Benchmarking Graphics Rendering Capabilities: Java Processing vs. P5.js
DOI:
https://doi.org/10.26877/asset.v8i1.2036Keywords:
Animation Efficiency, Cross-Platform Benchmarking, Frame Count, Frame Rate, Rendering PerformanceAbstract
Rendering efficiency is a critical factor in cross-platform animation development. This study benchmarks the performance of Java Processing and P5.js by measuring frame rates and frame counts across six heterogeneous computing devices for 2D and 3D animation tasks. Each benchmark was executed under standardized conditions for 60 seconds, and performance data were collected at fixed intervals. Results indicate that Java Processing consistently achieves higher rendering efficiency, with up to 313% greater frame rates and 265% higher frame counts compared to P5.js, particularly in computationally intensive 3D scenarios. These differences are attributed to Java Processing’s compiled execution and direct OpenGL integration, while P5.js performance is constrained by browser-based execution and limited GPU utilization. The findings suggest Java Processing is preferable for high-performance simulations and complex visualizations, whereas P5.js remains effective for lightweight web-based 2D applications.
References
[1] Mane A El, Tatane K, Chihab Y. Transforming agricultural supply chains: Leveraging blockchain-enabled java smart contracts and IoT integration. ICT Express 2024. https://doi.org/10.1016/j.icte.2024.03.007.
[2] Wendykier P, Nagy JG. Parallel colt: A high-performance java library for scientific computing and image processing. ACM Transactions on Mathematical Software 2010;37:1–22. https://doi.org/10.1145/1824801.1824809.
[3] Hejderup J, Gousios G. Can we trust tests to automate dependency updates? A case study of Java Projects. Journal of Systems and Software 2022;183. https://doi.org/10.1016/j.jss.2021.111097.
[4] Manzoor A, Mufti M ud D, Nabi MY. Java script animation of generator rotors under different modes of oscillation in two area four machine system. IOP Conf Ser Mater Sci Eng, vol. 1228, IOP Publishing; 2022, p. 1–9. https://doi.org/10.1088/1757-899x/1228/1/012033.
[5] Charalambos JP. Proscene: A feature-rich framework for interactive environments. SoftwareX 2017;6:48–53. https://doi.org/10.1016/j.softx.2017.01.002.
[6] Tanyalcin I, Al Assaf C, Ferte J, Ancien F, Khan T, Smits G, et al. Lexicon Visualization Library and JavaScript for Scientific Data Visualization. 2019.
[7] Ishida M, Kaneko N, Sumi K. MOJI: Character-level convolutional neural networks for Malicious Obfuscated JavaScript Inspection. Appl Soft Comput 2023;137. https://doi.org/10.1016/j.asoc.2023.110138.
[8] Roumeliotis KI, Tselikas ND, Nasiopoulos DK. LLMs in e-commerce: A comparative analysis of GPT and LLaMA models in product review evaluation. Natural Language Processing Journal 2024;6:100056. https://doi.org/10.1016/j.nlp.2024.100056.
[9] Naciri L, Gallab M, Soulhi A, Merzouk S, Di Nardo M. Modeling and simulation: A comparative and systematic statistical review. Procedia Comput Sci, vol. 232, Elsevier B.V.; 2024, p. 242–53. https://doi.org/10.1016/j.procs.2024.01.024.
[10] Nuyts E, Bonduel M, Verstraeten R. Comparative analysis of approaches for automated compliance checking of construction data. Advanced Engineering Informatics 2024;60. https://doi.org/10.1016/j.aei.2024.102443.
[11] Sandberg E. Creative Coding on the Web in p5.js a Library Where Javascript Meets Processing. 2019.
[12] Bibi N, Maqbool A, Rana T. Enhancing source code retrieval with joint Bi-LSTM-GNN architecture: A comparative study with ChatGPT-LLM. Journal of King Saud University - Computer and Information Sciences 2024;36. https://doi.org/10.1016/j.jksuci.2023.101865.
[13] Amrish, Shwetank. Comparative analysis of manual and annotations for crowd assessment and classification using artificial intelligence. Data Science and Management 2024. https://doi.org/10.1016/j.dsm.2024.04.001.
[14] Suh S, Lee KJ, Latulipe C, Zhao J, Law E. Exploring Individual and Collaborative Storytelling in an Introductory Creative Coding Class. ArXiv 2021:1–7.
[15] Wicks MN, Glinka M, Hill B, Houghton D, Sharghi M, Ferreira I, et al. The Comparative Pathology Workbench: Interactive visual analytics for biomedical data. J Pathol Inform 2023;14. https://doi.org/10.1016/j.jpi.2023.100328.
[16] Fregnan E, Fröhlich J, Spadini D, Bacchelli A. Graph-based visualization of merge requests for code review ✩. J Syst Softw 2023;195:111506. https://doi.org/10.5281/zenod.
[17] Subbaraman B, Shim S, Peek N. Forking a Sketch: How the OpenProcessing Community Uses Remixing to Collect, Annotate, Tune, and Extend Creative Code, Association for Computing Machinery (ACM); 2023, p. 326–42. https://doi.org/10.1145/3563657.3595969.
[18] Xiong S, Wang X, Lan Z. Model Research of Visual Report Components. Procedia Comput Sci, vol. 208, Elsevier B.V.; 2022, p. 478–85. https://doi.org/10.1016/j.procs.2022.10.066.
[19] Pakanen M, Alavesa P, van Berkel N, Koskela T, Ojala T. “Nice to see you virtually”: Thoughtful design and evaluation of virtual avatar of the other user in AR and VR based telexistence systems. Entertain Comput 2022;40. https://doi.org/10.1016/j.entcom.2021.100457.
[20] Orban C, Porter C, Smith JRH, Brecht NK, Britt CA, Teeling-Smith RM, et al. A Game-Centered, Interactive Approach for Using Programming Exercises in Introductory Physics. ArXiv 2017;1:1–12.
[21] Putnam EL. MotherHack: Creative coding as an artist-mother. Gend Work Organ 2024:1–17. https://doi.org/10.1111/gwao.13114.
[22] Wang A, Yin Z, Hu Y, Mao Y, Hui P. Exploring the Potential of Large Language Models in Artistic Creation: Collaboration and Reflection on Creative Programming. ArXiv 2024:1–15.
[23] Law ELC, Heintz M. Augmented reality applications for K-12 education: A systematic review from the usability and user experience perspective. Int J Child Comput Interact 2021;30. https://doi.org/10.1016/j.ijcci.2021.100321.
[24] Pellas N, Mystakidis S, Kazanidis I. Immersive Virtual Reality in K-12 and Higher Education: A systematic review of the last decade scientific literature. Virtual Real 2021;25:835–61. https://doi.org/10.1007/s10055-020-00489-9.
[25] Sobandi B, Wibawa SC, Triyanto T, Syakir S, Pandanwangi A, Suryadi S, et al. Batik AR ver.1.0: Augmented Reality application as gamification of batik design using waterfall method. J Phys Conf Ser, vol. 1987, IOP Publishing Ltd; 2021. https://doi.org/10.1088/1742-6596/1987/1/012021.
[26] Gogoi MrRK. A Software System for A Finite State Machine (FSM). Int J Res Appl Sci Eng Technol 2022;10:795–806. https://doi.org/10.22214/ijraset.2022.44711.
[27] Arrighi G, See ZS, Jones D. Victoria Theatre virtual reality: A digital heritage case study and user experience design. Digital Applications in Archaeology and Cultural Heritage 2021;21. https://doi.org/10.1016/j.daach.2021.e00176.
[28] Schneider T, Ghellal S, Love S, Gerlicher ARS. Increasing the User Experience in Autonomous Driving through different Feedback Modalities. International Conference on Intelligent User Interfaces, Proceedings IUI, Association for Computing Machinery; 2021, p. 7–10. https://doi.org/10.1145/3397481.3450687.
[29] Xiao M, Feng Z, Yang X, Xu T, Guo Q. Multimodal interaction design and application in augmented reality for chemical experiment. Virtual Reality & Intelligent Hardware 2020;2:291–304. https://doi.org/10.1016/j.vrih.2020.07.005.
[30] Ding K, Ma K, Wang S, Simoncelli EP. Comparison of Full-Reference Image Quality Models for Optimization of Image Processing Systems. Int J Comput Vis 2021;129:1258–81. https://doi.org/10.1007/s11263-020-01419-7.
[31] Daradkeh YI, Gorokhovatskyi V, Tvoroshenko I, Zeghid M. Cluster Representation of the Structural Description of Images for Effective Classification. Computers, Materials and Continua 2022;73:6069–84. https://doi.org/10.32604/cmc.2022.030254.



