jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
comparison of different techniques to get the child elements size, using $("#foo > div").size() and $('#foo').children().size() and also .childElementCount
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="foo">
This parent div#foo contains 900 divs & 100 spans and some more child div's in one of the div
<div>Child1</div>
<div>Child2</div>
<div>Child3</div>
<div>Child4</div>
<div>Child5</div>
<div>Child6</div>
<div>Child7</div>
<div>Child8</div>
<div>Child9</div>
<div>Child10</div>
<div>Child11</div>
<div>Child12</div>
<div>Child13</div>
<div>Child14</div>
<div>Child15</div>
<div>Child16</div>
<div>Child17</div>
<div>Child18</div>
<div>Child19</div>
<div>Child20</div>
<div>Child21</div>
<div>Child22</div>
<div>Child23</div>
<div>Child24</div>
<div>Child25</div>
<div>Child26</div>
<div>Child27</div>
<div>Child28</div>
<div>Child29</div>
<div>Child30</div>
<div>Child31</div>
<div>Child32</div>
<div>Child33</div>
<div>Child34</div>
<div>Child35</div>
<div>Child36</div>
<div>Child37</div>
<div>Child38</div>
<div>Child39</div>
<div>Child40</div>
<div>Child41</div>
<div>Child42</div>
<div>Child43</div>
<div>Child44</div>
<div>Child45</div>
<div>Child46</div>
<div>Child47</div>
<div>Child48</div>
<div>Child49</div>
<div>Child50</div>
<div>Child51</div>
<div>Child52</div>
<div>Child53</div>
<div>Child54</div>
<div>Child55</div>
<div>Child56</div>
<div>Child57</div>
<div>Child58</div>
<div>Child59</div>
<div>Child60</div>
<div>Child61</div>
<div>Child62</div>
<div>Child63</div>
<div>Child64</div>
<div>Child65</div>
<div>Child66</div>
<div>Child67</div>
<div>Child68</div>
<div>Child69</div>
<div>Child70</div>
<div>Child71</div>
<div>Child72</div>
<div>Child73</div>
<div>Child74</div>
<div>Child75</div>
<div>Child76</div>
<div>Child77</div>
<div>Child78</div>
<div>Child79</div>
<div>Child80</div>
<div>Child81</div>
<div>Child82</div>
<div>Child83</div>
<div>Child84</div>
<div>Child85</div>
<div>Child86</div>
<div>Child87</div>
<div>Child88</div>
<div>Child89</div>
<div>Child90</div>
<div>Child91</div>
<div>Child92</div>
<div>Child93</div>
<div>Child94</div>
<div>Child95</div>
<div>Child96</div>
<div>Child97</div>
<div>Child98</div>
<div>Child99</div>
<div>
<div>Child100</div>
<div>Child101</div>
<div>Child102</div>
<div>Child103</div>
<div>Child104</div>
<div>Child105</div>
<div>Child106</div>
<div>Child107</div>
<div>Child108</div>
<div>Child109</div>
<div>Child110</div>
<div>Child111</div>
<div>Child112</div>
<div>Child113</div>
<div>Child114</div>
<div>Child115</div>
<div>Child116</div>
<div>Child117</div>
<div>Child118</div>
<div>Child119</div>
<div>Child120</div>
<div>Child121</div>
<div>Child122</div>
<div>Child123</div>
<div>Child124</div>
<div>Child125</div>
<div>Child126</div>
<div>Child127</div>
<div>Child128</div>
<div>Child129</div>
<div>Child130</div>
<div>Child131</div>
<div>Child132</div>
<div>Child133</div>
<div>Child134</div>
<div>Child135</div>
<div>Child136</div>
<div>Child137</div>
<div>Child138</div>
<div>Child139</div>
<div>Child140</div>
<div>Child141</div>
<div>Child142</div>
<div>Child143</div>
<div>Child144</div>
<div>Child145</div>
<div>Child146</div>
<div>Child147</div>
<div>Child148</div>
<div>Child149</div>
<div>Child150</div>
<div>Child151</div>
<div>Child152</div>
<div>Child153</div>
<div>Child154</div>
<div>Child155</div>
<div>Child156</div>
<div>Child157</div>
<div>Child158</div>
<div>Child159</div>
<div>Child160</div>
<div>Child161</div>
<div>Child162</div>
<div>Child163</div>
<div>Child164</div>
<div>Child165</div>
<div>Child166</div>
<div>Child167</div>
<div>Child168</div>
<div>Child169</div>
<div>Child170</div>
<div>Child171</div>
<div>Child172</div>
<div>Child173</div>
<div>Child174</div>
<div>Child175</div>
<div>Child176</div>
<div>Child177</div>
<div>Child178</div>
<div>Child179</div>
<div>Child180</div>
<div>Child181</div>
<div>Child182</div>
<div>Child183</div>
<div>Child184</div>
<div>Child185</div>
<div>Child186</div>
<div>Child187</div>
<div>Child188</div>
<div>Child189</div>
<div>Child190</div>
<div>Child191</div>
<div>Child192</div>
<div>Child193</div>
<div>Child194</div>
<div>Child195</div>
<div>Child196</div>
<div>Child197</div>
<div>Child198</div>
<div>Child199</div>
</div>
<span>Child101</span>
<span>Child102</span>
<span>Child103</span>
<span>Child104</span>
<span>Child105</span>
<span>Child106</span>
<span>Child107</span>
<span>Child108</span>
<span>Child109</span>
<span>Child110</span>
<span>Child111</span>
<span>Child112</span>
<span>Child113</span>
<span>Child114</span>
<span>Child115</span>
<span>Child116</span>
<span>Child117</span>
<span>Child118</span>
<span>Child119</span>
<span>Child120</span>
<span>Child121</span>
<span>Child122</span>
<span>Child123</span>
<span>Child124</span>
<span>Child125</span>
<span>Child126</span>
<span>Child127</span>
<span>Child128</span>
<span>Child129</span>
<span>Child130</span>
<span>Child131</span>
<span>Child132</span>
<span>Child133</span>
<span>Child134</span>
<span>Child135</span>
<span>Child136</span>
<span>Child137</span>
<span>Child138</span>
<span>Child139</span>
<span>Child140</span>
<span>Child141</span>
<span>Child142</span>
<span>Child143</span>
<span>Child144</span>
<span>Child145</span>
<span>Child146</span>
<span>Child147</span>
<span>Child148</span>
<span>Child149</span>
<span>Child150</span>
<span>Child151</span>
<span>Child152</span>
<span>Child153</span>
<span>Child154</span>
<span>Child155</span>
<span>Child156</span>
<span>Child157</span>
<span>Child158</span>
<span>Child159</span>
<span>Child160</span>
<span>Child161</span>
<span>Child162</span>
<span>Child163</span>
<span>Child164</span>
<span>Child165</span>
<span>Child166</span>
<span>Child167</span>
<span>Child168</span>
<span>Child169</span>
<span>Child170</span>
<span>Child171</span>
<span>Child172</span>
<span>Child173</span>
<span>Child174</span>
<span>Child175</span>
<span>Child176</span>
<span>Child177</span>
<span>Child178</span>
<span>Child179</span>
<span>Child180</span>
<span>Child181</span>
<span>Child182</span>
<span>Child183</span>
<span>Child184</span>
<span>Child185</span>
<span>Child186</span>
<span>Child187</span>
<span>Child188</span>
<span>Child189</span>
<span>Child190</span>
<span>Child191</span>
<span>Child192</span>
<span>Child193</span>
<span>Child194</span>
<span>Child195</span>
<span>Child196</span>
<span>Child197</span>
<span>Child198</span>
<span>Child199</span>
<span>Child200</span>
<div>Child201</div>
<div>Child202</div>
<div>Child203</div>
<div>Child204</div>
<div>Child205</div>
<div>Child206</div>
<div>Child207</div>
<div>Child208</div>
<div>Child209</div>
<div>Child210</div>
<div>Child211</div>
<div>Child212</div>
<div>Child213</div>
<div>Child214</div>
<div>Child215</div>
<div>Child216</div>
<div>Child217</div>
<div>Child218</div>
<div>Child219</div>
<div>Child220</div>
<div>Child221</div>
<div>Child222</div>
<div>Child223</div>
<div>Child224</div>
<div>Child225</div>
<div>Child226</div>
<div>Child227</div>
<div>Child228</div>
<div>Child229</div>
<div>Child230</div>
<div>Child231</div>
<div>Child232</div>
<div>Child233</div>
<div>Child234</div>
<div>Child235</div>
<div>Child236</div>
<div>Child237</div>
<div>Child238</div>
<div>Child239</div>
<div>Child240</div>
<div>Child241</div>
<div>Child242</div>
<div>Child243</div>
<div>Child244</div>
<div>Child245</div>
<div>Child246</div>
<div>Child247</div>
<div>Child248</div>
<div>Child249</div>
<div>Child250</div>
<div>Child251</div>
<div>Child252</div>
<div>Child253</div>
<div>Child254</div>
<div>Child255</div>
<div>Child256</div>
<div>Child257</div>
<div>Child258</div>
<div>Child259</div>
<div>Child260</div>
<div>Child261</div>
<div>Child262</div>
<div>Child263</div>
<div>Child264</div>
<div>Child265</div>
<div>Child266</div>
<div>Child267</div>
<div>Child268</div>
<div>Child269</div>
<div>Child270</div>
<div>Child271</div>
<div>Child272</div>
<div>Child273</div>
<div>Child274</div>
<div>Child275</div>
<div>Child276</div>
<div>Child277</div>
<div>Child278</div>
<div>Child279</div>
<div>Child280</div>
<div>Child281</div>
<div>Child282</div>
<div>Child283</div>
<div>Child284</div>
<div>Child285</div>
<div>Child286</div>
<div>Child287</div>
<div>Child288</div>
<div>Child289</div>
<div>Child290</div>
<div>Child291</div>
<div>Child292</div>
<div>Child293</div>
<div>Child294</div>
<div>Child295</div>
<div>Child296</div>
<div>Child297</div>
<div>Child298</div>
<div>Child299</div>
<div>Child300</div>
<div>Child301</div>
<div>Child302</div>
<div>Child303</div>
<div>Child304</div>
<div>Child305</div>
<div>Child306</div>
<div>Child307</div>
<div>Child308</div>
<div>Child309</div>
<div>Child310</div>
<div>Child311</div>
<div>Child312</div>
<div>Child313</div>
<div>Child314</div>
<div>Child315</div>
<div>Child316</div>
<div>Child317</div>
<div>Child318</div>
<div>Child319</div>
<div>Child320</div>
<div>Child321</div>
<div>Child322</div>
<div>Child323</div>
<div>Child324</div>
<div>Child325</div>
<div>Child326</div>
<div>Child327</div>
<div>Child328</div>
<div>Child329</div>
<div>Child330</div>
<div>Child331</div>
<div>Child332</div>
<div>Child333</div>
<div>Child334</div>
<div>Child335</div>
<div>Child336</div>
<div>Child337</div>
<div>Child338</div>
<div>Child339</div>
<div>Child340</div>
<div>Child341</div>
<div>Child342</div>
<div>Child343</div>
<div>Child344</div>
<div>Child345</div>
<div>Child346</div>
<div>Child347</div>
<div>Child348</div>
<div>Child349</div>
<div>Child350</div>
<div>Child351</div>
<div>Child352</div>
<div>Child353</div>
<div>Child354</div>
<div>Child355</div>
<div>Child356</div>
<div>Child357</div>
<div>Child358</div>
<div>Child359</div>
<div>Child360</div>
<div>Child361</div>
<div>Child362</div>
<div>Child363</div>
<div>Child364</div>
<div>Child365</div>
<div>Child366</div>
<div>Child367</div>
<div>Child368</div>
<div>Child369</div>
<div>Child370</div>
<div>Child371</div>
<div>Child372</div>
<div>Child373</div>
<div>Child374</div>
<div>Child375</div>
<div>Child376</div>
<div>Child377</div>
<div>Child378</div>
<div>Child379</div>
<div>Child380</div>
<div>Child381</div>
<div>Child382</div>
<div>Child383</div>
<div>Child384</div>
<div>Child385</div>
<div>Child386</div>
<div>Child387</div>
<div>Child388</div>
<div>Child389</div>
<div>Child390</div>
<div>Child391</div>
<div>Child392</div>
<div>Child393</div>
<div>Child394</div>
<div>Child395</div>
<div>Child396</div>
<div>Child397</div>
<div>Child398</div>
<div>Child399</div>
<div>Child400</div>
<div>Child401</div>
<div>Child402</div>
<div>Child403</div>
<div>Child404</div>
<div>Child405</div>
<div>Child406</div>
<div>Child407</div>
<div>Child408</div>
<div>Child409</div>
<div>Child410</div>
<div>Child411</div>
<div>Child412</div>
<div>Child413</div>
<div>Child414</div>
<div>Child415</div>
<div>Child416</div>
<div>Child417</div>
<div>Child418</div>
<div>Child419</div>
<div>Child420</div>
<div>Child421</div>
<div>Child422</div>
<div>Child423</div>
<div>Child424</div>
<div>Child425</div>
<div>Child426</div>
<div>Child427</div>
<div>Child428</div>
<div>Child429</div>
<div>Child430</div>
<div>Child431</div>
<div>Child432</div>
<div>Child433</div>
<div>Child434</div>
<div>Child435</div>
<div>Child436</div>
<div>Child437</div>
<div>Child438</div>
<div>Child439</div>
<div>Child440</div>
<div>Child441</div>
<div>Child442</div>
<div>Child443</div>
<div>Child444</div>
<div>Child445</div>
<div>Child446</div>
<div>Child447</div>
<div>Child448</div>
<div>Child449</div>
<div>Child450</div>
<div>Child451</div>
<div>Child452</div>
<div>Child453</div>
<div>Child454</div>
<div>Child455</div>
<div>Child456</div>
<div>Child457</div>
<div>Child458</div>
<div>Child459</div>
<div>Child460</div>
<div>Child461</div>
<div>Child462</div>
<div>Child463</div>
<div>Child464</div>
<div>Child465</div>
<div>Child466</div>
<div>Child467</div>
<div>Child468</div>
<div>Child469</div>
<div>Child470</div>
<div>Child471</div>
<div>Child472</div>
<div>Child473</div>
<div>Child474</div>
<div>Child475</div>
<div>Child476</div>
<div>Child477</div>
<div>Child478</div>
<div>Child479</div>
<div>Child480</div>
<div>Child481</div>
<div>Child482</div>
<div>Child483</div>
<div>Child484</div>
<div>Child485</div>
<div>Child486</div>
<div>Child487</div>
<div>Child488</div>
<div>Child489</div>
<div>Child490</div>
<div>Child491</div>
<div>Child492</div>
<div>Child493</div>
<div>Child494</div>
<div>Child495</div>
<div>Child496</div>
<div>Child497</div>
<div>Child498</div>
<div>Child499</div>
<div>Child500</div>
<div>Child501</div>
<div>Child502</div>
<div>Child503</div>
<div>Child504</div>
<div>Child505</div>
<div>Child506</div>
<div>Child507</div>
<div>Child508</div>
<div>Child509</div>
<div>Child510</div>
<div>Child511</div>
<div>Child512</div>
<div>Child513</div>
<div>Child514</div>
<div>Child515</div>
<div>Child516</div>
<div>Child517</div>
<div>Child518</div>
<div>Child519</div>
<div>Child520</div>
<div>Child521</div>
<div>Child522</div>
<div>Child523</div>
<div>Child524</div>
<div>Child525</div>
<div>Child526</div>
<div>Child527</div>
<div>Child528</div>
<div>Child529</div>
<div>Child530</div>
<div>Child531</div>
<div>Child532</div>
<div>Child533</div>
<div>Child534</div>
<div>Child535</div>
<div>Child536</div>
<div>Child537</div>
<div>Child538</div>
<div>Child539</div>
<div>Child540</div>
<div>Child541</div>
<div>Child542</div>
<div>Child543</div>
<div>Child544</div>
<div>Child545</div>
<div>Child546</div>
<div>Child547</div>
<div>Child548</div>
<div>Child549</div>
<div>Child550</div>
<div>Child551</div>
<div>Child552</div>
<div>Child553</div>
<div>Child554</div>
<div>Child555</div>
<div>Child556</div>
<div>Child557</div>
<div>Child558</div>
<div>Child559</div>
<div>Child560</div>
<div>Child561</div>
<div>Child562</div>
<div>Child563</div>
<div>Child564</div>
<div>Child565</div>
<div>Child566</div>
<div>Child567</div>
<div>Child568</div>
<div>Child569</div>
<div>Child570</div>
<div>Child571</div>
<div>Child572</div>
<div>Child573</div>
<div>Child574</div>
<div>Child575</div>
<div>Child576</div>
<div>Child577</div>
<div>Child578</div>
<div>Child579</div>
<div>Child580</div>
<div>Child581</div>
<div>Child582</div>
<div>Child583</div>
<div>Child584</div>
<div>Child585</div>
<div>Child586</div>
<div>Child587</div>
<div>Child588</div>
<div>Child589</div>
<div>Child590</div>
<div>Child591</div>
<div>Child592</div>
<div>Child593</div>
<div>Child594</div>
<div>Child595</div>
<div>Child596</div>
<div>Child597</div>
<div>Child598</div>
<div>Child599</div>
<div>Child600</div>
<div>Child601</div>
<div>Child602</div>
<div>Child603</div>
<div>Child604</div>
<div>Child605</div>
<div>Child606</div>
<div>Child607</div>
<div>Child608</div>
<div>Child609</div>
<div>Child610</div>
<div>Child611</div>
<div>Child612</div>
<div>Child613</div>
<div>Child614</div>
<div>Child615</div>
<div>Child616</div>
<div>Child617</div>
<div>Child618</div>
<div>Child619</div>
<div>Child620</div>
<div>Child621</div>
<div>Child622</div>
<div>Child623</div>
<div>Child624</div>
<div>Child625</div>
<div>Child626</div>
<div>Child627</div>
<div>Child628</div>
<div>Child629</div>
<div>Child630</div>
<div>Child631</div>
<div>Child632</div>
<div>Child633</div>
<div>Child634</div>
<div>Child635</div>
<div>Child636</div>
<div>Child637</div>
<div>Child638</div>
<div>Child639</div>
<div>Child640</div>
<div>Child641</div>
<div>Child642</div>
<div>Child643</div>
<div>Child644</div>
<div>Child645</div>
<div>Child646</div>
<div>Child647</div>
<div>Child648</div>
<div>Child649</div>
<div>Child650</div>
<div>Child651</div>
<div>Child652</div>
<div>Child653</div>
<div>Child654</div>
<div>Child655</div>
<div>Child656</div>
<div>Child657</div>
<div>Child658</div>
<div>Child659</div>
<div>Child660</div>
<div>Child661</div>
<div>Child662</div>
<div>Child663</div>
<div>Child664</div>
<div>Child665</div>
<div>Child666</div>
<div>Child667</div>
<div>Child668</div>
<div>Child669</div>
<div>Child670</div>
<div>Child671</div>
<div>Child672</div>
<div>Child673</div>
<div>Child674</div>
<div>Child675</div>
<div>Child676</div>
<div>Child677</div>
<div>Child678</div>
<div>Child679</div>
<div>Child680</div>
<div>Child681</div>
<div>Child682</div>
<div>Child683</div>
<div>Child684</div>
<div>Child685</div>
<div>Child686</div>
<div>Child687</div>
<div>Child688</div>
<div>Child689</div>
<div>Child690</div>
<div>Child691</div>
<div>Child692</div>
<div>Child693</div>
<div>Child694</div>
<div>Child695</div>
<div>Child696</div>
<div>Child697</div>
<div>Child698</div>
<div>Child699</div>
<div>Child700</div>
<div>Child701</div>
<div>Child702</div>
<div>Child703</div>
<div>Child704</div>
<div>Child705</div>
<div>Child706</div>
<div>Child707</div>
<div>Child708</div>
<div>Child709</div>
<div>Child710</div>
<div>Child711</div>
<div>Child712</div>
<div>Child713</div>
<div>Child714</div>
<div>Child715</div>
<div>Child716</div>
<div>Child717</div>
<div>Child718</div>
<div>Child719</div>
<div>Child720</div>
<div>Child721</div>
<div>Child722</div>
<div>Child723</div>
<div>Child724</div>
<div>Child725</div>
<div>Child726</div>
<div>Child727</div>
<div>Child728</div>
<div>Child729</div>
<div>Child730</div>
<div>Child731</div>
<div>Child732</div>
<div>Child733</div>
<div>Child734</div>
<div>Child735</div>
<div>Child736</div>
<div>Child737</div>
<div>Child738</div>
<div>Child739</div>
<div>Child740</div>
<div>Child741</div>
<div>Child742</div>
<div>Child743</div>
<div>Child744</div>
<div>Child745</div>
<div>Child746</div>
<div>Child747</div>
<div>Child748</div>
<div>Child749</div>
<div>Child750</div>
<div>Child751</div>
<div>Child752</div>
<div>Child753</div>
<div>Child754</div>
<div>Child755</div>
<div>Child756</div>
<div>Child757</div>
<div>Child758</div>
<div>Child759</div>
<div>Child760</div>
<div>Child761</div>
<div>Child762</div>
<div>Child763</div>
<div>Child764</div>
<div>Child765</div>
<div>Child766</div>
<div>Child767</div>
<div>Child768</div>
<div>Child769</div>
<div>Child770</div>
<div>Child771</div>
<div>Child772</div>
<div>Child773</div>
<div>Child774</div>
<div>Child775</div>
<div>Child776</div>
<div>Child777</div>
<div>Child778</div>
<div>Child779</div>
<div>Child780</div>
<div>Child781</div>
<div>Child782</div>
<div>Child783</div>
<div>Child784</div>
<div>Child785</div>
<div>Child786</div>
<div>Child787</div>
<div>Child788</div>
<div>Child789</div>
<div>Child790</div>
<div>Child791</div>
<div>Child792</div>
<div>Child793</div>
<div>Child794</div>
<div>Child795</div>
<div>Child796</div>
<div>Child797</div>
<div>Child798</div>
<div>Child799</div>
<div>Child800</div>
<div>Child801</div>
<div>Child802</div>
<div>Child803</div>
<div>Child804</div>
<div>Child805</div>
<div>Child806</div>
<div>Child807</div>
<div>Child808</div>
<div>Child809</div>
<div>Child810</div>
<div>Child811</div>
<div>Child812</div>
<div>Child813</div>
<div>Child814</div>
<div>Child815</div>
<div>Child816</div>
<div>Child817</div>
<div>Child818</div>
<div>Child819</div>
<div>Child820</div>
<div>Child821</div>
<div>Child822</div>
<div>Child823</div>
<div>Child824</div>
<div>Child825</div>
<div>Child826</div>
<div>Child827</div>
<div>Child828</div>
<div>Child829</div>
<div>Child830</div>
<div>Child831</div>
<div>Child832</div>
<div>Child833</div>
<div>Child834</div>
<div>Child835</div>
<div>Child836</div>
<div>Child837</div>
<div>Child838</div>
<div>Child839</div>
<div>Child840</div>
<div>Child841</div>
<div>Child842</div>
<div>Child843</div>
<div>Child844</div>
<div>Child845</div>
<div>Child846</div>
<div>Child847</div>
<div>Child848</div>
<div>Child849</div>
<div>Child850</div>
<div>Child851</div>
<div>Child852</div>
<div>Child853</div>
<div>Child854</div>
<div>Child855</div>
<div>Child856</div>
<div>Child857</div>
<div>Child858</div>
<div>Child859</div>
<div>Child860</div>
<div>Child861</div>
<div>Child862</div>
<div>Child863</div>
<div>Child864</div>
<div>Child865</div>
<div>Child866</div>
<div>Child867</div>
<div>Child868</div>
<div>Child869</div>
<div>Child870</div>
<div>Child871</div>
<div>Child872</div>
<div>Child873</div>
<div>Child874</div>
<div>Child875</div>
<div>Child876</div>
<div>Child877</div>
<div>Child878</div>
<div>Child879</div>
<div>Child880</div>
<div>Child881</div>
<div>Child882</div>
<div>Child883</div>
<div>Child884</div>
<div>Child885</div>
<div>Child886</div>
<div>Child887</div>
<div>Child888</div>
<div>Child889</div>
<div>Child890</div>
<div>Child891</div>
<div>Child892</div>
<div>Child893</div>
<div>Child894</div>
<div>Child895</div>
<div>Child896</div>
<div>Child897</div>
<div>Child898</div>
<div>Child899</div>
<div>Child900</div>
<div>Child901</div>
<div>Child902</div>
<div>Child903</div>
<div>Child904</div>
<div>Child905</div>
<div>Child906</div>
<div>Child907</div>
<div>Child908</div>
<div>Child909</div>
<div>Child910</div>
<div>Child911</div>
<div>Child912</div>
<div>Child913</div>
<div>Child914</div>
<div>Child915</div>
<div>Child916</div>
<div>Child917</div>
<div>Child918</div>
<div>Child919</div>
<div>Child920</div>
<div>Child921</div>
<div>Child922</div>
<div>Child923</div>
<div>Child924</div>
<div>Child925</div>
<div>Child926</div>
<div>Child927</div>
<div>Child928</div>
<div>Child929</div>
<div>Child930</div>
<div>Child931</div>
<div>Child932</div>
<div>Child933</div>
<div>Child934</div>
<div>Child935</div>
<div>Child936</div>
<div>Child937</div>
<div>Child938</div>
<div>Child939</div>
<div>Child940</div>
<div>Child941</div>
<div>Child942</div>
<div>Child943</div>
<div>Child944</div>
<div>Child945</div>
<div>Child946</div>
<div>Child947</div>
<div>Child948</div>
<div>Child949</div>
<div>Child950</div>
<div>Child951</div>
<div>Child952</div>
<div>Child953</div>
<div>Child954</div>
<div>Child955</div>
<div>Child956</div>
<div>Child957</div>
<div>Child958</div>
<div>Child959</div>
<div>Child960</div>
<div>Child961</div>
<div>Child962</div>
<div>Child963</div>
<div>Child964</div>
<div>Child965</div>
<div>Child966</div>
<div>Child967</div>
<div>Child968</div>
<div>Child969</div>
<div>Child970</div>
<div>Child971</div>
<div>Child972</div>
<div>Child973</div>
<div>Child974</div>
<div>Child975</div>
<div>Child976</div>
<div>Child977</div>
<div>Child978</div>
<div>Child979</div>
<div>Child980</div>
<div>Child981</div>
<div>Child982</div>
<div>Child983</div>
<div>Child984</div>
<div>Child985</div>
<div>Child986</div>
<div>Child987</div>
<div>Child988</div>
<div>Child989</div>
<div>Child990</div>
<div>Child991</div>
<div>Child992</div>
<div>Child993</div>
<div>Child994</div>
<div>Child995</div>
<div>Child996</div>
<div>Child997</div>
<div>Child998</div>
<div>Child999</div>
<div>Child1000</div>
</div>
console.log('child selector result: ', $("#foo > div").size());
console.log('children() result: ', $("#foo").children().size());
Ready to run.
Test | Ops/sec | |
---|---|---|
child selector |
| ready |
children() |
| ready |
.childElementCount |
| ready |
children().length |
| ready |
childNodes.lenght |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.