test.php
458 Bytes
<?php
error_reporting(0);
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
require_once dirname(__FILE__).'/AutoLoad.class.php';
AutoLoad::start();
$time_start = microtime_float();
var_dump(Util_Product_Api::autoGetData("http://item.taobao.com/item.htm?spm=a215f.6971749.1911085173.3.1KyDP7&id=36229168758"));
echo microtime_float()-$time_start;
echo memory_get_usage()/1048576;
?>