There is a lot of duplicated code in benchmarks. It would be nice to rewrite the benchmarks such that the code is not duplicated.