Request與Request.Form的速度測試
發(fā)表時間:2023-08-17 來源:明輝站整理相關軟件相關文章人氣:
[摘要]經測試:http://www.leadbbs.com/test?name=testRequest("name")的速度是非常快的,當請求的網(wǎng)址是http://www.leadbb...
經測試:
http://www.leadbbs.com/test?name=testRequest("name")的速度是非?斓模斦埱蟮木W(wǎng)址是
http://www.leadbbs.com/test?時,
Request("name")的速度下降了近二十來倍.
下面是測試代碼,保存為test.asp
實際中,我們的請求一般僅針對表單的post請求與地址欄的get方法請求(Requestw函數(shù)).
<% 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) %> |