http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=Tuning;action=display;num=1097857107 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4717583
Thank you.
-----Original Message----- From: sebb [mailto:[EMAIL PROTECTED] Sent: November 28, 2004 3:13 PM To: [EMAIL PROTECTED] Subject: Re: The overhead using BeanShell Sampler
On Sun, 28 Nov 2004 13:25:39 -0500, Hugo Villeneuve <[EMAIL PROTECTED]> wrote:
Hello
What is the 'Timer or sleep resolution' ?
By that I mean - how accurate are they? Can they actually measure small time differences?
I think the results below show that they can't.
I dont think the sleep do interrupte because an InterruptedException would have set the success to false.
This is the Result file for a Loop of 10, One Thread, Bean Shell Sampler with : Thread.sleep(100)
<?xml version="1.0" encoding="UTF-8"?> <testResults> <sample t="94" lt="0" ts="1101662840625" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="94" lt="0" ts="1101662840734" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="109" lt="0" ts="1101662840859" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="109" lt="0" ts="1101662840968" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="110" lt="0" ts="1101662841078" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="93" lt="0" ts="1101662841171" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="94" lt="0" ts="1101662841281" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="109" lt="0" ts="1101662841390" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="110" lt="0" ts="1101662841500" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="109" lt="0" ts="1101662841609" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/>
</testResults>
For a Script with Thread.sleep(1000), the results are more consistant.
<sample t="1016" lt="0" ts="1101662913906" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1000" lt="0" ts="1101662914921" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1000" lt="0" ts="1101662915921" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1016" lt="0" ts="1101662916937" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1000" lt="0" ts="1101662917937" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1016" lt="0" ts="1101662918953" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1000" lt="0" ts="1101662919953" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1000" lt="0" ts="1101662920953" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1015" lt="0" ts="1101662921968" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/> <sample t="1000" lt="0" ts="1101662922968" s="true" lb="BeanShell+Sampler" rs="200" rm="OK" dt="text" de="ISO-8859-1"/>
Thank you.
PS I am sending this to your email because I dont known how to send it to the mail archive thread...
Send it to [EMAIL PROTECTED]
--------------------------------------- Hugo Villeneuve, Technologies b-wax [EMAIL PROTECTED] 514.270.8758 5966 St-André, h2s-2k4 http://www.b-wax.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]