Skip to content

desktoppr/wbench

Repository files navigation

WBench

WBench is a tool that uses the HTML5 performance timing API to benchmark end user load times for websites.

Installation

$ gem install wbench

Usage

Command Line

Simply enter the URL of a website you want to benchmark. The site will be loaded in the Chrome browser 10 times.

$ wbench https://www.desktoppr.co/

Example Usage Output

Ruby API

You can programatically run the benchmarks. Simply specify the URL and optionally the amount of runs.

require 'wbench'

results = WBench::Benchmark.run('https://www.google.com/', 10) # => WBench::Results

TODO

  • Add ability to gist results
  • Add ability to use different browsers (firefox and IE)
  • Allow stats collection through the ruby API.