Skip to content

Commit

Permalink
fix: phpbench tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Aug 17, 2024
1 parent 6230b7a commit ae23f24
Show file tree
Hide file tree
Showing 55 changed files with 165 additions and 170 deletions.
4 changes: 2 additions & 2 deletions phpbench.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"runner.bootstrap": "vendor/autoload.php",
"runner.path": "tests/Benchmark/",
"runner.retry_threshold": 5,
"runner.iterations": 20,
"runner.revs": 500,
"runner.iterations": 10,
"runner.revs": 200,
"runner.time_unit": "time",
"runner.file_pattern": "*Bench.php",
"runner.assert": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\ClassInfo;
namespace GacelaTest\Benchmark\ClassResolver\ClassInfo;

use Gacela\Framework\AbstractFacade;
use Gacela\Framework\ClassResolver\ClassInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache;
namespace GacelaTest\Benchmark\FileCache;

use Gacela\Framework\Bootstrap\GacelaConfig;
use Gacela\Framework\ClassResolver\Cache\ClassNamePhpCache;
Expand All @@ -12,10 +12,6 @@
use GacelaTest\Fixtures\StringValueInterface;

/**
* @Revs(50)
*
* @Iterations(15)
*
* @BeforeClassMethods("removeFiles")
*/
final class FileCacheBench
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA;
namespace GacelaTest\Benchmark\FileCache\ModuleA;

use Gacela\Framework\AbstractConfig;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA;
namespace GacelaTest\Benchmark\FileCache\ModuleA;

use Gacela\Framework\AbstractProvider;
use Gacela\Framework\Container\Container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA;
namespace GacelaTest\Benchmark\FileCache\ModuleA;

use Gacela\Framework\AbstractFacade;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA\Infrastructure\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA\Infrastructure\Repository;
use GacelaTest\Benchmark\FileCache\ModuleA\Infrastructure\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleA\Infrastructure\Repository;

/**
* @method FactoryA getFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA;
namespace GacelaTest\Benchmark\FileCache\ModuleA;

use Gacela\Framework\AbstractFactory;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA\Infrastructure\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA\Infrastructure\Repository;
use GacelaTest\Benchmark\FileCache\ModuleA\Infrastructure\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleA\Infrastructure\Repository;
use GacelaTest\Fixtures\StringValueInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC\Infra;
namespace GacelaTest\Benchmark\FileCache\ModuleA\Infrastructure;

final class EntityManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA\Infrastructure;
namespace GacelaTest\Benchmark\FileCache\ModuleA\Infrastructure;

final class Repository
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB;
namespace GacelaTest\Benchmark\FileCache\ModuleB;

use Gacela\Framework\AbstractConfig;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB;
namespace GacelaTest\Benchmark\FileCache\ModuleB;

use Gacela\Framework\AbstractProvider;
use Gacela\Framework\Container\Container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB;
namespace GacelaTest\Benchmark\FileCache\ModuleB;

use Gacela\Framework\AbstractFacade;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB\Infrastructure\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB\Infrastructure\Repository;
use GacelaTest\Benchmark\FileCache\ModuleB\Infrastructure\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleB\Infrastructure\Repository;

/**
* @method FactoryB getFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB;
namespace GacelaTest\Benchmark\FileCache\ModuleB;

use Gacela\Framework\AbstractFactory;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleA\Infrastructure\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB\Infrastructure\Repository;
use GacelaTest\Benchmark\FileCache\ModuleA\Infrastructure\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleB\Infrastructure\Repository;
use GacelaTest\Fixtures\StringValueInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB\Infrastructure;
namespace GacelaTest\Benchmark\FileCache\ModuleB\Infrastructure;

final class EntityManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleB\Infrastructure;
namespace GacelaTest\Benchmark\FileCache\ModuleB\Infrastructure;

final class Repository
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC;
namespace GacelaTest\Benchmark\FileCache\ModuleC;

use Gacela\Framework\AbstractConfig;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC;
namespace GacelaTest\Benchmark\FileCache\ModuleC;

use Gacela\Framework\AbstractProvider;
use Gacela\Framework\Container\Container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC;
namespace GacelaTest\Benchmark\FileCache\ModuleC;

use Gacela\Framework\AbstractFacade;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC\Infra\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC\Infra\Repository;
use GacelaTest\Benchmark\FileCache\ModuleC\Infra\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleC\Infra\Repository;

/**
* @method FactoryC getFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC;
namespace GacelaTest\Benchmark\FileCache\ModuleC;

use Gacela\Framework\AbstractFactory;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC\Infra\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC\Infra\Repository;
use GacelaTest\Benchmark\FileCache\ModuleC\Infra\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleC\Infra\Repository;
use GacelaTest\Fixtures\StringValueInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE\Infra;
namespace GacelaTest\Benchmark\FileCache\ModuleC\Infra;

final class EntityManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleC\Infra;
namespace GacelaTest\Benchmark\FileCache\ModuleC\Infra;

final class Repository
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD;
namespace GacelaTest\Benchmark\FileCache\ModuleD;

use Gacela\Framework\AbstractConfig;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD;
namespace GacelaTest\Benchmark\FileCache\ModuleD;

use Gacela\Framework\AbstractProvider;
use Gacela\Framework\Container\Container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD;
namespace GacelaTest\Benchmark\FileCache\ModuleD;

use Gacela\Framework\AbstractFacade;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD\Infra\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD\Infra\Repository;
use GacelaTest\Benchmark\FileCache\ModuleD\Infra\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleD\Infra\Repository;

/**
* @method FactoryD getFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD;
namespace GacelaTest\Benchmark\FileCache\ModuleD;

use Gacela\Framework\AbstractFactory;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD\Infra\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD\Infra\Repository;
use GacelaTest\Benchmark\FileCache\ModuleD\Infra\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleD\Infra\Repository;
use GacelaTest\Fixtures\StringValueInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD\Infra;
namespace GacelaTest\Benchmark\FileCache\ModuleD\Infra;

final class EntityManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleD\Infra;
namespace GacelaTest\Benchmark\FileCache\ModuleD\Infra;

final class Repository
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE;
namespace GacelaTest\Benchmark\FileCache\ModuleE;

use Gacela\Framework\AbstractConfig;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE;
namespace GacelaTest\Benchmark\FileCache\ModuleE;

use Gacela\Framework\AbstractProvider;
use Gacela\Framework\Container\Container;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE;
namespace GacelaTest\Benchmark\FileCache\ModuleE;

use Gacela\Framework\AbstractFacade;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE\Infra\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE\Infra\Repository;
use GacelaTest\Benchmark\FileCache\ModuleE\Infra\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleE\Infra\Repository;

/**
* @method FactoryE getFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE;
namespace GacelaTest\Benchmark\FileCache\ModuleE;

use Gacela\Framework\AbstractFactory;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE\Infra\EntityManager;
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE\Infra\Repository;
use GacelaTest\Benchmark\FileCache\ModuleE\Infra\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleE\Infra\Repository;
use GacelaTest\Fixtures\StringValueInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleF\Infra;
namespace GacelaTest\Benchmark\FileCache\ModuleE\Infra;

final class EntityManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleE\Infra;
namespace GacelaTest\Benchmark\FileCache\ModuleE\Infra;

final class Repository
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleF;
namespace GacelaTest\Benchmark\FileCache\ModuleF;

use Gacela\Framework\AbstractConfig;

Expand Down
Loading

0 comments on commit ae23f24

Please sign in to comment.