经测试:
http://www.leadbbs.com/test?name=test
Request("name")的速度是非常快的,当请求的网址是
http://www.leadbbs.com/test? 时,
Request("name")的速度下降了近二十来倍.
下面是测试代码,保存为test.asp
实际中,我们的请求一般仅针对表单的post请求与地址栏的get方法请求(Requestw函数).
1
2function Requestw(str)
3Dim tmp
4tmp = Request.QueryString(str)
5If tmp = "" Then tmp = Request.Form(str)
6Requestw = tmp
7end Function
8
9dim DEF_PageExeTime1
10DEF_PageExeTime1=Timer * 1000
11
12Dim n,happy
13for n = 0 to 50000
14happy = Requestw("name")
15Next
16
17Response.Write abs(CDBL(Timer)*1000 - DEF_PageExeTime1)