zalvsa(zalvsa) apache2+php5===============================刚刚试了, 还是一样 最少2.3 秒, 最长11.3 秒换了一台机还是一样
我测试的代码<?php
$time1=getmicrotime();$a=OCILogon($dbusername,$dbpassword,$dbname);
OCILogoff($a);$time2=getmicrotime();echo ($time2-$time1); //时间函数
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
?>
我测试的代码<?php
$time1=getmicrotime();$a=OCILogon($dbusername,$dbpassword,$dbname);
OCILogoff($a);$time2=getmicrotime();echo ($time2-$time1); //时间函数
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
?>
require "./config.php";//放用户名|密码|实例名$time1=getmicrotime();$a=OCILogon($dbusername,$dbpassword,$dbname);
OCILogoff($a);$time2=getmicrotime();echo ($time2-$time1); //时间函数
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
?>
查询一条新闻信息,含clob字段.一共执行了2个sql语句.并输出显示!楼主,是不是你机器中毒了?