improve perfromance measurements