Performance benchmark with caliper

Minimal changes to get a `./gradlew time` task to accurately benchmark performance changes for #776.

I'm still looking into JHM but I'm not sure how well it will integrate with Rx's gradle build.