added performance measure for the first optimization