This work analyzes the performance of three ORM frameworks for Node.js Sequelize, Prisma, and TypeORM under different database interaction modes: single cached and uncached queries, as well as parallel load. Testing was conducted across various usage scenarios using a simple online store system backed by a PostgreSQL database. Collected data provides insights into how each ORM behaves under different conditions and may be helpful when selecting a tool for working with databases. The results show that Prisma provides the best performance under parallel load, while Sequelize performs efficiently in single-query scenarios with low concurrency. TypeORM demonstrated stable behavior across all modes and supports more advanced features such as hierarchical data processing.
References
[1] J. Barnes, Object-Relational Mapping as a Persistence Mechanism for Object-Oriented Applications, Macalester College, Saint Paul, 2007, https://digitalcommons.macalester.edu/mathcs_honors/6/.
[2] Sequelize documentation, https://sequelize.org/docs/v6/, [26.07.2025].
[3] Prisma documentation, https://www.prisma.io/docs/orm, [26.07.2025].
[4] TypeORM documentation, https://typeorm.io/docs/, [26.07.2025].
[5] A. Bäcke, E. Lindström, Evaluation of ORM frameworks for Node.js applications, Master thesis, Linnaeus University, Växjö, 2024, https://www.diva-portal.org/smash/record.jsf?pid=diva2:1881324.
[6] NestJS documentation, https://docs.nestjs.com/, [26.07.2025].
[7] PostgreSQL documentation: EXPLAIN, https://www.postgresql.org/docs/17/sql-explain.html, [26.07.2025].
[8] C. Boettiger, An introduction to Docker for reproducible research, ACM SIGOPS Operating Systems Review 49(1) (2015) 71–79, https://doi.org/10.1145/2723872.2723882.
[9] P. Mishra, M. H. Eich, Join processing in relational databases, ACM Computing Surveys 24(1) (1992) 63–113, https://doi.org/10.1145/128762.128764.
[10] P. Novotný, J. Wild, Modeling hierarchical structures in biodiversity databases, Database (2024) https://doi.org/10.1093/database/baae107.