querySelector vs getElementsById (v148)

Revision 148 of this benchmark created by no name pls.. on


Preparation HTML

<center style="display:none"><table id="hnmain" border="0" cellpadding="0" cellspacing="0" width="85%" bgcolor="#f6f6ef">
        <tr><td bgcolor="#ff6600"><table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding:2px"><tr><td style="width:18px;padding-right:4px"><a href="http://www.ycombinator.com"><img src="y18.gif" width="18" height="18" style="border:1px #ffffff solid;"></a></td>
                  <td style="line-height:12pt; height:10px;"><span class="pagetop"><b><a href="news">Hacker News</a></b><img src="s.gif" height="1" width="10"><a href="newest">new</a> | <a href="newcomments">comments</a> | <a href="show">show</a> | <a href="ask">ask</a> | <a href="jobs">jobs</a> | <a href="submit">submit</a></span></td><td style="text-align:right;padding-right:4px;"><span class="pagetop">
                              <a href="login?goto=news">login</a>
                          </span></td>
              </tr></table></td></tr>
<tr style="height:10px"></tr><tr><td><table border="0" cellpadding="0" cellspacing="0">
              <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">1.</span></td>      <td><center><a id="up_10482517" href="vote?for=10482517&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://fountain.io">Fountain – A markup language for screenwriting</a><span class="sitebit comhead"> (<a href="from?site=fountain.io"><span class="sitestr">fountain.io</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482517">37 points</span> by <a href="user?id=ecopoesis">ecopoesis</a> <a href="item?id=10482517">2 hours ago</a>  | <a href="item?id=10482517">7 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">2.</span></td>      <td><center><a id="up_10482508" href="vote?for=10482508&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://arstechnica.com/science/2015/10/lithium-air-battery-research-shows-potential-paths-to-next-gen-batteries/">Lithium-air battery research shows potential paths to next-gen batteries</a><span class="sitebit comhead"> (<a href="from?site=arstechnica.com"><span class="sitestr">arstechnica.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482508">19 points</span> by <a href="user?id=superfx">superfx</a> <a href="item?id=10482508">2 hours ago</a>  | <a href="item?id=10482508">5 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">3.</span></td>      <td><center><a id="up_10482578" href="vote?for=10482578&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://highline.huffingtonpost.com/articles/en/they-burn-witches-here/">Witch Burnings in Papua New Guinea</a><span class="sitebit comhead"> (<a href="from?site=huffingtonpost.com"><span class="sitestr">huffingtonpost.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482578">13 points</span> by <a href="user?id=fahimulhaq">fahimulhaq</a> <a href="item?id=10482578">1 hour ago</a>  | <a href="item?id=10482578">2 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">4.</span></td>      <td><center><a id="up_10482701" href="vote?for=10482701&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://www.slate.com/articles/news_and_politics/crime/2015/10/massachusetts_crime_lab_scandal_worsens_dookhan_and_farak.single.html">How many people are in jail based on faked data?</a><span class="sitebit comhead"> (<a href="from?site=slate.com"><span class="sitestr">slate.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482701">16 points</span> by <a href="user?id=Amorymeltzer">Amorymeltzer</a> <a href="item?id=10482701">40 minutes ago</a>  | <a href="item?id=10482701">discuss</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">5.</span></td>      <td><center><a id="up_10482705" href="vote?for=10482705&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://www.nytimes.com/2015/10/31/us/bubonic-plague-oregon.html" rel="nofollow">Bubonic Plague Found in Oregon Teenager</a><span class="sitebit comhead"> (<a href="from?site=nytimes.com"><span class="sitestr">nytimes.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482705">6 points</span> by <a href="user?id=Amorymeltzer">Amorymeltzer</a> <a href="item?id=10482705">38 minutes ago</a>  | <a href="item?id=10482705">discuss</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">6.</span></td>      <td><center><a id="up_10482585" href="vote?for=10482585&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://www.scala-lang.org/blog/2015/10/23/dotty-compiler-bootstraps.html" rel="nofollow">The Dotty experimental compiler for Scala now bootstraps</a><span class="sitebit comhead"> (<a href="from?site=scala-lang.org"><span class="sitestr">scala-lang.org</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482585">15 points</span> by <a href="user?id=_sunshine_">_sunshine_</a> <a href="item?id=10482585">1 hour ago</a>  | <a href="item?id=10482585">2 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">7.</span></td>      <td><center><a id="up_10482068" href="vote?for=10482068&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://hpi.de/baudisch/projects/protopiper.html">Protopiper: Physically Sketching Room-Sized Objects at Actual Scale</a><span class="sitebit comhead"> (<a href="from?site=hpi.de"><span class="sitestr">hpi.de</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482068">104 points</span> by <a href="user?id=fisherjeff">fisherjeff</a> <a href="item?id=10482068">7 hours ago</a>  | <a href="item?id=10482068">10 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">8.</span></td>      <td><center><a id="up_10482577" href="vote?for=10482577&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://www.marketwatch.com/story/snapchats-new-scary-privacy-policy-has-left-users-outraged-2015-10-29">Snapchat’s new ‘scary’ privacy policy</a><span class="sitebit comhead"> (<a href="from?site=marketwatch.com"><span class="sitestr">marketwatch.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482577">62 points</span> by <a href="user?id=Shivetya">Shivetya</a> <a href="item?id=10482577">1 hour ago</a>  | <a href="item?id=10482577">27 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">9.</span></td>      <td><center><a id="up_10482242" href="vote?for=10482242&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://securityledger.com/2015/10/fbis-advice-on-cryptolocker-just-pay-the-ransom/">FBI’s Advice on Ransomware? Just Pay the Ransom</a><span class="sitebit comhead"> (<a href="from?site=securityledger.com"><span class="sitestr">securityledger.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482242">34 points</span> by <a href="user?id=rubikscube">rubikscube</a> <a href="item?id=10482242">5 hours ago</a>  | <a href="item?id=10482242">29 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">10.</span></td>      <td><center><a id="up_10482257" href="vote?for=10482257&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://arstechnica.com/business/2015/10/comcast-and-other-isps-boost-network-investment-despite-net-neutrality/">Title II kills investment? Comcast and other ISPs are now spending more</a><span class="sitebit comhead"> (<a href="from?site=arstechnica.com"><span class="sitestr">arstechnica.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482257">23 points</span> by <a href="user?id=Deinos">Deinos</a> <a href="item?id=10482257">5 hours ago</a>  | <a href="item?id=10482257">9 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">11.</span></td>      <td><center><a id="up_10482678" href="vote?for=10482678&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://medium.com/i-math/why-5-x-3-5-5-5-was-marked-wrong-b34607a5b74c">Why 5 x 3 = 5 and 5 and 5 Was Marked Wrong</a><span class="sitebit comhead"> (<a href="from?site=medium.com"><span class="sitestr">medium.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482678">24 points</span> by <a href="user?id=nonameface">nonameface</a> <a href="item?id=10482678">46 minutes ago</a>  | <a href="item?id=10482678">22 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">12.</span></td>      <td></td><td class="title"><span class="deadmark"></span><a href="https://www.themuse.com/jobs/themuse" rel="nofollow">The Muse (YC W12) Is Hiring Back-End, Growth and Sales</a><span class="sitebit comhead"> (<a href="from?site=themuse.com"><span class="sitestr">themuse.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        46 minutes ago              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">13.</span></td>      <td><center><a id="up_10482315" href="vote?for=10482315&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://www.usenix.org/system/files/login/articles/08_lloyd_41-43_online.pdf">A Short Primer on Causal Consistency (2013) [pdf]</a><span class="sitebit comhead"> (<a href="from?site=usenix.org"><span class="sitestr">usenix.org</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482315">15 points</span> by <a href="user?id=espeed">espeed</a> <a href="item?id=10482315">4 hours ago</a>  | <a href="item?id=10482315">discuss</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">14.</span></td>      <td><center><a id="up_10481933" href="vote?for=10481933&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://www.eff.org/deeplinks/2015/10/victory-users-librarian-congress-renews-and-expands-protections-fair-uses">Librarian of Congress Renews and Expands Protections for Fair Uses</a><span class="sitebit comhead"> (<a href="from?site=eff.org"><span class="sitestr">eff.org</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10481933">60 points</span> by <a href="user?id=walterbell">walterbell</a> <a href="item?id=10481933">9 hours ago</a>  | <a href="item?id=10481933">3 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">15.</span></td>      <td><center><a id="up_10482061" href="vote?for=10482061&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://www.rtl-sdr.com/transmitting-fm-am-ssb-sstv-and-fsq-with-just-a-raspberry-pi/">Transmitting FM, AM, SSB, SSTV and FSQ with Just a Raspberry Pi</a><span class="sitebit comhead"> (<a href="from?site=rtl-sdr.com"><span class="sitestr">rtl-sdr.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482061">50 points</span> by <a href="user?id=irfan">irfan</a> <a href="item?id=10482061">7 hours ago</a>  | <a href="item?id=10482061">9 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">16.</span></td>      <td><center><a id="up_10482033" href="vote?for=10482033&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://mashable.com/2015/10/29/kim-dotcom-meganet/">Kim Dotcom reveals more about his blockchain-inspired alternative Internet</a><span class="sitebit comhead"> (<a href="from?site=mashable.com"><span class="sitestr">mashable.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482033">56 points</span> by <a href="user?id=ascorbic">ascorbic</a> <a href="item?id=10482033">8 hours ago</a>  | <a href="item?id=10482033">28 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">17.</span></td>      <td><center><a id="up_10477896" href="vote?for=10477896&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://petdance.wordpress.com/2011/09/26/hanging-out-at-the-vascular-surgery-conference/">What I learned hanging out at the vascular surgery conference (2011)</a><span class="sitebit comhead"> (<a href="from?site=petdance.wordpress.com"><span class="sitestr">petdance.wordpress.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10477896">40 points</span> by <a href="user?id=gliese1337">gliese1337</a> <a href="item?id=10477896">8 hours ago</a>  | <a href="item?id=10477896">3 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">18.</span></td>      <td><center><a id="up_10482209" href="vote?for=10482209&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://www.politico.com/magazine/story/2015/10/rikers-island-plea-bargains-213223">How Rikers Drove My Innocent Patient to Plead Guilty</a><span class="sitebit comhead"> (<a href="from?site=politico.com"><span class="sitestr">politico.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482209">120 points</span> by <a href="user?id=de_Selby">de_Selby</a> <a href="item?id=10482209">5 hours ago</a>  | <a href="item?id=10482209">71 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">19.</span></td>      <td><center><a id="up_10482238" href="vote?for=10482238&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://news.mit.edu/2012/conjuring-memories-artificially-0322">Researchers show that memories reside in specific brain cells (2012)</a><span class="sitebit comhead"> (<a href="from?site=mit.edu"><span class="sitestr">mit.edu</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482238">14 points</span> by <a href="user?id=espeed">espeed</a> <a href="item?id=10482238">5 hours ago</a>  | <a href="item?id=10482238">discuss</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">20.</span></td>      <td><center><a id="up_10482190" href="vote?for=10482190&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://sciencematters.io/">Matters – single observation-publishing scientific journal</a><span class="sitebit comhead"> (<a href="from?site=sciencematters.io"><span class="sitestr">sciencematters.io</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482190">21 points</span> by <a href="user?id=phreeza">phreeza</a> <a href="item?id=10482190">6 hours ago</a>  | <a href="item?id=10482190">discuss</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">21.</span></td>      <td><center><a id="up_10481868" href="vote?for=10481868&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://arstechnica.com/gadgets/2015/10/the-new-microsoft-band-has-all-the-workouts-you-could-ever-dream-of/">Microsoft Band 2.0 Review</a><span class="sitebit comhead"> (<a href="from?site=arstechnica.com"><span class="sitestr">arstechnica.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10481868">47 points</span> by <a href="user?id=bootload">bootload</a> <a href="item?id=10481868">10 hours ago</a>  | <a href="item?id=10481868">30 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">22.</span></td>      <td><center><a id="up_10481752" href="vote?for=10481752&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://fee.org/freeman/there-s-no-escaping-competition">There’s No Escaping Competition: People Need a Way to Decide Who Gets What</a><span class="sitebit comhead"> (<a href="from?site=fee.org"><span class="sitestr">fee.org</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10481752">23 points</span> by <a href="user?id=nkurz">nkurz</a> <a href="item?id=10481752">8 hours ago</a>  | <a href="item?id=10481752">27 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">23.</span></td>      <td><center><a id="up_10480702" href="vote?for=10480702&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://arstechnica.com/tech-policy/2015/10/eff-asks-appeals-court-to-shut-down-the-eastern-district-of-texas/">EFF asks appeals court to “shut down the Eastern District of Texas”</a><span class="sitebit comhead"> (<a href="from?site=arstechnica.com"><span class="sitestr">arstechnica.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10480702">251 points</span> by <a href="user?id=mmastrac">mmastrac</a> <a href="item?id=10480702">17 hours ago</a>  | <a href="item?id=10480702">42 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">24.</span></td>      <td><center><a id="up_10478310" href="vote?for=10478310&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://abbernie.github.io/gendy/">Show HN: Gendy.js – A stochastic synthesis module for Web Audio</a><span class="sitebit comhead"> (<a href="from?site=abbernie.github.io"><span class="sitestr">abbernie.github.io</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10478310">19 points</span> by <a href="user?id=abbernie">abbernie</a> <a href="item?id=10478310">8 hours ago</a>  | <a href="item?id=10478310">discuss</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">25.</span></td>      <td><center><a id="up_10480792" href="vote?for=10480792&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://theappendix.net/blog/2014/1/the-key-of-hell-a-sorcery-manual-from-the-enlightenment">The Key of Hell: An Enlightenment Sorcery Manual (2014)</a><span class="sitebit comhead"> (<a href="from?site=theappendix.net"><span class="sitestr">theappendix.net</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10480792">18 points</span> by <a href="user?id=benbreen">benbreen</a> <a href="item?id=10480792">8 hours ago</a>  | <a href="item?id=10480792">2 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">26.</span></td>      <td><center><a id="up_10477721" href="vote?for=10477721&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://twitchinstalls.com">Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game</a><span class="sitebit comhead"> (<a href="from?site=twitchinstalls.com"><span class="sitestr">twitchinstalls.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10477721">765 points</span> by <a href="user?id=jbott">jbott</a> <a href="item?id=10477721">1 day ago</a>  | <a href="item?id=10477721">243 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">27.</span></td>      <td><center><a id="up_10482739" href="vote?for=10482739&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://www.quora.com/What-does-it-feel-like-to-be-fired-from-Google?share=1" rel="nofollow">What does it feel like to be fired from Google?</a><span class="sitebit comhead"> (<a href="from?site=quora.com"><span class="sitestr">quora.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482739">4 points</span> by <a href="user?id=kawera">kawera</a> <a href="item?id=10482739">26 minutes ago</a>  | <a href="item?id=10482739">discuss</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">28.</span></td>      <td><center><a id="up_10482049" href="vote?for=10482049&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="https://github.com/cloudflare/bpftools">BPF Tools – packet analyst toolkit</a><span class="sitebit comhead"> (<a href="from?site=github.com"><span class="sitestr">github.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10482049">15 points</span> by <a href="user?id=luu">luu</a> <a href="item?id=10482049">7 hours ago</a>  | <a href="item?id=10482049">3 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">29.</span></td>      <td><center><a id="up_10481507" href="vote?for=10481507&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://julesjacobs.github.io/2015/08/17/bayesian-scoring-of-ratings.html">Bayesian ranking of items with up and downvotes or 5 star ratings</a><span class="sitebit comhead"> (<a href="from?site=julesjacobs.github.io"><span class="sitestr">julesjacobs.github.io</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10481507">133 points</span> by <a href="user?id=striking">striking</a> <a href="item?id=10481507">13 hours ago</a>  | <a href="item?id=10481507">26 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
                <tr class='athing'>
      <td align="right" valign="top" class="title"><span class="rank">30.</span></td>      <td><center><a id="up_10478970" href="vote?for=10478970&amp;dir=up&amp;goto=news"><div class="votearrow" title="upvote"></div></a></center></td><td class="title"><span class="deadmark"></span><a href="http://radar.oreilly.com/2015/10/do-one-thing.html">Do One Thing</a><span class="sitebit comhead"> (<a href="from?site=oreilly.com"><span class="sitestr">oreilly.com</span></a>)</span></td></tr><tr><td colspan="2"></td><td class="subtext">
        <span class="score" id="score_10478970">284 points</span> by <a href="user?id=steelbird">steelbird</a> <a href="item?id=10478970">19 hours ago</a>  | <a href="item?id=10478970">112 comments</a>              </td></tr>
      <tr class="spacer" style="height:5px"></tr>
            <tr class="morespace" style="height:10px"></tr><tr><td colspan="2"></td><td class="title"><a href="news?p=2" rel="nofollow">More</a></td></tr>
  </table></td></tr>
