mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Mass refactory
Rename project
This commit is contained in:
@@ -53,13 +53,13 @@ $template = $twig->loadTemplate('echo/twig.tpl');
|
||||
$template->render($data);
|
||||
var_dump("Twig cached: ".(microtime(true)-$start));
|
||||
|
||||
$aspect = Aspect::factory(__DIR__, __DIR__."/../compile/", Aspect::AUTO_RELOAD);
|
||||
$cytro = Cytro::factory(__DIR__, __DIR__."/../compile/", Cytro::AUTO_RELOAD);
|
||||
|
||||
$start = microtime(true);
|
||||
$template = $aspect->fetch('echo/smarty.tpl', $data);
|
||||
var_dump("Aspect: ".(microtime(true)-$start));
|
||||
$template = $cytro->fetch('echo/smarty.tpl', $data);
|
||||
var_dump("Cytro: ".(microtime(true)-$start));
|
||||
|
||||
$start = microtime(true);
|
||||
$template = $aspect->fetch('echo/smarty.tpl', $data);
|
||||
var_dump("Aspect cached: ".(microtime(true)-$start));
|
||||
$template = $cytro->fetch('echo/smarty.tpl', $data);
|
||||
var_dump("Cytro cached: ".(microtime(true)-$start));
|
||||
|
||||
|
||||
@@ -38,13 +38,13 @@ $template = $twig->loadTemplate('foreach/twig.tpl');
|
||||
$template->render($data);
|
||||
var_dump("Twig cached: ".(microtime(true)-$start));
|
||||
|
||||
$aspect = Aspect::factory(__DIR__, __DIR__."/../compile/", Aspect::AUTO_RELOAD | Aspect::INCLUDE_SOURCES);
|
||||
$cytro = Cytro::factory(__DIR__, __DIR__."/../compile/", Cytro::AUTO_RELOAD);
|
||||
|
||||
$start = microtime(true);
|
||||
$template = $aspect->fetch('foreach/smarty.tpl', $data);
|
||||
var_dump("Aspect: ".(microtime(true)-$start));
|
||||
$template = $cytro->fetch('foreach/smarty.tpl', $data);
|
||||
var_dump("Cytro: ".(microtime(true)-$start));
|
||||
|
||||
$start = microtime(true);
|
||||
$template = $aspect->fetch('foreach/smarty.tpl', $data);
|
||||
var_dump("Aspect cached: ".(microtime(true)-$start));
|
||||
$template = $cytro->fetch('foreach/smarty.tpl', $data);
|
||||
var_dump("Cytro cached: ".(microtime(true)-$start));
|
||||
|
||||
|
||||
@@ -49,13 +49,13 @@ $template = $twig->loadTemplate('inheritance/twig/b100.tpl');
|
||||
$template->render($data);
|
||||
var_dump("Twig cached: ".(microtime(true)-$start));
|
||||
|
||||
$aspect = Aspect::factory(__DIR__, __DIR__."/../compile/", Aspect::AUTO_RELOAD);
|
||||
$cytro = Cytro::factory(__DIR__, __DIR__."/../compile/", Cytro::AUTO_RELOAD);
|
||||
|
||||
$start = microtime(true);
|
||||
$template = $aspect->fetch('inheritance/smarty/b100.tpl', $data);
|
||||
var_dump("Aspect: ".(microtime(true)-$start));
|
||||
$template = $cytro->fetch('inheritance/smarty/b100.tpl', $data);
|
||||
var_dump("Cytro: ".(microtime(true)-$start));
|
||||
|
||||
$start = microtime(true);
|
||||
$template = $aspect->fetch('inheritance/smarty/b100.tpl', $data);
|
||||
var_dump("Aspect cached: ".(microtime(true)-$start));
|
||||
$template = $cytro->fetch('inheritance/smarty/b100.tpl', $data);
|
||||
var_dump("Cytro cached: ".(microtime(true)-$start));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user