mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
tests: Vendor blink perf tests (#38654)
Vendors the [blink perf tests](https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/perf_tests/). These perf tests are useful to evaluate the performance of servo. The license that governs the perf tests is included in the folder. Running benchmark cases automatically is left to future work. The update.py script is taken from mozjs and slightly adapted, so we can easily filter (and patch if this should be necessary in the future. Testing: This PR just adds the perf_tests, but does not use or modify them in any way. --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7621332824
commit
ee781b71b4
18
tests/blink_perf_tests/perf_tests/bindings/id-getter.html
Normal file
18
tests/blink_perf_tests/perf_tests/bindings/id-getter.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div id="foo"></div>
|
||||
<script src="../resources/runner.js"></script>
|
||||
<script>
|
||||
var div = document.getElementById("foo");
|
||||
|
||||
PerfTestRunner.measureRunsPerSecond({
|
||||
description: "This benchmark covers 'element.property' in Dromaeo/dom-attr.html, 'innerHTML' in Dromaeo/dom-modify.html, and other DOM attributes that return a String.",
|
||||
run: function() {
|
||||
var localDiv = div;
|
||||
for (var i = 0; i < 100000; i++)
|
||||
localDiv.id;
|
||||
}});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user