benchtap

1.0.1 • Public • Published

benchtap

Simple, accurate benchmarking in a browser with tap output and an interface based on tape.

usage

code

var benchtap = require('benchtap');
 
var name = "square";
var setup = function(){ this.a = Math.random() };
var test = function(){ this.a * this.a };
var ops = 1; // number of operations performed in `test`
 
benchtap(name, {"operations" : ops}, setup, test);

command line

put all your benchmarks in a benchmark folder, then run:

browserify benchmark/*.js | testling -x $npm_config_browser

setup

you may also need to set the default npm browser

osx

npm config set browser open

linux

npm config set browser xdg-open

windows

npm config set browser start

Package Sidebar

Install

npm i benchtap

Weekly Downloads

8

Version

1.0.1

License

MIT

Last publish

Collaborators

  • waylonflinn