Fps measurement tweaks, few performance tests.

Signed-off-by: Peter Mårtensson <veritas.is.me@gmail.com>