-
1. Re: JSFUnit has very slow initialization
jadtn Mar 15, 2009 10:47 AM (in response to jadtn)hi,
to continue i ve take screen shots with jprofiler, there is no way to upload image in forum?
So, com.gargoylesoftware.htmlunit.html.XpathUtils.getByXPath take long time (67s) and org.mozilla.javascript.ScripableObjet 66s
(Tests during same time under ie or firefox 3)
The thread com.gargoylesoftware.htmlunit.TreadManager take over 25% of time with 195s (for 20 tests)
I continue my investigations.. -
2. Re: JSFUnit has very slow initialization
ssilvert Mar 16, 2009 9:48 AM (in response to jadtn)This is good information. Thanks for taking the time to do the profiling.
An initial request could easily be 2000ms because there is some application setup involved. I would think that 8000ms would be unusual unless you were doing something intensive with your own application setup on the first request. But this is all speculation on my part because I haven't had time to do proper profiling.
Profiling has been on my to-do list for quite some time and I plan for optimization to be a major part of the next release. I've now created an official Jira task for it.
https://jira.jboss.org/jira/browse/JSFUNIT-203
Please try to attach your screen shots to the Jira task. If you are unable to do that then you can mail me the screen shots. Any further information you find will be greatly appreciated.
Regards,
Stan -
3. Re: JSFUnit has very slow initialization
jadtn Mar 16, 2009 1:20 PM (in response to jadtn)It s done, i attached jprofiler screen shot in
https://jira.jboss.org/jira/browse/JSFUNIT-203
Adrien -
4. Re: JSFUnit has very slow initialization
ssilvert Mar 16, 2009 2:08 PM (in response to jadtn)Thanks Adrien. This is deep within HtmlUnit. I'll have to get the HtmlUnit team to look at it.
So we are talking about the 4.7% of time spent in XPathUtils.getByXPath()? What do you see when you expand that node?
Stan -
5. Re: JSFUnit has very slow initialization
jadtn Mar 17, 2009 1:28 PM (in response to jadtn)Stan,
I ve expanded the tree to the leef of the 2 big times in profiler.
The files are attached in https://jira.jboss.org/jira/browse/JSFUNIT-203 57percent.jpeg and 42percent.jpeg
Adrien -
6. Re: JSFUnit has very slow initialization
ssilvert Mar 17, 2009 1:37 PM (in response to jadtn)Thanks Adrien.
Stan