HTML Preparation code:
Script Preparation code:
Tests:
  • 1 div with javascript

  • 1 div with jquery selector

  • 2 divs with javascript. Add with jquery

  • 2 divs with 2 jquery selectors. Add with jquery

  • 2 divs with javascript. Add with array

  • 2 divs with 2 jquery selectors. Add with array

  • 2 divs with single jquery selector

  • 1 div with jquery selector with context

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    1 div with javascript
    1 div with jquery selector
    2 divs with javascript. Add with jquery
    2 divs with 2 jquery selectors. Add with jquery
    2 divs with javascript. Add with array
    2 divs with 2 jquery selectors. Add with array
    2 divs with single jquery selector
    1 div with jquery selector with context

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Windows
View result in a separate tab
Test name Executions per second
1 div with javascript 931933.2 Ops/sec
1 div with jquery selector 1044035.6 Ops/sec
2 divs with javascript. Add with jquery 244003.6 Ops/sec
2 divs with 2 jquery selectors. Add with jquery 247036.5 Ops/sec
2 divs with javascript. Add with array 692793.1 Ops/sec
2 divs with 2 jquery selectors. Add with array 359648.8 Ops/sec
2 divs with single jquery selector 171.3 Ops/sec
1 div with jquery selector with context 418930.5 Ops/sec


;