Search on JSON vs TABLE itself

Search on JSON vs TABLE itself

hi Guys,

what is best approach for performance..

1) searching in json by ( $.grep) and then bind to table in every keyup
                           OR
2) searching in Table itself and show hide the <TR>

please suggest..!!!