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

benchmark: add final clean-up to module-loader.js #11924

Closed
wants to merge 1 commit into from
Closed

benchmark: add final clean-up to module-loader.js #11924

wants to merge 1 commit into from

Conversation

vsemozhetbyt
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt commented Mar 19, 2017

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

benchmark, module

Currently, module-loader.js cleans up its temp directory only before each benchmark run. So after the last run, a tmp directory with 50,000 subdirectories and 100,000 files remains in the benchmark directory. A second final clean-up does not add much more time to overall benchmark duration because it reduces the time for each next initialization, while benchmark directory remains clean after the last run.

@nodejs-github-bot nodejs-github-bot added the benchmark Issues and PRs related to the benchmark subsystem. label Mar 19, 2017
@vsemozhetbyt vsemozhetbyt added the module Issues and PRs related to the module subsystem. label Mar 20, 2017
@vsemozhetbyt
Copy link
Contributor Author

jasnell pushed a commit that referenced this pull request Mar 22, 2017
PR-URL: #11924
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

jasnell commented Mar 22, 2017

Landed in ae8a869

@jasnell jasnell closed this Mar 22, 2017
@vsemozhetbyt vsemozhetbyt deleted the module-loader branch March 22, 2017 08:44
@MylesBorins
Copy link
Contributor

this will need to be manually backported to v7.x

@vsemozhetbyt
Copy link
Contributor Author

@MylesBorins Done: #12102

@gibfahn
Copy link
Member

gibfahn commented Jun 17, 2017

@vsemozhetbyt, I landed 211dd16 on v6.x-staging, let me know if that was a mistake.

@vsemozhetbyt
Copy link
Contributor Author

@gibfahn I cannot imagine any cause this can be wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark Issues and PRs related to the benchmark subsystem. module Issues and PRs related to the module subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants