$e1 = get_time();
echo "Heap engine select $count record used time: ". ($e1-$s1) ." ";
$s2 = get_time();
for($i=0; $i<$count; $i++){
$res = get_data($conn, "select * from tbl_isam limit $records");
unset($res);
}
$e2 = get_time();
echo "MyISAM engine select $count record used time: ". ($e2-$s2) ." ";
?>
文章来源于领测软件测试网 https://www.ltesting.net/