porting bench from optimize branch
porting benchmarks from optimize branch
Merge branch 'master' into optimize