Iran has been putting prisoners to death at a pace unseen since 1988, when it executed thousands at the end of the Iran-Iraq war.