{"_id":"fastbench","_rev":"87864","name":"fastbench","description":"the simplest benchmark you can run on node","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"matteo.collina","email":""}],"time":{"modified":"2021-06-03T10:28:33.000Z","created":"2015-07-08T17:34:45.930Z","1.0.1":"2016-02-22T15:05:33.473Z","1.0.0":"2015-07-09T08:11:48.958Z","0.0.1":"2015-07-08T17:34:45.930Z"},"users":{"nichoth":true,"hville":true,"nicocube":true},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"repository":{"type":"git","url":"git+https://github.com/mcollina/fastbench.git"},"versions":{"1.0.1":{"name":"fastbench","version":"1.0.1","description":"the simplest benchmark you can run on node","main":"bench.js","scripts":{"lint":"standard","test":"tape test.js | faucet"},"pre-commit":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/mcollina/fastbench.git"},"keywords":["benchmark","fast"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/fastbench/issues"},"homepage":"https://github.com/mcollina/fastbench#readme","devDependencies":{"faucet":"0.0.1","pre-commit":"^1.0.10","proxyquire":"^1.6.0","standard":"^6.0.0","tape":"^4.0.0"},"dependencies":{"chalk":"^1.1.0","fastseries":"^1.3.1"},"gitHead":"88ad9e3133e7bb6ebaac5a8c2e3e4b920e483ffa","_id":"fastbench@1.0.1","_shasum":"66d6a383a36d087d42dee94fb287efcdbd43c891","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"66d6a383a36d087d42dee94fb287efcdbd43c891","size":2997,"noattachment":false,"key":"/fastbench/-/fastbench-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastbench/download/fastbench-1.0.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/fastbench-1.0.1.tgz_1456153527967_0.8459495948627591"},"directories":{},"publish_time":1456153533473,"_cnpm_publish_time":1456153533473,"_hasShrinkwrap":false},"1.0.0":{"name":"fastbench","version":"1.0.0","description":"the simplest benchmark you can run on node","main":"bench.js","scripts":{"lint":"standard","test":"tape test.js | faucet"},"pre-commit":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/mcollina/fastbench.git"},"keywords":["benchmark","fast"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/fastbench/issues"},"homepage":"https://github.com/mcollina/fastbench#readme","devDependencies":{"faucet":"0.0.1","pre-commit":"^1.0.10","proxyquire":"^1.6.0","standard":"^4.5.2","tape":"^4.0.0"},"dependencies":{"chalk":"^1.1.0","fastseries":"^1.3.1"},"gitHead":"b5c6f85a297d7fd33f189c4f36996eb802d9e2b5","_id":"fastbench@1.0.0","_shasum":"d5112657031f0e24e8715abb5b673defc4036443","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"dist":{"shasum":"d5112657031f0e24e8715abb5b673defc4036443","size":3018,"noattachment":false,"key":"/fastbench/-/fastbench-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastbench/download/fastbench-1.0.0.tgz"},"directories":{},"publish_time":1436429508958,"_cnpm_publish_time":1436429508958,"_hasShrinkwrap":false},"0.0.1":{"name":"fastbench","version":"0.0.1","description":"the simplest benchmark you can run on node","main":"bench.js","scripts":{"test":"tape test | faucet"},"repository":{"type":"git","url":"git+https://github.com/mcollina/fastbench.git"},"keywords":["benchmark","fast"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/fastbench/issues"},"homepage":"https://github.com/mcollina/fastbench#readme","gitHead":"54c17350bc602eb9661cfa9289c948e1ea132ec6","_id":"fastbench@0.0.1","_shasum":"8f1c3dbdbbb536393b3b28fbfe89de93261f6ec6","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"dist":{"shasum":"8f1c3dbdbbb536393b3b28fbfe89de93261f6ec6","size":1441,"noattachment":false,"key":"/fastbench/-/fastbench-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fastbench/download/fastbench-0.0.1.tgz"},"directories":{},"publish_time":1436376885930,"_cnpm_publish_time":1436376885930,"_hasShrinkwrap":false}},"readme":"# fastbench&nbsp;&nbsp;[![Build Status](https://travis-ci.org/mcollina/fastbench.png)](https://travis-ci.org/mcollina/fastbench)\n\nThe simplest benchmark you can run on node\n\n## Install\n\n```js\nnpm install fastbench\n```\n\n## Usage\n\n```js\n'use strict'\n\nvar bench = require('fastbench')\n\nvar run = bench([\n  function benchSetTimeout (done) {\n    setTimeout(done, 0)\n  },\n  function benchSetImmediate (done) {\n    setImmediate(done)\n  },\n  function benchNextTick (done) {\n    process.nextTick(done)\n  }\n], 1000)\n\n// run them two times\nrun(run)\n```\n\nOutput:\n\n```\nbenchSetTimeout*1000: 1363ms\nbenchSetImmediate*1000: 4ms\nbenchNextTick*1000: 1ms\nbenchSetTimeout*1000: 1365ms\nbenchSetImmediate*1000: 4ms\nbenchNextTick*1000: 0ms\n```\n\nYou can disable colors by passing a `--no-color` flag to your node\nscript.\n\n## API\n\n### bench(functions, iterations)\n\nBuild a benchmark for the given functions and that precise number of\niterations. It returns a function to run the benchmark.\n\nThe iterations parameter can also be an `Object`, in which case it\nacceps two options:\n\n* `iterations`: the number of iterations (required)\n* `max`: is a an alias for iterations\n* `color`: if the output should have color (default: true)\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mcollina/fastbench#readme","bugs":{"url":"https://github.com/mcollina/fastbench/issues"},"license":"MIT"}