3 if (!class_exists('Pimple\Container')) {
4 require_once __DIR__ . '/../../../src/Pimple/Container.php';
6 echo "pimple-c extension detected, using...\n\n";
9 $time = microtime(true);
12 $factory = function () { };
14 for ($i=0; $i<10000; $i++) {
16 $p = new Pimple\Container;
33 $p['cb'] = function($arg) { };
41 //$p->factory($factory);
43 $p['factory'] = $factory;
51 echo microtime(true) - $time;