overlooker
Install
npm i overlooker
Usage
const { profile, compare, check } = require('overlooker');
const start = async () => {
const actions = [{
name: 'test-action',
action: async (page) => {
await page.click('.button');
await page.waitForSelector('.new-content');
}
}];
const data1 = await profile({
pages: [{
name: 'main',
url: 'https://example.com',
actions
}]
});
const data2 = await profile({
pages: [{
name: 'main',
url: 'https://example.com/test',
actions
}]
});
const compared = compare(data2, data1);
const checked = check(compared, {
'percent.stats.timings.firstPaint.median': 0.05
});
};
start();
Profile configuration
Tool for getting build data
Bundle Internals Plugin