Speed tests

As a part of optimizing the app, some simple speed measuring code was
added and it possibly breaks some other stuff. Using the previous
revision is recommended.