Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[SecurityBundle] Optimize dependency injection tests #17497

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

Closed

Conversation

paradajozsef
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17366
License MIT
Doc PR -

Tests building the same container multiple times. The same solution can be applied as here: #17399. This time I ran comparison tests only on 2.3. (my laptop is really slow)

2.3 before

Time: 14.79 seconds, Memory: 48.25Mb
OK (77 tests, 227 assertions)
OK src/Symfony/Bundle/SecurityBundle/

2.3 after

Time: 9.78 seconds, Memory: 48.75Mb
OK (77 tests, 227 assertions)
OK src/Symfony/Bundle/SecurityBundle/

@javiereguiluz
Copy link
Member

@paradajozsef 👍

These are the results in my machine:

BEFORE
Time: 12.29 seconds, Memory: 88.00Mb
OK (77 tests, 227 assertions)

AFTER
Time: 10.42 seconds, Memory: 88.50Mb
OK (77 tests, 227 assertions)

@paradajozsef
Copy link
Contributor Author

@javiereguiluz thanks for checking it! :)

@xabbuh
Copy link
Member

xabbuh commented Jan 22, 2016

👍

@fabpot
Copy link
Member

fabpot commented Jan 23, 2016

Thank you @paradajozsef.

fabpot added a commit that referenced this pull request Jan 23, 2016
…radajozsef)

This PR was squashed before being merged into the 2.3 branch (closes #17497).

Discussion
----------

[SecurityBundle] Optimize dependency injection tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17366
| License       | MIT
| Doc PR        | -

Tests building the same container multiple times. The same solution can be applied as here: #17399. This time I ran comparison tests only on 2.3. (my laptop is really slow)

**2.3 before**

```go
Time: 14.79 seconds, Memory: 48.25Mb
OK (77 tests, 227 assertions)
OK src/Symfony/Bundle/SecurityBundle/
```
**2.3 after**

```go
Time: 9.78 seconds, Memory: 48.75Mb
OK (77 tests, 227 assertions)
OK src/Symfony/Bundle/SecurityBundle/
```

Commits
-------

bf56d2f [SecurityBundle] Optimize dependency injection tests
@xabbuh xabbuh closed this Jan 23, 2016
@paradajozsef paradajozsef deleted the optimize-secbundle-tests-2.3 branch January 13, 2017 22:59
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.

5 participants