2 comments

[ 1.7 ms ] story [ 19.7 ms ] thread
fyi you can do Date.now() instead of new Date().getTime()
The benchmarks could be misleading, given that it stores a reference to the element and attrs - I'd expect it to possibly mess with the garbage collecting, thus not giving you a true benchmark.