Automated Web/HTTP Profiler with Selenium-RC and Python
The Web Dev Zone is brought to you in partnership with Mendix. Discover how IT departments looking for ways to keep up with demand for business apps has caused a new breed of developers to surface - the Rapid Application Developer.
A small open source project I am working on:
Selenium-profiler is a web/http profiler built with Selenium-RC and Python. It profiles page load time and network traffic for a web page. The profiler uses Selenium-RC to automate site navigation (via browser), proxy traffic, and sniff the proxy for network traffic stats as requests pass through during a page load.
It is useful to answer questions like:
- how many http requests does that page make?
- how fast are the http responses coming back?
- which http status codes are returned?
- how many of each object type are requested?
- what is the total page load time?
Get it here:
-------------------------------- results for http://www.google.com/ content size: 38.06 kb http requests: 9 status 200: 6 status 204: 1 status 403: 2 profiler timing: 2.063 secs (page load) 2.047 secs (network: end last request) 0.111 secs (network: end first request) file extensions: (count, size) gif: 1, 8.558 kb ico: 2, 2.488 kb js: 2, 18.046 kb png: 1, 5.401 kb unknown: 3, 3.567 kb http timing detail: 403, GET, /favicon.ico, 111 ms 200, GET, /newkey, 738 ms 200, GET, /, 332 ms 403, GET, /favicon.ico, 3 ms 200, GET, /logo.gif, 255 ms 200, GET, /d9n_Nh4I09g.js, 411 ms 200, GET, /2cca7b2e99206b9c.js, 65 ms 204, GET, /generate_204, 88 ms 200, GET, /nav_logo7.png, 49 ms