Thursday, 15 May 2014

javascript - CasperJS times out on a page that Chrome can load in much less time. Is this expected? -



javascript - CasperJS times out on a page that Chrome can load in much less time. Is this expected? -

i'm using casperjs 1.1.0-beta3 measure page load times of cpu , info intensive web page. in scenarios, i'm seeing casperjs taking long time observe test-hook have set in place indicate page has finished loading , processing big amount of data.

the test hook uses casper.waitfor function variable gets set in global scope on page. indicates script finish , rendered.

details of page not not relevant, other gets big amount of json info server , processing done on main thread -- no worker threads involved , no cors requests either.

the issue is, casperjs seems take lot more time (10x +) compared identical scenario running on regular chrome.

what might going on? ways debug?

i have setup casperjs scripts take screenshot of page when times out, , shows page still in 'processing' state. indeed looks webkit engine used casper much slower normal chrome.

javascript phantomjs performance-testing casperjs

No comments:

Post a Comment