Virtual DOM vs Real DOM: Performance Benchmarks

Authors

  • Kavya Muppaneni Software Engineer at HCL Global Systems, USA. Author

DOI:

https://doi.org/10.63282/3050-9416.IJAIBDCMS-V4I4P118

Keywords:

Virtual DOM, Real DOM, Performance Optimization, Web Rendering, ReactJS, Front-End Benchmarking

Abstract

This comparative research paper explores the topic of Virtual DOM versus Real DOM with respect to web rendering performance. The paper mainly focuses on speed, memory usage, and scalability as the factors that should be taken into account. The research seeks to clear up the confusion of how each method handles UI updates and re-rendering, by providing developers with real-world data to use as a basis when selecting the model most appropriate for modern web applications. We have also done experiments in a controlled way using different frameworks, like React (which utilizes Virtual DOM) and vanilla JavaScript (which directly changes the Real DOM), where we measured render time, update latency, and memory consumption under various workloads in order to achieve this. Among the tools that were used for benchmarking and thus facilitating consistent and reproducible results were Lighthouse, Chrome DevTools, and custom performance scripts. The findings indicate that in a situation where a mobile app has a lot of following state changes Virtual DOM is more effective since it reduces the unnecessary reflows and thus the responsiveness perceived by users is increased. However, Real DOM still has a chance to make a static page or a page of low-interaction with direct manipulations and without the use of any intermediate layers perform better. According to the article, the Virtual DOM has a little memory overhead but its diffing and batching mechanisms greatly enhance scalability for dynamic interfaces. These revelations indicate that the choice between the Virtual DOM and the Real one is dependent on the application complexity and interaction frequency rather than on the existence of a universal solution.

References

1. Chęć, Dariusz, and Ziemowit Nowak. "The performance analysis of web applications based on virtual DOM and reactive user interfaces." KKIO Software Engineering Conference. Cham: Springer International Publishing, 2018.

2. Zou, Yunxiao, et al. "Virtual DOM coverage for effective testing of dynamic web applications." Proceedings of the 2014 International Symposium on Software Testing and Analysis. 2014.

3. Levlin, Mattias. "DOM benchmark comparison of the front-end JavaScript frameworks React, Angular, Vue, and Svelte." (2020).

4. Psaila, Giuseppe. "Virtual dom: An efficient virtual memory representation for large xml documents." 2008 19th International Workshop on Database and Expert Systems Applications. IEEE, 2008.

5. Persson, Morgan. "JavaScript DOM Manipulation Performance: Comparing Vanilla JavaScript and Leading JavaScript Front-end Frameworks." (2020).

6. Muyldermans, Daisy. "How does the virtual DOM compare to other DOM update mechanisms in JavaScript frameworks." Daisy Muyldermans (2019).

7. Ollila, Risto, Niko Mäkitalo, and Tommi Mikkonen. "Modern web frameworks: A comparison of rendering performance." Journal of Web Engineering 21.3 (2022): 789-813.

8. Leotta, Maurizio, et al. "Visual vs. DOM-based web locators: An empirical study." International Conference on Web Engineering. Cham: Springer International Publishing, 2014.

9. Gupta, Diwaker, et al. "Enforcing performance isolation across virtual machines in xen." ACM/IFIP/USENIX International Conference on Distributed Systems Platforms and Open Distributed Processing. Berlin, Heidelberg: Springer Berlin Heidelberg, 2006.

10. Parakala, Adityamallikarjunkumar. "Integrating Salesforce and UiPath: Cross-System Intelligent Automation." International Journal of Emerging Trends in Computer Science and Information Technology 3.4 (2022): 88-99.

11. Giunta, Giulio, et al. "A GPGPU transparent virtualization component for high performance computing clouds." European Conference on Parallel Processing. Berlin, Heidelberg: Springer Berlin Heidelberg, 2010.

12. Lancichinetti, Andrea, Santo Fortunato, and Filippo Radicchi. "Benchmark graphs for testing community detection algorithms." Physical Review E Statistical, Nonlinear, and Soft Matter Physics 78.4 (2008): 046110.

13. Shi, Qiang, et al. "DNN-Dom: predicting protein domain boundary from sequence alone by deep neural network." Bioinformatics 35.24 (2019): 5128-5136.

14. Behr, Johannes, et al. "X3DOM: a DOM-based HTML5/X3D integration model." Proceedings of the 14th international conference on 3D web technology. 2009.

15. Parakala, Adityamallikarjunkumar. "Role Evolution: Developer, Analyst, Lead, Senior." American International Journal of Computer Science and Technology 4.3 (2022): 11-19.

16. Dittmar, Thorsten, et al. "A simple and efficient method for the solid‐phase extraction of dissolved organic matter (SPE‐DOM) from seawater." Limnology and Oceanography: Methods 6.6 (2008): 230-235.

17. Cai, Deng, et al. "Vips: a vision-based page segmentation algorithm." (2003).

18. Krishna Chaitanaya Chittoor, “Anomaly Detection In Medical Billing Using Machine Learning On Big Data Pipelines”, International Journal Of Current Science, 12(3), PP-788-796, 2022, https://rjpn.org/ijcspub/papers/IJCSP22C1314.pdf.

Downloads

Published

2023-12-30

Issue

Section

Articles

How to Cite

1.
Muppaneni K. Virtual DOM vs Real DOM: Performance Benchmarks. IJAIBDCMS [Internet]. 2023 Dec. 30 [cited 2026 Apr. 29];4(4):180-9. Available from: https://ijaibdcms.org/index.php/ijaibdcms/article/view/521