New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

perfrunner-core

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perfrunner-core

Automated UI performance test tool to measure performance changes for the web apps and sites

latest
npmnpm
Version
0.13.0-alpha.1
Version published
Maintainers
1
Created
Source

Perfrunner-core Build Status npm

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 -D

Usage 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

Keywords

perfrunner

FAQs

Package last updated on 20 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts