Skip to content

chore: measure project crystal plugin perf impact on CI and local dev#33058

Closed
Hotell wants to merge 12 commits intomicrosoft:masterfrom
Hotell:nx/workspace-plugin/inferred-plugins-bench
Closed

chore: measure project crystal plugin perf impact on CI and local dev#33058
Hotell wants to merge 12 commits intomicrosoft:masterfrom
Hotell:nx/workspace-plugin/inferred-plugins-bench

Conversation

@Hotell
Copy link
Collaborator

@Hotell Hotell commented Oct 16, 2024

Previous Behavior

New Behavior

@nx/eslint/plugin and @nx/jest/plugin sources are modified in order to measure the plugin impact on runtime

see outputs in console marked as:

  • Execution Timings: jest-plugin
  • Execution Timings: lint-plugin

Data:

  • projects: 260
command jest plugin (s) eslint plugin (s)
nx affected 1.19s 1.96s
nx run scripts-monorepo:test ~ 4s per test (3x) ~ 6.5s per test (3x)
nx run cra-template:test-integration 1.7s 2.4s

Summary

  • the CI impact is rather slow
  • local dev flow will get some perf impact as this ~2s slowdown per plugin will be added with every nx run <project>:<target> invocation 🥹

For perf reasons we will implement only 1 workspace plugin that will generate all the tasks within all monorepo projects.

Related Issue(s)

@fabricteam
Copy link
Collaborator

📊 Bundle size report

✅ No changes found

@Hotell Hotell changed the title chore: measure project crystal plugin perf impact on CI chore: measure project crystal plugin perf impact on CI and local dev Oct 16, 2024
@Hotell Hotell closed this Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants