Which is faster?
arr.contains(val);
or
$.inArray(val, arr);
is there an accurate way to test?
If you're looking for an easy way to benchmark JS, I'd suggest jsperf.com.