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

Performance Metrics Issue with speed-measure-webpack-plugin and case-sensitive-paths-webpack-plugin #201

Open
yzh1699 opened this issue Apr 8, 2024 · 0 comments

Comments

@yzh1699
Copy link

yzh1699 commented Apr 8, 2024

Hello speed-measure-webpack-plugin Team,

I'm encountering an issue where the integration of speed-measure-webpack-plugin (smp) with case-sensitive-paths-webpack-plugin seems to distort the performance metrics reported by smp.

Issue Description:
When running builds with both speed-measure-webpack-plugin and case-sensitive-paths-webpack-plugin, the metrics suggest a significant performance overhead associated with the case-sensitive plugin. However, after disabling case-sensitive-paths-webpack-plugin by commenting it out, I observed no meaningful change in the actual build times when using time npm run build to monitor the overall build time.

This leads me to believe that the interaction between these two plugins may be causing speed-measure-webpack-plugin to report inaccurate metrics.

Steps to Reproduce:

  1. Install speed-measure-webpack-plugin (version 1.5.0) and case-sensitive-paths-webpack-plugin (version 2.3.0).
  2. Integrate both plugins into your webpack configuration.
  3. Run a build with time npm run build to get the baseline performance metrics.
  4. Comment out the case-sensitive-paths-webpack-plugin integration using:
    // config.plugin('CaseSensitivePathsPlugin').use(CaseSensitivePathsPlugin)
  5. Run the build again with time npm run build and compare the metrics.

Expected Behavior:
The performance metrics provided by speed-measure-webpack-plugin should accurately reflect the impact of each plugin on the build process.

Actual Behavior:
The reported metrics from speed-measure-webpack-plugin suggest a performance impact from case-sensitive-paths-webpack-plugin that does not correlate with the actual build times observed using time npm run build.

Additional Information:

  • speed-measure-webpack-plugin version: 1.5.0
  • case-sensitive-paths-webpack-plugin version: 2.3.0
  • Operating System: Windows11 or macOS Monterey
  • Node.js version: 14.21.3

I am concerned that this issue could lead to developers making misguided optimizations based on misleading metrics. I would appreciate any guidance you can provide and am willing to assist in diagnosing this problem further.

Thank you for your time and assistance.

Best,
Zehua YU

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