$start = microtime(true); for($i = 0; $i < 3000; $i++) { mysqli_query($res, "insert into app__debuglog VALUE (null,now(), 'msg : $i','callstack','user','debug_speed','vars')"); } $end = microtime(true); echo "Took " . ($end - $start) . " s\n";
$start = microtime(true); for($i = 0; $i < 3000; $i++) { mysqli_query($res, "insert into app__debuglog VALUE (null,now(), 'msg : $i','callstack','user','debug_speed','vars')"); } $end = microtime(true); echo "Took " . ($end - $start) . " s\n";