Funny, I'm about to write a similar test; I think I'll use LWP::UserAgent and Time::HiRes to do the job. I'll compare response-times of different servers to see if our cms has response-time-problems under load, or if a colleague just abuses our dsl-connection :)
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
| [reply] |
Here you go, my first shot, should get you started for your measurements. Pay attention to the following points:
- don't trust times to the millisecond, they depend on what your computer is doing else
- this is tested but will still contain errors of differing severity , it's just to get you started
- If you operate with this using a "comparison-host", as I do, note that the pages should be of nearly the same size, to get a feel for what's going on by looking at the numbers directly...
The code:
I'm grateful for comments on this, if this is completely braindamaged or if you spot an error,...
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
| [reply] [d/l] |
Of more interest to me and I'm not even sure it is doable
is writing a script that profiles database pool use
in a weblogic server by application. I have a weblogic
environment that keeps blowing up due to running out of
database connection pools.
Peter L. Berghold -- Unix Professional Peter at Berghold dot Net |
| |
Dog trainer, dog agility exhibitor, brewer of
fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and
a good Belgian ale in your chalice. |
| [reply] |