2017 © Pedro Peláez
 

symfony-bundle dic-service-benchmark-bundle

Test the service instantiation time.

image

dawen/dic-service-benchmark-bundle

Test the service instantiation time.

  • Tuesday, December 22, 2015
  • by dawen
  • Repository
  • 0 Watchers
  • 1 Stars
  • 6,798 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

dic-service-benchmark-bundle

This code will instantiate every registered service from the DIC and checks the time taken., (*1)


Installation

Require the dawen/dic-service-benchmark-bundle package in your composer.json and update your dependencies., (*2)

    $ composer require dawen/dic-service-benchmark-bundle

This bundle contains no code for Runtime, or any services. You don't have to add it to your AppKernel., (*3)


Usage

Check out where you phpunit is installed and run (hint: disable coverage for this test):, (*4)

    bin/phpunit -c app vendor/dawen/dic-service-benchmark-bundle/Dawen/Bundle/DicServiceBenchmarkBundle/Tests/DicServiceBenchmarkTest.php

This will print out a list of services and their time elapsed when instantiating. This test will fail, if services will take longer than 50ms., (*5)

If you want to ignore service id's you can add in your phpunit.xml a global war that holds all service id's colon separated., (*6)

  <php>
      <var name="dic-service-benchmark-ignore" value="web_profiler.controller.router,my-service"/>
  </php>

The Versions

22/12 2015

dev-master

9999999-dev

Test the service instantiation time.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

service test bundle symfony dic benchmark smoke

22/12 2015

0.2.0

0.2.0.0

Test the service instantiation time.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

service test bundle symfony dic benchmark smoke

22/12 2015

0.1.0

0.1.0.0

Test the service instantiation time.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Wendlandt

service test bundle symfony dic benchmark smoke