March 2015
Intermediate to advanced
236 pages
5h 26m
English
Rob Pike of Google: “Bottlenecks occur in surprising places, so don’t try to second guess and put in a speed hack until you have proven that’s where the bottleneck is.” Indeed, many programmers speculate about where performance problems might lie and about what the best resolution might be. The only problem is that their speculations are often dead wrong.
Rather than guess and stab at performance concerns, you can design unit tests to help you know where true problems lie and whether or not your speculative changes make enough of a difference.
This test asserts that a bit of code runs within a certain amount of time:
| iloveyouboss/15/test/iloveyouboss/ProfileTest.java | |
| | @Test |
| | public void findAnswers() ... |
Read now
Unlock full access