attr('id') vs [0].id post last week asking about the jQuery.fn.prop's vs jQuery.fn.attr's performance, I extended the program to include prop and enabled profiling across all browsers (thanks to time.js). The program also does the tests a little more thoroughly, running 1000000 operations 5 times per each operation and averages the result.Some of the result surprised me a little, in particular Safari beating Chrome on
d.attr('id') but nothing else, and d.prop('id') was the clear winner.
