|
6#
楼主 |
发表于 2007-5-24 10:42:50
|
只看该作者
我没有设置think time,但是时间差别也很大。这是我录制的脚本(设置了多个事务,最后算其累计时间):
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.0.56:9080", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_create_socket("socket1", "TCP", "RemoteHost=192.168.0.56:9080", LrsLastArg);
lr_start_transaction("pop");
lrs_send("socket1", "buf4", LrsLastArg);
lrs_receive("socket1", "buf5", LrsLastArg);
lr_end_transaction("pop", LR_AUTO);
lr_start_transaction("pop2");
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lr_end_transaction("pop2", LR_AUTO);
lr_start_transaction("pop3");
lrs_send("socket0", "buf8", LrsLastArg);
lrs_receive("socket0", "buf9", LrsLastArg);
lr_end_transaction("pop3", LR_AUTO);
lr_start_transaction("110");
lrs_send("socket0", "buf10", LrsLastArg);
lrs_receive("socket0", "buf11", LrsLastArg);
lr_end_transaction("110", LR_AUTO);
lr_start_transaction("5");
lrs_send("socket0", "buf12", LrsLastArg);
lrs_receive("socket0", "buf13", LrsLastArg);
lr_end_transaction("5", LR_AUTO);
lrs_close_socket("socket1");
lrs_create_socket("socket2", "TCP", "RemoteHost=192.168.0.56:9080", LrsLastArg);
lr_start_transaction("6");
lrs_send("socket2", "buf14", LrsLastArg);
lrs_receive("socket2", "buf15", LrsLastArg);
lr_end_transaction("6", LR_AUTO);
lr_start_transaction("7");
lrs_send("socket2", "buf16", LrsLastArg);
lrs_receive("socket2", "buf17", LrsLastArg);
lr_end_transaction("7", LR_AUTO);
lr_start_transaction("8");
lrs_send("socket2", "buf18", LrsLastArg);
lrs_receive("socket2", "buf19", LrsLastArg);
lr_end_transaction("8", LR_AUTO);
lr_start_transaction("9");
lrs_send("socket2", "buf20", LrsLastArg);
lrs_receive("socket2", "buf21", LrsLastArg);
lr_end_transaction("9", LR_AUTO);
lrs_close_socket("socket2");
return 0;
} |
|