They are drivers not coders. We can build a metric to rank them. (Packages/hour - (SafetyWeight * accidents/year)) would work for drivers with similar routes.
At UPS they incent performance for drivers in ways that don't interfere with the seniority system.
Accident handling is pretty simple: If you have one, barring really, really clear evidence that it's not only not your fault but there is no possible way you could have avoided it, you're fired. The Teamsters lawyer will fight to get you a decent severance package, but that's it. Even with said evidence, you'd better not ever have another.
As for packages/per hour, UPS has a system that calculates the time required for a given route, including driving and deliveries. Drivers get paid max(route_time, actual_time), so if they can get the route done in less than the estimated time they get to go home early without losing pay. Experienced drivers can always beat the estimated time, usually by large margins, and even in the event of breakdowns, etc.
Further, habitually beating your route time gives you the opportunity to take on longer routes. So, many good UPS drivers habitually do 12-hour routes in 7 hours, which means they get paid for 14 hours (the last four of the 12 are time and a half) for working 7. Meanwhile, drivers who habitually take longer than their estimated times get assigned shorter and shorter routes, and, of course, there is a point at which drivers are taking so much longer than the estimate, that they can be fired for cause.
BTW, if you have the perception that UPS drivers are well-paid, you're both wrong and right. Their nominal hourly wages are decent, maxing out at around $20 per hour or a bit above, but those who work hard can easily earn lots of "fake" overtime, as in my example of 14 hours' pay for 7 hours' work. That plus massive amounts of real overtime around the holidays means that UPS drivers' incomes can approach six figures -- but only if they work hard.