Quantcast
Viewing latest article 1
Browse Latest Browse All 5

Script for benchmarking PHP functions

Often I find myself needing to know which way of performing a task in PHP is the fastest. The code below let's you easily test snippets of code to see how long it takes to run. PLAIN TEXT PHP: /*  Set up variables  */ $testcount = 10; $iterations = 100000; for ($x=0;$x<$testcount;$x++) { $starttime = [...]

Viewing latest article 1
Browse Latest Browse All 5

Trending Articles