fps-measurer
Tiny testing utility for gathering FPS statistics
Installation
Using Npm:
npm install --save-dev fps-measurer
UMD build:
Usage
{ // 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 = 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 completionconst data = await testRunnerstartdataduration // mean duration across all runsdataframerate // mean framerate across all runs