Skip to content
Browse files

Added timer to RLS for testing requests

  • Loading branch information...
1 parent 43f8c41 commit a8bde72ef4653ef11e542c1c354c51295f9d9b82 @davglass davglass committed Jan 14, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 examples/rls.js
View
4 examples/rls.js
@@ -1,5 +1,7 @@
#!/usr/bin/env node
+
+var start = (new Date()).getTime();
var yui3 = require('yui3');
yui3.rls({
//m: 'yui,loader,dd,widget,autocomplete,gallery-yql,yui2-datatable',
@@ -10,6 +12,7 @@ yui3.rls({
'2in3v': '0.0.3'//,
//filt: 'RAW',
}, function(js, css, data) {
+ var end = (new Date()).getTime() - start;
console.log('Callback..');
console.log(js);
console.log(css);
@@ -21,6 +24,7 @@ yui3.rls({
console.log('Total: ', [].concat(js, css).length);
console.log('Data: ', Object.keys(data).length);
console.log('Size: (bytes)', size);
+ console.log('Time: %sms', end);
});

0 comments on commit a8bde72

Please sign in to comment.
Something went wrong with that request. Please try again.