<tr><td><img src="s.gif" height="10" width="0"><table width="100%" cellspacing="0" cellpadding="1"><tr><td bgcolor="#ff6600"></td></tr></table><br><center><span class="yclinks"><a href="newsguidelines.html">Guidelines</a>
        | <a href="newsfaq.html">FAQ</a>
        | <a href="mailto:hn@ycombinator.com">Support</a>
        | <a href="https://github.com/HackerNews/API">API</a>
        | <a href="security.html">Security</a>
        | <a href="lists">Lists</a>
        | <a href="bookmarklet.html">Bookmarklet</a>
        | <a href="dmca.html">DMCA</a>
        | <a href="http://www.ycombinator.com/apply/">Apply to YC</a>
        | <a href="mailto:hn@ycombinator.com">Contact</a></span><br><br><form method="get" action="//hn.algolia.com/">Search:
          <input type="text" name="q" value="" size="17"></form>
            </center></td></tr>      </table></center>

Test runner

Ready to run.

Testing in
TestOps/sec
querySelector
var elem1 = document.querySelector('#score_10482517');
var value1 = elem1.innerText;
var
i = 0,
e = 0;
if (value1 !== 'a') {
  i ++;
} else {
  e ++
}
ready
getElementsById
var elem2 = document.getElementById('score_10482517');
var value2 = elem2.innerText;
var
i = 0,
e = 0;
if (value2 !== 'a') {
  i ++;
} else {
  e ++
}
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.