Section 55. The supreme judicial court, the superior court or the probate court shall award reasonable compensation to commissioners, assessors, referees, masters in chancery and special masters, for duties performed under the direction of said court, and to arbitrators appointed under chapter two hundred and fifty-one upon whose awards judgment is entered, which shall be paid by the commonwealth.