browsermob
Create a HAR file with incremental "pages" in your Selenium tests.
https://github.com/lightbody/browsermob-proxy#rest-api
Command Line
npm install --save-dev browsermob
./node_modules/.bin/browsermob-manager update
./node_modules/.bin/browsermob-manager start # optional --port PORT, defaults to 9090
API
var browsermob = ; // attempting to call `.start()` without a live server running will throw an exceptionproxy = browsermob; session = proxystartPORT_NUMBER; // POST call to ADDRESS:PORT/proxy/PORT_NUMBERsessionport // will match PORT_NUMBERproxysessions;session; // PUT request /proxy/PORT_NUMBER/har/, starts a HAR file recording sessionsessionnextNEW_HARFILE_NAME; // PUT request /proxy/PORT_NUMBER/har/pageRefvar harfile = session; // PUT request /proxy/PORT_NUMBER/har, returns a HAR file, and begins a new one// run your (Selenium) tests through the proxyvar harfile = session; // GET request /proxy/PORT_NUMBER/har, then DELETE request /proxy/PORT_NUMBERvar grade = harfilegrade; // run a yslow report, and get the overall score (0 - 100)