O'Reilly logo

Implementation Patterns by Kent Beck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Performance Measurement

This appendix describes the framework used to measure the data on collection performance described in Chapter 9. The problem is stated simply enough—accurately compare the time needed to perform several operations as they scale. However, the problem becomes more complicated when the accuracy of the timer is much less than the time required to complete the operations. The time tester presented here overcomes these problems by performing operations many times. It adapts to the accuracy of the timer by fixing the amount of wall clock time used to measure each operation.

Accurately benchmarking operations in an optimizing implementation of Java requires more knowledge than what is presented here, either in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required