HTML Preparation code:
AخA
 
1
<div id="content" style="position: relative; height: 600px; width: 1000px;"></div>
Script Preparation code:
x
 
var s, i, j, x, y;
Tests:
  • T1

     
    s = '';
    for(i = 0; i < 30; i++) {
        s += '<div>';
        y = Math.round(Math.random() * 100);
        for(j = 0; j<4; j++) {
            x = Math.round(Math.random() * 100000);
            s += '<input type="text" class="xxxx" value="' + String(x) + '"';
            if(j === 0) {
                s += ' style="margin-left:' + String(y) + 'px;"'; 
            }
            s += '>';
        }
        s += '</div>';
    }
    content.innerHTML = s;
  • T2

     
    s = '';
    for(i = 0; i < 30; i++) {
        s += '<div>';
        y = Math.round(Math.random() * 100);
        for(j = 0; j<4; j++) {
            x = Math.round(Math.random() * 100000);
            s += '<span class="xxxx"';
            if(j === 0) {
                s += ' style="margin-left:' + String(y) + 'px;"'; 
            }
            s += '>' + String(x) + '</span>';
        }
        s += '</div>';
    }
    content.innerHTML = s;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    T1
    T2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Chrome 62 on Windows
View result in a separate tab
Test name Executions per second
T1 987.6 Ops/sec
T2 952.4 Ops/sec