Skip to content

Development performance improvements #4844

@vjpr

Description

@vjpr

After discussions with @timneutkens, here are several ways to make Next.js faster to work with during development.

Metrics

  • Server start time.
  • Incremental build time for changes on same page (HMR).
  • Direct page visit (typing in url).
  • Navigating to new page via a link.
  • SSR of React Component

Profiling tools

  • Chrome DevTools --inspect - profile any part of the app (including flamecharts with a slightly easier workflow than ProfilerPlugin I think)
  • ProfilerPlugin in Webpack@4 - generates flamecharts for builds
  • webpackDevMiddleware.stats = 'verbose'
  • Monkey-patch next build to show stats.toString()
  • WebpackAnalyzePlugin
  • require('perf_hooks') - https://nodejs.org/api/perf_hooks.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions