Title: [117547] trunk/PerformanceTests
- Revision
- 117547
- Author
- [email protected]
- Date
- 2012-05-17 23:03:56 -0700 (Thu, 17 May 2012)
Log Message
[perf-test] Add a benchmark for body.scrollTop
https://bugs.webkit.org/show_bug.cgi?id=86806
Reviewed by Ryosuke Niwa.
Currently Bindings/dom-attributes.html is just a collection of random
DOM attributes and methods. We should remove it and instead add more
reasonable micro benchmarks by classifying DOM binding call paths.
This patch adds a benchmark for body.scrollTop, which covers other
DOM attributes that return small integers.
(Note: Performance optimization for the benchmark will be coming soon.)
Test results in my Linux desktop:
RESULT Bindings: scroll-top= 209.410654239 runs/s
median= 211.64021164 runs/s, stdev= 4.09958741195 runs/s, min= 201.005025126 runs/s, max= 212.483399734 runs/s
RESULT Bindings: scroll-top= 195.651111157 runs/s
median= 196.319018405 runs/s, stdev= 1.77011627406 runs/s, min= 191.846522782 runs/s, max= 197.28729963 runs/s
RESULT Bindings: scroll-top= 200.004907612 runs/s
median= 201.511335013 runs/s, stdev= 3.27455403827 runs/s, min= 193.236714976 runs/s, max= 202.53164557 runs/s
RESULT Bindings: scroll-top= 209.582737512 runs/s
median= 210.803689065 runs/s, stdev= 3.16769655464 runs/s, min= 203.045685279 runs/s, max= 211.920529801 runs/s
RESULT Bindings: scroll-top= 199.924607687 runs/s
median= 201.13144338 runs/s, stdev= 3.11080503619 runs/s, min= 193.003618818 runs/s, max= 202.02020202 runs/s
* Bindings/scroll-top.html: Added.
Modified Paths
Added Paths
Diff
Added: trunk/PerformanceTests/Bindings/scroll-top.html (0 => 117547)
--- trunk/PerformanceTests/Bindings/scroll-top.html (rev 0)
+++ trunk/PerformanceTests/Bindings/scroll-top.html 2012-05-18 06:03:56 UTC (rev 117547)
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src=""
+<script>
+PerfTestRunner.runPerSecond({
+ description: "This benchmark covers DOM attributes that return small integers.",
+ run: function() {
+ var localBody = document.body;
+ for (var i = 0; i < 100000; i++)
+ localBody.scrollTop;
+}});
+</script>
+</body>
+</html>
Modified: trunk/PerformanceTests/ChangeLog (117546 => 117547)
--- trunk/PerformanceTests/ChangeLog 2012-05-18 05:50:42 UTC (rev 117546)
+++ trunk/PerformanceTests/ChangeLog 2012-05-18 06:03:56 UTC (rev 117547)
@@ -1,5 +1,39 @@
2012-05-17 Kentaro Hara <[email protected]>
+ [perf-test] Add a benchmark for body.scrollTop
+ https://bugs.webkit.org/show_bug.cgi?id=86806
+
+ Reviewed by Ryosuke Niwa.
+
+ Currently Bindings/dom-attributes.html is just a collection of random
+ DOM attributes and methods. We should remove it and instead add more
+ reasonable micro benchmarks by classifying DOM binding call paths.
+
+ This patch adds a benchmark for body.scrollTop, which covers other
+ DOM attributes that return small integers.
+
+ (Note: Performance optimization for the benchmark will be coming soon.)
+
+ Test results in my Linux desktop:
+
+ RESULT Bindings: scroll-top= 209.410654239 runs/s
+ median= 211.64021164 runs/s, stdev= 4.09958741195 runs/s, min= 201.005025126 runs/s, max= 212.483399734 runs/s
+
+ RESULT Bindings: scroll-top= 195.651111157 runs/s
+ median= 196.319018405 runs/s, stdev= 1.77011627406 runs/s, min= 191.846522782 runs/s, max= 197.28729963 runs/s
+ RESULT Bindings: scroll-top= 200.004907612 runs/s
+ median= 201.511335013 runs/s, stdev= 3.27455403827 runs/s, min= 193.236714976 runs/s, max= 202.53164557 runs/s
+
+ RESULT Bindings: scroll-top= 209.582737512 runs/s
+ median= 210.803689065 runs/s, stdev= 3.16769655464 runs/s, min= 203.045685279 runs/s, max= 211.920529801 runs/s
+
+ RESULT Bindings: scroll-top= 199.924607687 runs/s
+ median= 201.13144338 runs/s, stdev= 3.11080503619 runs/s, min= 193.003618818 runs/s, max= 202.02020202 runs/s
+
+ * Bindings/scroll-top.html: Added.
+
+2012-05-17 Kentaro Hara <[email protected]>
+
[perf-test] Add a micro benchmark for div.firstChild getter for an undefined firstChild
https://bugs.webkit.org/show_bug.cgi?id=86725
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes