in reply to perl cpu usage on windows machines

More interesting would be to know how much time your script needs to run? If it uses 100% CPU for a millisecond no harm is done

I tested your script on my linux machine without the opcmon call and with the website http://www.ora.com. Needed a tenth of a second to run.

You could put a few print statements like print "I'm here now at point ...\n" in your script to check whether the webaccess or the call to opcmon or something else entirely is using too much time

Replies are listed 'Best First'.
Re^2: perl cpu usage on windows machines
by leonidlm (Pilgrim) on Jul 15, 2008 at 08:05 UTC
    Thank you all for participating. I will profile my script soon, meanwhile I hear an opinion from one of our system administrators saying that windows treating processes differently from unix - If CPU is quite idle windows will prefer to "push on it" (= 100% CPU) to finish the script as fast as possible.
    Can someone confirm this opinion ?