PHP Classes

File: vendor/pimple/pimple/ext/pimple/tests/bench_shared.phpb

Recommend this page to a friend!
  Classes of Gavin Gordon Markowski  >  Helphp PHP Class Generator  >  vendor/pimple/pimple/ext/pimple/tests/bench_shared.phpb  >  Download  
File: vendor/pimple/pimple/ext/pimple/tests/bench_shared.phpb
Role: Example script
Content type: text/plain
Description: Example script
Class: Helphp PHP Class Generator
Generate classes from configuration parameters
Author: By
Last change:
Date: 4 months ago
Size: 433 bytes


Class file image Download

if (!class_exists('Pimple\Container')) {
__DIR__ . '/../../../src/Pimple/Container.php';
} else {
"pimple-c extension detected, using...\n\n";

$time = microtime(true);

$service = function ($arg) { return "I'm a service"; };

for (
$i=0; $i<10000; $i++) {

$p = new Pimple\Container;
$p['my_service'] = $service;

$a = $p['my_service'];
$b = $p['my_service'];


microtime(true) - $time;

For more information send a message to info at phpclasses dot org.