Colleagues can usually tell, tech lead less so, and manager is often clueless. Basically the only way to judge someone’s output is to work alongside him for a couple months, and only a few colleagues in the team do that. Maybe methodically reviewing someone’s commits every 6 months or so would also work, but that ignores one’s input into decision making, help and mentoring of colleagues etc.