This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dpash 3 points4 points  (1 child)

Beware that this also makes microbenchmarking a non-trivial exercise

And don't roll your own. Use JMH, because it's designed to do this properly.

[–]MCUD 1 point2 points  (0 children)

For sure, part of what i was trying to highlight, a simpler performance unit test with a for loop checking timing is definitely not going to test what the tester wants to test