The effect of the death penalty as a deterrent has been studied and found lacking. It seems once you hit a certain threshold of "bad for me" worse punishments like capital punishment don't perform any better. Still, it's not often that I get to say that the Chinese government has the right idea even if in this case they take it too far which is more what I'd expect from them.