Test 1 - Create single object (incl autoload time)

ContainerTimeMemoryFiles
dice0.02560.430512
phalcon0.05780.26292
symfonydi0.07190.486815
njasm0.08110.437419
pimple0.08740.418712
league0.11550.482122
auryn0.18540.544617
aura0.21040.471618
laravel0.23960.549913
zend-servicemanager0.27970.62516
php-di0.37230.593743
zend-di0.67480.748635

Test 2 - Create single object (excl autoload time)

ContainerTimeMemoryFiles
dice0.0250.430412
phalcon0.05840.26292
symfonydi0.06790.486815
njasm0.08060.436619
pimple0.08750.418912
league0.1130.481922
auryn0.18290.544717
aura0.20910.471318
laravel0.23820.549913
zend-servicemanager0.28210.624916
php-di0.36060.594743
zend-di0.64560.747935

Test 3 - Create deep object graph

ContainerTimeMemoryFiles
symfonydi0.15370.490815
dice0.53770.430412
phalcon0.69860.29572
pimple0.89530.423512
njasm1.49540.43719
league1.53640.481922
aura2.34380.471818
zend-servicemanager2.68880.629216
auryn3.11950.544717
laravel3.25130.550313
php-di4.98630.609647
zend-di22.66180.748236

Test 4 - Fetch the same instance (service) from the container repeatedly

ContainerTimeMemoryFiles
phalcon0.00830.26292
pimple0.01140.418512
dice0.01180.430612
njasm0.01250.436619
aura0.01660.471418
laravel0.01960.550113
php-di0.02070.563438
league0.02690.481922
zend-servicemanager0.0340.624916
symfonydi0.04080.486815
auryn0.05590.544817
zend-di0.19640.748235

Test 5 - Inject a service into a new object repeatedly

ContainerTimeMemoryFiles
dice0.07170.430612
phalcon0.07990.26572
symfonydi0.09550.487715
pimple0.1070.419512
njasm0.17510.436619
league0.19480.482222
aura0.23470.471918
zend-servicemanager0.32380.625216
laravel0.38950.550113
auryn0.40980.544817
php-di0.5860.607647
zend-di1.50920.748836