Socket
Book a DemoInstallSign in
Socket

fps-measurer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fps-measurer

Tiny testing utility for gathering FPS statistics

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

fps-measurer

Tiny testing utility for gathering FPS statistics

Installation

Using Npm:

npm install --save-dev fps-measurer

UMD build:

<script src="https://npmcdn.com/fps-measurer"></script>

Usage

function yourTestCase (callback) {
  // Your test case goes here...
  // When it's done, invoke callback()
  // You can also return a Promise instead if you prefer that syntax
}

const testRunner = new TestRunner(yourTestCase)

// Will run until an acceptable confidence interval has been established.
// You can pass this function a callback (to be called on complete)
// Or you can await its returned Promise for completion
const data = await testRunner.start()
data.duration // mean duration across all runs
data.framerate // mean framerate across all runs

Keywords

fps

FAQs

Package last updated on 19 Jun 2016

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