A suggestion for JMeter 2.0: Samplers at the moment have a timestamp which is set (e.g. by JMeterThread) at the END of the sample. I think this is counter-intuitive (not sure if it is mentioned in the documentation either).
Each sampler has to provide the elapsed time; they do this by calling System.currentTimeMillis(). I would like to propose adding two methods to the SampleResult class. These would be called by the Sampler just before starting its work and immediately after the work has finished. E.g. these could be called: - sampleStarting - sampleEnded Advantages: + Samplers would be simpler - no need to fetch and save time locally + It would be very easy to use a higher-precision timer + Could easily swap to saving sampler start times instead of end-times + Could accumulate overall times multiple samples Disadvantages: - code would need to be updated, but this could be done gradually (e.g. deprecate and later remove the exisiting methods) - there must be some others ...? SampleResult probably needs to be extended anyway to cope with storing additional response data (e.g. response headers - see bug 23038 http://issues.apache.org/bugzilla/show_bug.cgi?id=23028 - Need Regex HTTP Post Processor for HTTP Response Headers) Comments? -- The opinions expressed herein are my own, and are not necessarily endorsed by my employer ... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
