in reply to How to benchmark with WWW::Mechanize::Firefox?

Definitely what lanx said, load a page, that loads js , that creates iframes/ or frames to load stuff, and times it through js

You can get some ideas/code from http://www.quirksmode.org/dom/innerhtml.html

  • Comment on Re: How to benchmark with WWW::Mechanize::Firefox?

Replies are listed 'Best First'.
Re^2: How to benchmark with WWW::Mechanize::Firefox?
by LanX (Saint) on Jan 24, 2012 at 23:13 UTC
    > Definitely what lanx said, load a page, that loads js , that creates iframes/ or frames to load stuff, and times it through js

    No frames!!!

    Basically use something like

    $load = $mech->repl->declare(<<'__JS'); function () { // start benchmark window.content.location.href = "http://www.perlmonks.org"; // wait till ready (can be tricky) // stop benchmark // return diff } __JS

    and $load->() should load the page.

    Cheers Rolf