|
我的机器是AMD 2800+ ,1G内存 2000 Server
用LR测试google搜索,100用户并发测试
结果:
Transaction Name Minimum Average Maximum Std 90 Percent Pass Fail
Action_Transaction 20.428 20.918 27.987 0.747 21.103 100 0
search 20.145 20.262 27.39 0.72 20.259 100 0
平均值20多秒,我觉得google的性能不会这么差,是不是我的机器不行.
还是代码有问题.
Action()
{
web_add_cookie("REF=ID=14d8f2eec5a13f99:TM=1201841581M=1201841581:S=I5NBC5w-V8E7x6gX; DOMAIN=www.google.com");
web_url("www.google.com",
"URL=http://www.google.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/nav_logo3.png", ENDITEM,
LAST);
lr_start_transaction("search");
lr_think_time(20);
web_submit_form("search",
"Snapshot=t2.inf",
ITEMDATA,
"Name=q", "Value=mack", ENDITEM,
LAST);
lr_end_transaction("search",LR_AUTO);
return 0;
} |
|