ProcessWire
Recipes_

Benchmark code execution time

Problem

You don’t know how performant certain code structures or selector usages are.

Solution

$t = Debug::timer();
// do some expensive code execution here
echo Debug::timer($t);

Resources