johnlpage / POCDriver

Workload Driver for MongoDB in Java
Other
204 stars 87 forks source link

Allow reporting of multiple latency threshold #31

Closed tjworks closed 5 years ago

tjworks commented 5 years ago

During load test, we may wish to see the 90th 95th 99th percentile latency value. With this PR one can print multiple latency stats, for instance, 95% is under 50ms, 99% is under 200ms.

tjworks commented 5 years ago

found some bugs, fixing it

johnlpage commented 5 years ago

This is something that I deliberately didn't put in POC Driver for two reasons.

(a) Technically - although I've yet to look at your implementation - you need to record the time for every operation which given there may be millions per second over a long period can result in exceptionally high memory usage. This then leads to a performance impact in POC driver too.

(b) Looking at the latency figures for 90/95/99 is a backwards way of thinking about latency. Better to choose an acceptable latency period in you design and the centile of operations required to hit it and then test that you meet that.