Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 516 Bytes

benchmark-code-execution-time.md

File metadata and controls

34 lines (21 loc) · 516 Bytes

title: Benchmark code execution time


version: 1.0.0


authors: ryan


tags: debug, time, performance


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: