HTML Preparation code:
AخA
 
1
<div id="container"></div>
Script Preparation code:
x
 
var container = document.getElementById("container");
var string1 = "lorem ipsum dolor sit amet bla bla some more text let's go we in it to win it";
var string2 = "lorem ipsum dolor sit amet bla bla some more text let's go we in it to win it you've changed man why though?"
container.textContent = "lorem ipsum dolor sit amet bla bla some more text let's go we in it to win it";
Tests:
  • simple

     
    if (string1 !== string2) {
        container.textContent = string2;
    }
  • locale

     
    if (string1.localeCompare(string2)) {
        container.textContent = string2;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    simple
    locale

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
Chrome 55 on Mac OS X 10.12.3
View result in a separate tab
Test name Executions per second
simple 2874174.2 Ops/sec
locale 1091011.0 Ops/sec