Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Bulletproof on a Next.js build produces an unexpected result #464

Open
alfonsograziano opened this issue Jan 3, 2024 · 0 comments

Comments

@alfonsograziano
Copy link

alfonsograziano commented Jan 3, 2024

I created a simple Next.js application with a single page. The page is dynamic and contains an await of 1000ms before showing content to the user.

Expected Behavior

By running clinic doctor --autocannon [ / --method GET ] -- node ./node_modules/.bin/next start after the build, Doctor correctly recognize an issue in the cpu usage, suggesting to use Bulletproof to find the bottleneck.

Screenshot 2024-01-03 at 13 32 01

Current Behavior

At this point, I try to run clinic bulletproof --autocannon [ / --method GET ] -- node ./node_modules/.bin/next start and the analysis produces this graph. I'm not sure if that's the expected result, but it is not very helpful in identifying potential issues. I'm not sure if Bulletproof is just not the best tool for performing this type of analysis on Next.js or if this is an actual bug in the graph generation. I'll investigate a little bit

Screenshot 2024-01-03 at 13 33 47

Steps to Reproduce

  1. Clone this repo
  2. Build the appwith npm run build
  3. Run clinic bulletproof --autocannon [ / --method GET ] -- node ./node_modules/.bin/next start

Environment

  • Bulletproof version: v10.0.0
  • Node.js version: v20.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant