a simple-to-use JavaScript timer and memory module
jsPerf is a simple-to-use JavaScript module that measures memory and code speed.
It works both in node and on the web and comes with several examples.
jsPerf also includes a real-time memory widget so you can observe overall memory behavior.
Example Timing Page
Example Memory Widget
See this jsPerf documentation for more details and examples.