question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance regression with napi for high concurrency

See original GitHub issue

Bug description

See: https://github.com/prisma/prisma/issues/7382

No napi
{
  min: '25ms',
  max: '617ms',
  sum: '3m 17.5s',
  variance: '13.7s',
  mean: '198ms',
  stddev: '117ms',
  count: 1000,
  median: '160ms',
  p75: '203ms',
  p95: '518ms',
  p99: '601ms',
  p999: '617ms'
}
Napi
{
  min: '94ms',
  max: '436ms',
  sum: '5m 30.1s',
  variance: '1.5s',
  mean: '330ms',
  stddev: '40ms',
  count: 1000,
  median: '338ms',
  p75: '343ms',
  p95: '364ms',
  p99: '379ms',
  p999: '436ms'
}

How to reproduce

https://github.com/vjpr/benchmark-prisma

Expected behavior

No response

Prisma information

https://github.com/prisma/prisma/issues/7382

Environment & setup

  • OS: macOS
  • Database: PostgreSQL
  • Node.js version: 14

Prisma Version

prisma               : 2.25.0-dev.3
@prisma/client       : 2.25.0-dev.3
Current platform     : darwin
Query Engine         : query-engine f3e341280d96d0abc068f97e959ddf01f321a858 (at ../../../nvm/versions/node/v14.2.0/pnpm-global/5/node_modules/.pnpm/@prisma+engines@2.24.0-30.f3e341280d96d0abc068f97e959ddf01f321a858/node_modules/@prisma/engines/query-engine-darwin)
Migration Engine     : migration-engine-cli f3e341280d96d0abc068f97e959ddf01f321a858 (at ../../../nvm/versions/node/v14.2.0/pnpm-global/5/node_modules/.pnpm/@prisma+engines@2.24.0-30.f3e341280d96d0abc068f97e959ddf01f321a858/node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core f3e341280d96d0abc068f97e959ddf01f321a858 (at ../../../nvm/versions/node/v14.2.0/pnpm-global/5/node_modules/.pnpm/@prisma+engines@2.24.0-30.f3e341280d96d0abc068f97e959ddf01f321a858/node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary        : prisma-fmt f3e341280d96d0abc068f97e959ddf01f321a858 (at ../../../nvm/versions/node/v14.2.0/pnpm-global/5/node_modules/.pnpm/@prisma+engines@2.24.0-30.f3e341280d96d0abc068f97e959ddf01f321a858/node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash : f3e341280d96d0abc068f97e959ddf01f321a858
Studio               : 0.397.0
Preview Features     : nApi, filterJson

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
vjprcommented, Jun 3, 2021

Screen Shot 2021-06-03 at 2 37 27 pm

3reactions
pantharshit00commented, Jun 3, 2021

This made into stable in 2.24.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance Regression Testing of Concurrent Classes
First, we present a generator of concurrent performance tests, that is, tests that run for a significant amount of time and have a...
Read more >
Concurrent validity of the Neurobehavioural Assessment for ...
This study examined the concurrent validity of the NAPI against a criterion instrument, the Einstein Neonatal Neurobehavioural Assessment ...
Read more >
Prisma 2.24.1 Release - GitClear
Prisma Client · In 2.24. · Performance regression with napi for high concurrency #7404 · Failed to run future: no available capacity /...
Read more >
News August 2020 - Java Performance Tuning
This month I'm listing all the new performance features in the upcoming release of Java 15 (I have done this every 6 months...
Read more >
Linux Performance and Tuning Guidelines - Lenovo Press
network API (NAPI). The standard implementation of the network stack in Linux focuses more on reliability and low latency than on low overhead...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found