title: jQuery data-* vs class selector - performance?
body: <p>I've seen many examples(including favorite Twitter's bootstrap) where various APIs make use of <code>$("[data-something]")</code> rather than selecting by class <code>$(".something")</code></p>
  
  <p>Nethertheless I tried to find information about performance between these two different selectors. I was surprised that many performance test did find out that those selectors are equally fast on most of the modern browsers so I decided to do <a href="http://jsperf.com/class-vs-data-test" rel="noreferrer">my own test</a></p>
  
  <p>I'm really confused right now and I don't know if it's my test that are done wrong(somehow?) or is it other tests that I inspected before?</p>
  
  <p>Could anybody provide more information if I'm doing something wrong while testing or are these test correct and <strong>data-attribute</strong> selector IS in fact pretty much slower than regular <strong>class</strong> selector?</p>
  
  <p>Thank you</p>