porting benchmarks from optimize branch