Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Dic Service Benchmark Bundle Laravel Package

dawen/dic-service-benchmark-bundle

View on GitHub
Deep Wiki
Context7

dic-service-benchmark-bundle

This code will instantiate every registered service from the DIC and checks the time taken.


Installation

Require the dawen/dic-service-benchmark-bundle package in your composer.json and update your dependencies.

    $ 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.


Usage

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

    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.

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.

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

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle