README
jiro
A task to load a url and calculate average load times via PhantomJS.
Getting Started
Install this plugin with: npm install jiro
Then add this line to your project's grunt.js
file:
grunt.loadNpmTasks('jiro');
Overview
Specify a jiro
section in your gruntfile. This will allow configurations for overriding options in the specified build scripts.
Options
string
url Specify a path for PhantomJS to load. This should be a fully qualified url.
integer
iterations Specify number of times url should be loaded.
string
resource Optional - Fully qualified url of a resource the target url is loading.
Sample config
A basic configuration:
jiro: {
url: 'http://localhost/static/login.html',
iterations: 100
}
A configuration specifying a point in time we care about:
jiro: {
url: 'http://localhost/static/login.html',
iterations: 100,
resource: 'http://localhost/static/app.js'
}