Php 什么是资源密集型,fopen&x2B;fwrite或mysql_query()
我正在编写一个相当大的脚本,它将必须处理大量数据,但是其中有一部分用于日志记录,我想知道,在txt文件或mysql查询的一行中添加一个文件,会占用更少的资源吗?我将如何进行测试 看一看Php 什么是资源密集型,fopen&x2B;fwrite或mysql_query(),php,mysql,nginx,Php,Mysql,Nginx,我正在编写一个相当大的脚本,它将必须处理大量数据,但是其中有一部分用于日志记录,我想知道,在txt文件或mysql查询的一行中添加一个文件,会占用更少的资源吗?我将如何进行测试 看一看 $start = microtime(); // your process here $end = microtime(); // Compare duration.
$start = microtime();
// your process here
$end = microtime();
// Compare duration.