I've a business method implemented in two different ways. I want to analyze the performance of the implementations. How should I do this?
Asked
Active
Viewed 78 times
-1
-
You can make your own input date for those methods. Then detect time before method start and after method finish work and ready :) (use System.getCurrentTimeMIllis()) – Kamen Stoykov Jul 04 '13 at 12:05
-
what's a 'business' method? – Oliver Watkins Jul 04 '13 at 12:15
3 Answers
0
Write a timing aspect and use something like JMeter to create a high volume test. Keep statistics on performance: min, mean, max, standard deviation, quartiles. Do Student-T test on both to see if the difference in means is significantly different.
If it's a business method, you'll need to generate sufficient scrubbed data to drive the application. It's easy if a single request is sufficient, but you'll have to write a randomized message generator if not.
That should tell you what's going on.

duffymo
- 305,152
- 44
- 369
- 561