refactor benchmarking examples to use Benchmark base class