The performance comparison between Prisma v4 and Prisma v5 involved testing the duration of creating 1000 users and querying all users within a database using each respective version of Prisma. The goal was to assess the efficiency and speed variations between the two versions.
Test Number | Creating 1000 Users (ms) | Querying All Users (ms) |
---|---|---|
1 | 541.89 | 5.15 |
2 | 61.84 | 8.14 |
3 | 60.38 | 12.15 |
Test Number | Creating 1000 Users (ms) | Querying All Users (ms) |
---|---|---|
1 | 279.59 | 6.55 |
2 | 40.55 | 9.72 |
3 | 41.78 | 12.85 |
Prisma v5 consistently displayed improved performance in user creation compared to Prisma v4 in most instances, indicating enhancements in the efficiency of this operation. However, the querying duration showed a slight increase compared to the creation time.
Prisma V5 is significantly faster than Prisma V4, both in terms of creating new users and querying all users. On average, Prisma V5 is 45.5% faster than Prisma V4.
The Prisma performance benchmarks show that Prisma V5 is a significant improvement over Prisma V4 in terms of performance. If you are using Prisma, I recommend upgrading to Prisma V5 as soon as possible.
The Prisma performance benchmarks were conducted on a machine with the following specifications:
The recorded performance metrics may vary due to factors like system configuration, internet speed, workload, database size, caching, and software versions.
Prisma Version | Repository URL |
---|---|
Prisma v4 | fahimahammed/prisma-performance-benchmarks/prismaV4 |
Prisma v5 | fahimahammed/prisma-performance-benchmarks/prismaV5 |