Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个相当大的脚本,必须处理大量数据,但是其中有一部分用于记录,我想知道,什么使用更少的资源,将文件添加到 txt 文件或 mysql 中的一行询问?我将如何进行测试?
$start = microtime(); // your process here $end = microtime(); // Compare duration.