- <?php
- profiler::start('function_exists');
- for ($x = 0; $x < 10000; $x++) {
- function_exists('i_dont');
- }
- echo text::seconds(profiler::stop('function_exists')->time->delta)."\n";
- function foo() {}
- profiler::start('empty');
- for ($x = 0; $x < 10000; $x++) {
- foo();
- }
- echo text::seconds(profiler::stop('empty')->time->delta)."\n";