blob: b19c96bee050174065fb6640b0d30ca75e6ce093 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Benchmark - Stress Blink GC</title>
</head>
<body>
<script src="../resources/runner.js"></script>
<script src="resources/measure-gc.js"></script>
<script>
window.onload = function() {
var css = '';
for (var i = 0; i < 100000; ++i)
css += '#a' + i + ' { color: red; background: linear-gradient(olive, tomato); display: inline; padding: 1px 2px 3px 4px; } ';
var styleElement = document.createElement('style');
styleElement.setAttribute('type', 'text/css');
styleElement.appendChild(document.createTextNode(css));
var head = document.getElementsByTagName('head')[0];
head.appendChild(styleElement);
PerfTestRunner.measureBlinkGCTime({description: 'Stress Blink GC by GCing many CSS style rules', done: function() {
head.removeChild(styleElement);
}});
}
</script>
</body>
</html>