Enable optimization.
Added performance measure helper.