Adapt speed of tool as function of deviation from target rate of workpieces