Skip to content
A plugin to run Lighthouse against a set of urls to see which site is the fastest.
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Adds Lighthouse diagnostics to output Mar 30, 2020
test Better log writing Mar 29, 2020
.gitignore Initial commit. Mar 21, 2020
README.md Code re-org. Properly error with sites that time out. Mar 23, 2020
package.json
performance-leaderboard.js

README.md

performance-leaderboard

A plugin to run Lighthouse against a set of urls to see which site is the fastest.

Installation

npm install performance-leaderboard

Usage

  1. Create a test file, say sample.js:
const PerfLeaderboard = require("performance-leaderboard");

(async function() {

	let urls = [
		"https://www.gatsbyjs.org/",
		"https://nextjs.org/",
		"https://www.11ty.dev/",
		"https://vuejs.org/",
		"https://reactjs.org/",
		"https://amp.dev/",
		"https://jekyllrb.com/",
		"https://nuxtjs.org/",
		"https://gridsome.org/",
		"https://svelte.dev/",
		"https://gohugo.io/",
		"https://redwoodjs.com/"
	];

	console.log( await PerfLeaderboard(urls) );

	// Run each site 5 times (default is 3)
	console.log( await PerfLeaderboard(urls, 5) );
})();
  1. Run node sample.js.

Experiments

You can’t perform that action at this time.