Split out the benchmarking code from the unit test and make it a bit more useful.
https://bugzilla.gnome.org/show_bug.cgi?id=795198