I think you are measuring the combined time. Try this: var xmltojson_start = new Date().getTime(); ret = $.xmlToJSON(responseXML); var xmltojson_stop = new Date().getTime();
var template_start = new Date().getTime(); $('#output2').processTemplate(ret); var template_stop = new Date().getTime(); alert("****************************************"+ "\n\tXml to Json: " + (xmltojson_stop - xmltojson_start) + "\n\tTemplate Processing: " + (template_stop - template_start) + "\n********************************************"); On Thu, Jun 26, 2008 at 4:36 PM, Andiih <[EMAIL PROTECTED]> wrote: > > Jack, I'll take a look > Chris, I *think* the timing code I've added in my sample above is only > timing the template step ? > > I've had the opportunity to try this out this afternoon on a number of > machines in the organization, and noted a couple of things... > Its quick in FF3 (which I didn't expect given what I have been > reading) > Its *usually* a lot slower in IE than FF, but some machines are the > opposite. > > So, I need to revise the question : what browser configuration > changes, plugins, settings etc might make a *huge* difference to inter- > browser performance ? > > I'll see if JavaScriptTemplates looks like I can integrate it, and re- > test. > > TIA > > Andrew > > > On Jun 26, 6:02 pm, "chris thatcher" <[EMAIL PROTECTED]> > wrote: > > Andiih, just curious becuase I use jtemplates and havent seen that issue, > > though can you verify that the slow code is not 'xmlToJSON'. I have seen > > the marshalling process take up a lot of time in IE when the xml is > > substantial in size . > > > > Thatcher > > > > > > > > On Thu, Jun 26, 2008 at 12:30 PM, Jack Killpatrick <[EMAIL PROTECTED]> > wrote: > > > > > I don't know how it compares as far as speed, but you might want to try > > > this: > > > > >http://code.google.com/p/trimpath/wiki/JavaScriptTemplates > > > > > We've been using it for more than a year on many of our projects, > including > > > some with large table row outputs, and it's worked for us. > > > > > - Jack > > > > > Andiih wrote: > > > > >> I am using jTemplates (jquery-jtemplates.js) to render a large xml > > >> response by running xmlToJSON then processTemplate. Although the code > > >> works fine, and performance in FF2.0 is acceptable (2672ms) on my test > > >> system, I am getting a result of 9827ms when running in IE7. Is there > > >> a known performance issue with jtemplates ? Are other templte modules > > >> better ? > > > > >> (p.s. the real world code uses jQuery Form plugin and web services, > > >> but the sample below reproduces the issue) > > > > >> Code, and template follow. > > > > > ... snip... > > > > -- > > Christopher Thatcher > -- Christopher Thatcher