-
Notifications
You must be signed in to change notification settings - Fork 45
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 issue #12
Comments
@Simperfit found that |
TODO : use Blackfire to compare performance with https://github.com/liip/LiipFunctionalTestBundle/releases/tag/2.0.0-alpha16 and LiipFunctionalTestBundle 3.0 and LiipTestFixturesBundle 1.0. |
On a personal project, tests are 4 times slower. 🤔 |
TODO: compare when using dependency injection as in #18. |
Could this be because kernel & containers are not shared between the two bundle so when using both |
@magnetik to my knowledge, event if some code is shared between the 2 bundles, there will be only one instance of the test class so there will be only one kernel built? |
When using both bundles, the two kernel built are from :
Am I missing something? |
I found out why in our project we had a slowdown of about 3x. According to the
In LiipFunctionalTestBundle v1.x you had that only when sqlite database was defined for tests https://github.com/liip/LiipFunctionalTestBundle/blob/1.x/Test/WebTestCase.php#L449 . In our case with the tests with MySQL (mysql, percona and mariadb) we had tests passing faster than it was with LiipFunctionalTestBundle 1.x |
Thanks for the investigation @biozshock The first change to this code was in this PR: https://github.com/liip/LiipFunctionalTestBundle/pull/398/files#diff-3216cb8554ab63f3b7b8531ebcee5156L387 I'll continue to look at changes later. |
We could add a note in the documentation that there are several options to create database and schema:
|
Fixed in #120. The performance issue should be fixed in the 2.x release. |
Performance with LiipTestFixturesBundle v2.6.0 I am experiencing significant performance issues with LiipTestFixturesBundle version 2.6.0 when using the loadFixtures method with zero insertions. Even with an empty set of fixtures as shown below, tests take 7 to 9 seconds to run, which seems abnormally high. And without loadFixtures() 260 ms
<?php
namespace App\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
class ExempleFixtures extends Fixture
{
public function load(ObjectManager $manager)
{
}
} |
Preconditions
Performance issue with version 1.0 of this bundle: liip/LiipFunctionalTestBundle#516 (comment) compared to LiipFunctionalTestBundle 2.0.0-alpha16
Steps to reproduce
.
Expected result
.
Actual result
Tests are about 2x slower.
The text was updated successfully, but these errors were encountered: