Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: PerformanceTests/CSS/StyleSheetInsert.html

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: PerformanceTests/CSS/StyleSheetInsert.html
diff --git a/PerformanceTests/CSS/StyleSheetInsert.html b/PerformanceTests/CSS/StyleSheetInsert.html
index d4644d3193883eddb9cd18c4c2692bf18219d449..836330c43fa6bb885c5226e0aa304f8ce2ba9e95 100644
--- a/PerformanceTests/CSS/StyleSheetInsert.html
+++ b/PerformanceTests/CSS/StyleSheetInsert.html
@@ -20,17 +20,20 @@ function setup() {
return testDoc;
}
-PerfTestRunner.measureTime({run:function() {
- var testDoc = setup();
- var start = PerfTestRunner.now();
- testDoc.body.offsetTop;
- for (var i = 0; i < 50; i++) {
- var styleElem = testDoc.createElement("style");
- styleElem.innerText = ".bar {color:green}";
- testDoc.body.insertBefore(styleElem, testDoc.body.firstChild);
+PerfTestRunner.measureTime({
+ description: "Measures performance of inserting 50 large style elements into an iframe.",
+ run:function() {
+ var testDoc = setup();
+ var start = PerfTestRunner.now();
+ testDoc.body.offsetTop;
+ for (var i = 0; i < 50; i++) {
+ var styleElem = testDoc.createElement("style");
+ styleElem.innerText = ".bar {color:green}";
+ testDoc.body.insertBefore(styleElem, testDoc.body.firstChild);
+ }
+ testDoc.body.offsetTop;
+ return PerfTestRunner.now() - start;
}
- testDoc.body.offsetTop;
- return PerfTestRunner.now() - start;
-}});
+});
</script>
</html>
« no previous file with comments | « PerformanceTests/CSS/SelectorCountScaling.html ('k') | PerformanceTests/CSS/StyleSheetInsert-bootstrap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698