summaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/loadspeed.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/loadspeed.coffee')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/loadspeed.coffee18
1 files changed, 0 insertions, 18 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/loadspeed.coffee b/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/loadspeed.coffee
deleted file mode 100644
index a4c6aa7e..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/loadspeed.coffee
+++ /dev/null
@@ -1,18 +0,0 @@
-page = require('webpage').create()
-system = require 'system'
-
-if system.args.length is 1
- console.log 'Usage: loadspeed.coffee <some URL>'
- phantom.exit 1
-else
- t = Date.now()
- address = system.args[1]
- page.open address, (status) ->
- if status isnt 'success'
- console.log('FAIL to load the address')
- else
- t = Date.now() - t
- console.log('Page title is ' + page.evaluate( (-> document.title) ))
- console.log('Loading time ' + t + ' msec')
- phantom.exit()
-