Re: Something like "ping" for windows messages.
- From: "Peter Smithson" <Peter_Smithson@xxxxxxxxxxx>
- Date: 8 Dec 2006 13:01:39 -0800
Joseph M. Newcomer wrote:
So the responsiveness to any PARTICULAR message is
going to depend solely on what your app is doing, what its current priority is relative to
all other applications and all other kernel threads, what they are doing, and so on. So
in general measuring the responsiveness to any one message is problematic in predicting
responsiveness on the average; you'd have to run not a 10-second, 10-message test, but a
several-hour, tens-to-hundreds-of-messages-per-second test. Any data from a small sample
would not be representative of reality.
That's the joy of benchmarking! There will only be two processes on my
system (of any note). One will be the server, the other will be the
http client test - I suppose that could run on another PC.
The position of the GUI shouldn't come into it as there isn't really a
GUI. I know there's a lot to it but by keeping the circumstances the
same and only varying one part (the http server), I'll find out what
effect the http server is having on the responsiveness of the rest of
the server.
What are you hoping to discover?
The server has to process messages in order to work. If the new http
component is coded such that it stops the message pump from working, I
want to know about it. I need a way to test the message pump. I think
this will give me a clue as to how responsive the sytem is going to be.
Note that I'm not that interested in how fast the http server is (at
this stage).
I know it's an approximation but if it's taking 10 seconds to respond
to a message then I know that's bad. I'm not looking for small
variations - though if I can get consistent results then that would be
nice.
Perhaps I need to post more messages to get more accuracy.
I've found out about WM_NULL message from
http://support.microsoft.com/kb/231844 and pinched some code from
http://www.codeproject.com/cpp/ModuleNameFromWindwHandle.asp so I'll
see how it goes.
Thanks for your replies. The lack of threading in 16 bit Windows
explains a lot about this app!
Peter.
.
- Follow-Ups:
- Re: Something like "ping" for windows messages.
- From: Joseph M . Newcomer
- Re: Something like "ping" for windows messages.
- From: Joseph M . Newcomer
- Re: Something like "ping" for windows messages.
- References:
- Something like "ping" for windows messages.
- From: Peter Smithson
- Re: Something like "ping" for windows messages.
- From: Joseph M . Newcomer
- Something like "ping" for windows messages.
- Prev by Date: Re: Programming for Vista ?
- Next by Date: Re: Programming for Vista ?
- Previous by thread: Re: Something like "ping" for windows messages.
- Next by thread: Re: Something like "ping" for windows messages.
- Index(es):
Relevant Pages
|