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

Unified Diff: PerformanceTests/Bindings/gc-tree.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/Bindings/gc-tree.html
diff --git a/PerformanceTests/Bindings/gc-tree.html b/PerformanceTests/Bindings/gc-tree.html
index d996288cf4774fd5eb225ae4876dc6d784d58f9b..ed0ff9e05c3bac2ce1ae3e9d2b6dd55e706fe292 100644
--- a/PerformanceTests/Bindings/gc-tree.html
+++ b/PerformanceTests/Bindings/gc-tree.html
@@ -2,13 +2,16 @@
<body>
<script src="../resources/runner.js"></script>
<script>
-PerfTestRunner.measureTime({run: function() {
- (function() {
- var root = document.createElement("div");
- for (var i = 0; i < 1000000; i++)
- root.appendChild(document.createElement("div"));
- })();
- PerfTestRunner.gc();
-}});
+PerfTestRunner.measureTime({
+ description: "Measures performance of creating one million divs inside a div, releasing references, then running the garbage collector.",
+ run: function() {
+ (function() {
+ var root = document.createElement("div");
+ for (var i = 0; i < 1000000; i++)
+ root.appendChild(document.createElement("div"));
+ })();
+ PerfTestRunner.gc();
+ }
+});
</script>
</body>
« no previous file with comments | « PerformanceTests/Bindings/gc-mini-tree.html ('k') | PerformanceTests/Bindings/typed-array-construct-from-array.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698