GithubHelp home page GithubHelp logo

gesteves / wptester Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 39 KB

A simple app to run WPT tests and log them in Librato.

Ruby 100.00%
performance webperf ruby sinatra librato webpagetest heroku

wptester's Introduction

wptester

A simple way to run WebPageTest tests and log them in Librato.

Requirements

Installation

Click this button to deploy directly to Heroku:

Deploy

After it's deployed, make sure dyno metadata is enabled for your new app. In your terminal, run:

$ heroku labs:enable runtime-dyno-metadata -a <app name>

Usage

Once your app is deployed and running, go to the Resources page in the Heroku dashboard and open the Heroku Scheduler. Add a new job, make it daily (or hourly of you want, but keep in mind WPT only allows a limited number of tests each day, so it's kind of overkill), and make it run this rake task:

rake wpt:request SITE_URL=http://... SOURCE=some-label

The SITE_URL is the URL of the page you want to test in WPT.

SOURCE is what you'll use in Librato to filter your metrics (e.g. if the page you're testing is your home page, you can put homepage as the source).

You can test multiple pages by creating more scheduled jobs, just remember that WPT only allows a certain number of tests per day. If you set up multiple tests, remember to use different sources in the rake task so you can filter the metrics in Librato.

Save the scheduled jobs, let them run, and then you can set up your charts however you like in Librato.

To do

  • Allow testing different locations, browser/device profiles, network conditions, etc. Right now it tests desktop Chrome on cable from Virginia by default.
  • Allow using a private WPT instance

wptester's People

Contributors

gesteves avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.