Chapter 3. Testing and Identifying Slow Code with the Swift Toolkit
The process of application development can usually be split into three phases:
- Trying out new ideas
- Implementing code and checking whether it works correctly
- Measuring the performance of the result obtained
The first phase involves trying out a new idea. Let's say you would like to implement a sorting algorithm and you want to quickly prototype a solution.
In the second phase, you would actually implement the solution and check whether it is working correctly. In this chapter, we will cover how we can test and check whether a solution is implemented correctly.
The third and final phase involves measuring the performance of the software created. You would do this when you have developed enough code to test, or if you see bad performance characteristics while developing.