Benchmark 1 : Auto resolution of object and dependencies (Aliasing Interfaces to Concretes).
- Orno injected a null parameter to build Foo object (used default parameter) : Benchmark\Stubs\Foo( 'bar' => Benchmark\Stubs\Bar( 'baz' => Benchmark\Stubs\Baz( 'bam' => NULL ) ) )
- Zend injected a null parameter to build Foo object (used default parameter) : Benchmark\Stubs\Foo( 'bar' => NULL )
- PHP-DI injected a null parameter to build Foo object (used default parameter) : Benchmark\Stubs\Foo( 'bar' => NULL )
- Aura injected a null parameter to build Foo object (used default parameter) : Benchmark\Stubs\Foo( 'bar' => NULL )
Memory peak : 3.75 Mb
Benchmark 2 : Auto resolution of object and dependencies (Register all objects with container).
- Orno injected a null parameter to build Foo object (used default parameter) : Benchmark\Stubs\Foo( 'bar' => NULL )
- PHP-DI injected a null parameter to build Foo object (used default parameter) : Benchmark\Stubs\Foo( 'bar' => NULL )
- Aura injected a null parameter to build Foo object (used default parameter) : Benchmark\Stubs\Foo( 'bar' => NULL )
Memory peak : 4.5 Mb
Benchmark 3 : Factory closure resolution.
Memory peak : 4.5 Mb
Benchmark 4 : Constructor injection with defined arguments.
Memory peak : 5.25 Mb
Benchmark 5 : Setter injection with defined setter methods.
Memory peak : 5.75 Mb