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

Version

1.0.0

View/correct recipe on GitHub

https://github.com/processwire-recipes/Recipes/blob/master/benchmark-code-execution-time.md

Author(s)