chromium/third_party/blink/perf_tests/editing/inner_html_with_selection.html

<!doctype html>
<script src="../resources/runner.js"></script>
<div id="target">target</div>
<div id="sample" style="display: none"></div>
<script>
var selection = window.getSelection();
selection.selectAllChildren(document.getElementById('target'));
var sample = document.getElementById('sample');
var sampleHTML = new Array(1000).join('<br>');

PerfTestRunner.measureTime({
    description: 'Measures performance of innerHTML setter with selection.',

    run: function() {
        sample.innerHTML = sampleHTML;
        sample.innerHTML = '';
    },
});
</script>