However, the Scottish economy topped the table of UK nations and regions on one key measure.