fm
fps-measurer
npm i fps-measurer
fm

fps-measurer

Tiny testing utility for gathering FPS statistics

by Brian Vaughn

0.0.2 (see all)License:MITTypeScript:Not Found
npm i fps-measurer
Readme

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

Downloads/wk

1

GitHub Stars

29

LAST COMMIT

6yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

1
VersionTagPublished
0.0.2
latest
6yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate