locked
Big performance difference with "execute" command between IIS7.5 and IIS10 RRS feed

  • Question

  • User30296483 posted

    Hello, 

    I am executing these two cycles in Classic ASP:

    for g=1 to 5000
        dummy=1
    next

    and

    for g=1 to 5000
        execute("dummy=1")
    next
    

    On my cloud server (Windows 2008 with IIS 7.5) these two cycles are executed in 0 seconds. On a local powerful machine (with Windows 10) the first cycle is executed in 0 seconds, the second one in about 20-30 seconds.

    Tried on a second Windows 10 machine (IIS 10.0), same result.

    Cannot understand what is happening, any ideas?

    This is the script I'm using for testing:

    <%
    server.scripttimeout=9000000
    
    starttime=now()
    response.write "<b>Standard method</b><br>Start time: "&starttime
    response.flush  
    
    for c=1 to 5000
        dummy=1
    next
    
    response.write "<br>End time: "&now()
    response.write "<br>Time elapsed: "&datediff("s",starttime,now())&" seconds"
    
    starttime=now()
    response.write "<br><br><b>Execute method</b><br>Start time: "&starttime
    response.flush  
    
    for c=1 to 5000
        execute("dummy=1")
    next
    
    response.write "<br>End time time: "&now()
    response.write "<br>Time elapsed: "&datediff("s",starttime,now())&" seconds"
    %>

    Thank you Smile

    Tuesday, October 10, 2017 7:13 AM

All replies

  • User-460007017 posted

    Hi Kapox,

    The code excute both 0 seconds on my side which is run in IIS7. Even I execute the page in IIS Express 10, it also return the same result I'm not sure why there is such a performance difference between IIS 10 express and IIS 10. What if add Response.Clear  to clean the buffer after first loop?  In addition, did you install ASP in your local powerfull machine?

    You could check whether there is something different between your IIS7.5 server and win 10 serer. Like application pool identity permission,temp folder permission. Even windows defender could effect the performance sometimes.

    Best Regards,

    Yuk Ding

    Wednesday, October 11, 2017 3:13 AM
  • User30296483 posted

    Dear Yuk Ding,

    thank you for suggestions. I tried adding Response.Clear into the cycle, but it doesn't make any difference. On local machine I have ASP installed.

    Windows defender is disabled. I played with permissions, but no success...

    Thursday, October 12, 2017 10:23 AM
  • User-460007017 posted

    Hi Kapox,

    I test the page on my side and the second result return 4 ms in windows 10, it looks there is really some performance difference in different OS. Best Regards,

    Yuk Ding

    Tuesday, October 17, 2017 8:58 AM