OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Wierd performance results

[ Lists Home | Date Index | Thread Index ]
  • From: "Gan (E-mail)" <gana@mediaone.net>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 15 Nov 2000 21:57:42 -0600

Title: FW: Please post this to XML-DEV

Hi,

I have a problem with the XMLHTTP component, version 3.0 that comes with MSXML 3.0 release.
I am trying to do some timing tests for various ASP server side implementations.  For some reason,
depending on how I populate the response xml, timing could be different by the order of magnitude.

Here is the code:

<%@  Language=JavaScript %>
<%
    Response.ContentType = "text/xml";
    Response.Expires = -1000;
   
    var doc = Server.CreateObject("MSXML2.DOMDocument");
    doc.async = false;
    doc.setProperty("SelectionLanguage", "XPath");
    doc.load(Request);

        if (doc.documentElement.baseName == "slow")
        {
                Response.Write("<Result/>");           
        }
        else
        {
                var fso, ts, s;
                var ForReading = 1;
                fso = Server.CreateObject("Scripting.FileSystemObject");
                ts = fso.OpenTextFile(Server.MapPath("fast.xml"), ForReading);
                s = ts.ReadAll();
                Response.Write(s);
                ts.Close();
        }   
%>

fast.xml contains the same data that I use in the first case: "<Result/>"

The timing for 100 invocations of "fast" and "slow" versions of the test is as such:

Fast - 1790 ms
Slow - 20000 ms

I have also noticed that the contents of the file I am pumping into the
response does not really matter from the timing standpoint.

What could be the reason for such results?

Thanks,





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS