Re: Something like "ping" for windows messages.




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.

.



Relevant Pages

  • Re: Something like "ping" for windows messages.
    ... I'm quite certain it is not going into the message pump or the ... figured out how much time is involved, you can pump a hundred requests at it, and see how ... block the main GUI thread because mouse clicks get too far out in the queue, ... same and only varying one part (the http server), ...
    (microsoft.public.vc.mfc)
  • Re: Authenticate with RACF from Web App
    ... The web server on distributed redirects to the HTTP Server on z/OS ... The app is web-based running on non-zOS platform. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: debugging or tracing a multi-threaded program
    ... I am writing a multi threaded app (basically a small HTTP server that ... and it's hard to piece these snapshots together to find out ... fast writein the app, but how to synchronize across threads? ... analysis tools to find something to help you? ...
    (comp.unix.programmer)
  • Re: Running PHP in custom www server app
    ... >> same app actually). ... >> generated pages through PHP. ... you forgot to mention what HTTP server you are using... ... arisen a need to add PHP support to our "server"... ...
    (comp.lang.php)