Performance of the upgraded CMS pixel detector for the LHC Phase 1