JavaScript Performance Monitor
See the codeThis class provides a simple info box that will help you monitor your code performance.
--enable-precise-memory-info)

npm install stats.js
var stats = new Stats();
stats.showPanel( 1 ); // 0: fps, 1: ms, 2: mb, 3+: custom
document.body.appendChild( stats.dom );
function animate() {
stats.begin();
// monitored code goes here
stats.end();
requestAnimationFrame( animate );
}
requestAnimationFrame( animate );
You can add this code to any page using the following bookmarklet:
javascript:(function(){var script=document.createElement('script');script.onload=function(){var stats=new Stats();document.body.appendChild(stats.dom);requestAnimationFrame(function loop(){stats.update();requestAnimationFrame(loop)});};script.src='https://mrdoob.github.io/stats.js/build/stats.min.js';document.head.appendChild(script);})()
Overall
Maintained
Code review
npm
Latest release
Releases this year
(top 24 of 53)
3,566 followers · starred Mar 2017
408 followers · starred Mar 2013
5,845 followers · starred Aug 2014
2,452 followers · starred Jan 2011
JavaScript Performance Monitor
See the codeThis class provides a simple info box that will help you monitor your code performance.
--enable-precise-memory-info)

npm install stats.js
var stats = new Stats();
stats.showPanel( 1 ); // 0: fps, 1: ms, 2: mb, 3+: custom
document.body.appendChild( stats.dom );
function animate() {
stats.begin();
// monitored code goes here
stats.end();
requestAnimationFrame( animate );
}
requestAnimationFrame( animate );
You can add this code to any page using the following bookmarklet:
javascript:(function(){var script=document.createElement('script');script.onload=function(){var stats=new Stats();document.body.appendChild(stats.dom);requestAnimationFrame(function loop(){stats.update();requestAnimationFrame(loop)});};script.src='https://mrdoob.github.io/stats.js/build/stats.min.js';document.head.appendChild(script);})()
Overall
Maintained
Code review
npm
Latest release
Releases this year
(top 24 of 53)
3,566 followers · starred Mar 2017
408 followers · starred Mar 2013
5,845 followers · starred Aug 2014
2,452 followers · starred Jan 2011