String format or String interpolation?

Most developers slowly stop worrying about the performance of their code. You can ask “Why?!”. Every year, Apple presents a new iPhone with better CPU and more RAM and application optimization has less and less importance than before.
I decided to check what is more efficient, old good string formatting or swift features named string interpolation. For this purpose I created several functions with a different method of creating string.
At the beginning I needed a test model.
Then I expanded it with the necessary functions.
Measurement of the execution time was very simple, I used the method I described earlier here. In a nutshell I used the difference between the time before and after the end of task.
However, during one iteration, we would not notice the difference between them. That’s why I did it in a loop of 100 000 000 reps.
I must admit that the result surprised me. I was sure that some function would be at least a little different than the rest. I ran tests on the simulator and iPhone 6s device.

Conclusions
Half a second of difference can be treated as a measurement error, so we can say that there is no difference in execution there is no difference in the perform time particular functions. But what about the compilation time? This is an issue for another article.
Thank you for reading! If you liked this article, please clap so other people can read it too. I will also have more motivation for next article :) You can also see my other articles, maybe you will find something for you.
If you have any question or suggestion leave a comment.
