Package Exports
- perfrunner-core
- perfrunner-core/dist/index.js
- perfrunner-core/dist/utils/async
- perfrunner-core/dist/utils/async.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (perfrunner-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Perfrunner-core

This package was written to simplify performance testing for the web application. It supports:
- Network conditions - downloadThroughput, uploadThroughput, latency
- CPU throttling
- Browser caching and no caching
- Multiple runs against the same URL for better precision
- Chrome arguments
- Storing data between test runs
- Tracing in Chrome readable format for better investigation
Installation
npm i perfrunner-core -DUsage example
import { profile } from 'perfrunner-core';
(async function () {
const profilingResult = await profile({
url: 'https://drag13.io',
network: { downloadThroughput: 1000, uploadThroughput: 500, latency: 200 },
output: './generated',
runs: 5,
throttlingRate: 4,
timeout: 90000,
});
console.log(JSON.stringify(profilingResult));
});Tracing
After testing, you can find traces in Chrome readable format inside the folder related to the test run. This might be helpful for additional investigation
Tests
npm test