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

[Rector] Testing Rector dev-main #7918

Closed

Conversation

samsonasik
Copy link
Member

Description

Hi @kenjis @paulbalandan could you test the rector/rector:dev-main with clean up parallel config below and verify if the performance drawback resolved without setting $jobSize config in the parallel() config below?

If that works, we can remove passing arguments in the parallel() config in next rector release.

Current rector dev-main changed the parallel process by @staabm . I mention you here so you can have fast feedback here in case we found a different use case.

Thank you.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@kenjis
Copy link
Member

kenjis commented Sep 11, 2023

It seems no problem.

(test-rector-dev-main-2 $)$ time vendor/bin/rector 
 821/821 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

                                                                                                                        
 [OK] Rector is done!                                                                                                   
                                                                                                                        


real    6m1.921s
user    12m38.855s
sys     0m30.725s

@paulbalandan
Copy link
Member

I still could not test because of the issue in space in path. Sorry.

@@ -57,7 +56,7 @@
PHPUnitSetList::PHPUNIT_100,
]);

$rectorConfig->parallel(240, 8, 1);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw: I can't make sense of a jobsize of 1. this should be pretty inefficient. nice its gone with this PR :)

@samsonasik
Copy link
Member Author

Thanks all 👍 , I will update the config on next dependabot PR for new rector release 👍

@samsonasik samsonasik closed this Sep 13, 2023
@samsonasik samsonasik deleted the test-rector-dev-main-2 branch September 13, 2023 09:02
@staabm
Copy link

staabm commented Sep 13, 2023

Fyi - on my machine the new release is 20-25% faster in my codeigniter tests in comparison to 0.18.2 (with the suggested changes in parallel parameters)

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

Successfully merging this pull request may close these issues.

None yet

4 participants