Permalink
Browse files

Add node-region benchmarks to node-screen-benchmark.

  • Loading branch information...
1 parent 6ba4401 commit 399a310ed219ca2ca7a7a839bf8ef353dbbc3341 @msweeney msweeney committed Jan 10, 2013
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/node/tests/perf/node-screen-benchmark.js
@@ -52,4 +52,24 @@ YUI.add('node-screen-benchmark', function (Y) {
testNode.setXY();
});
+ suite.add('node.get("region")', function() {
+ testNode.get('region');
+ });
+
+ suite.add('node.get("viewportRegion")', function() {
+ testNode.get('viewportRegion');
+ });
+
+ suite.add('node.inViewportRegion()', function() {
+ testNode.inViewportRegion();
+ });
+
+ suite.add('node.intersect()', function() {
+ testNode.intersect(bodyNode);
+ });
+
+ suite.add('node.inRegion()', function() {
+ testNode.inRegion(bodyNode);
+ });
+
}, '@VERSION@', {requires: ['node-screen']});

0 comments on commit 399a310

Please sign in to comment.