Factorized benchmarks code