blob: 4377ac89600211ad461769a4e5a78c71a2a7bcc4 [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>
var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
function createSVGLengthList() {
var text = document.createElementNS('http://www.w3.org/2000/svg', 'text');
return text.x.baseVal;
}
window.onload = function() {
var list = createSVGLengthList();
for (var i = 0; i < 500000; ++i)
list.appendItem(svg.createSVGLength());
PerfTestRunner.measureBlinkGCTime({description: 'Stress Blink GC by GCing a large SVGLengthList'});
}
</script>
</body>
</html>