This gem collects and summarises metrics speficied in the W3C Navigation web performance specifications at http://w3c-test.org/webperf/specs/NavigationTiming/ when using watir-webdriver and a compatible browser
= watir-webdriver-performance
This gem collects and summarises metrics speficied in the W3C Navigation
web performance specifications at
https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html when using
watir-webdriver and a compatible browser.
== Example output of browser.performance
All summary times are in milliseconds, and are an abstraction of the w3c
web performance specification.
{
:summary => {
:redirect=>0,
:app_cache=>0,
:dns=>0,
:tcp_connection=>982,
:tcp_connection_secure=>721,
:request=>1222,
:response=>4,
:dom_processing=>4293,
:response_time=>7298,
:time_to_first_byte=>2205,
:time_to_last_byte=>2209
},
:navigation => {
:type => 0,
:type_back_forward => 2,
:redirect_count => 0,
:type_reserved => 255,
:type_navigate => 0,
:type_reload => 1
},
:memory => {
:total_js_heap_size => 0,
:js_heap_size_limit => 0,
:used_js_heap_size => 0
},
:timing => {
:domain_lookup_start => 1303180421599,
:load_event_end => 0,
:connect_end => 1303180421642,
:response_end => 1303180421853,
:dom_loading => 1303180421840,
:navigation_start => 0,
:redirect_end => 0,
:unload_event_start => 0,
:secure_connection_start => 0,
:connect_start => 1303180421600,
:dom_content_loaded_event_end => 1303180421934,
:domain_lookup_end => 1303180421600,
:dom_interactive => 1303180421934,
:load_event_start => 0,
:request_start => 1303180421642,
:response_start => 1303180421838,
:dom_complete => 0,
:fetch_start => 1303180421598,
:dom_content_loaded_event_start => 1303180421934,
:redirect_start => 0,
:unload_event_end => 0
}
}
== Contributing to watir-webdriver-performance
== Copyright
Copyright © 2011 Tim Koopmans. See LICENSE.txt for further details.