PC6下载站

分类分类

Request与Request.Form的速度测试

关注+2004-11-07作者:蓝点

经测试:

http://www.leadbbs.com/test?name=test

Request("name")的速度是非常快的,当请求的网址是
http://www.leadbbs.com/test?时,
Request("name")的速度下降了近二十来倍.

下面是测试代码,保存为test.asp

实际中,我们的请求一般仅针对表单的post请求与地址栏的get方法请求(Requestw函数).





<%
function Requestw(str)
     Dim tmp
     tmp = Request.QueryString(str)
     If tmp = "" Then tmp = Request.Form(str)
     Requestw = tmp
end Function

dim DEF_PageExeTime1
DEF_PageExeTime1=Timer * 1000

Dim n,happy
for n = 0 to 50000
     happy = Requestw("name")
Next

Response.Write abs(CDBL(Timer)*1000 - DEF_PageExeTime1)
%>

展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消