{"_id":"fastbench","_rev":"9-62a8f7525698aa7dfb394304de0be190","name":"fastbench","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"fastbench","version":"0.0.1","keywords":["benchmark","fast"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"fastbench@0.0.1","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"homepage":"https://github.com/mcollina/fastbench#readme","bugs":{"url":"https://github.com/mcollina/fastbench/issues"},"dist":{"shasum":"8f1c3dbdbbb536393b3b28fbfe89de93261f6ec6","tarball":"https://registry.npmjs.org/fastbench/-/fastbench-0.0.1.tgz","integrity":"sha512-sCYZnc7B4rQjJAVDWWh5KqqTLsRJqrJVYcj67FnSuE2smOen1WDfInVWZQ0t1fzV11yqdkQs1FkZDh4g2ducXQ==","signatures":[{"sig":"MEYCIQCp01s2PFmuDGZE0KgoEblk7UI9Qt5CE2zPJ55U52eS5QIhAO9NfKNcFBw6EhTHmR+H9yGAa+qKzNeEygDnoeP7b5Ve","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"bench.js","_from":".","_shasum":"8f1c3dbdbbb536393b3b28fbfe89de93261f6ec6","gitHead":"54c17350bc602eb9661cfa9289c948e1ea132ec6","scripts":{"test":"tape test | faucet"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"repository":{"url":"git+https://github.com/mcollina/fastbench.git","type":"git"},"_npmVersion":"2.11.3","description":"the simplest benchmark you can run on node","_nodeVersion":"2.3.1","directories":{}},"1.0.0":{"name":"fastbench","version":"1.0.0","keywords":["benchmark","fast"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"fastbench@1.0.0","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"homepage":"https://github.com/mcollina/fastbench#readme","bugs":{"url":"https://github.com/mcollina/fastbench/issues"},"dist":{"shasum":"d5112657031f0e24e8715abb5b673defc4036443","tarball":"https://registry.npmjs.org/fastbench/-/fastbench-1.0.0.tgz","integrity":"sha512-fynWuONjUnOCDwbt5jAIYn1adlJobTlmlVQIGc58BvtbvhM06LkfXjAOAKit1mcfQ818VKV2C3TrBlR3Bm44sw==","signatures":[{"sig":"MEYCIQC9D75TxTksdxqU0yPFRCGc04nS8tBZ8jjWwvBiJQoOWAIhALfSSrYmJjstAZiUAFatzTaXHgiouokgH0Nyyfs/Gtah","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"bench.js","_from":".","_shasum":"d5112657031f0e24e8715abb5b673defc4036443","gitHead":"b5c6f85a297d7fd33f189c4f36996eb802d9e2b5","scripts":{"lint":"standard","test":"tape test.js | faucet"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"pre-commit":["lint","test"],"repository":{"url":"git+https://github.com/mcollina/fastbench.git","type":"git"},"_npmVersion":"2.11.3","description":"the simplest benchmark you can run on node","_nodeVersion":"2.3.1","dependencies":{"chalk":"^1.1.0","fastseries":"^1.3.1"},"devDependencies":{"tape":"^4.0.0","faucet":"0.0.1","standard":"^4.5.2","pre-commit":"^1.0.10","proxyquire":"^1.6.0"},"directories":{}},"1.0.1":{"name":"fastbench","version":"1.0.1","keywords":["benchmark","fast"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","_id":"fastbench@1.0.1","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"homepage":"https://github.com/mcollina/fastbench#readme","bugs":{"url":"https://github.com/mcollina/fastbench/issues"},"dist":{"shasum":"66d6a383a36d087d42dee94fb287efcdbd43c891","tarball":"https://registry.npmjs.org/fastbench/-/fastbench-1.0.1.tgz","integrity":"sha512-IZ+XFv9T+Ah7ijLhmOK7FXInUe0a/7BTm1vyUz115KDuJQGfx2Rme+SaGQ9YO9e4RS2Z8xvBHSmjZbn9xMG2ug==","signatures":[{"sig":"MEQCIEppUMzmW6V8YRpMmX4UuWT0Ojls9QgIYUXgbaEIoYyzAiBbCYm9kIaKbdrhgjxDnxh1Fpb4E4AbFIDuzYUbhygscA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"bench.js","_from":".","_shasum":"66d6a383a36d087d42dee94fb287efcdbd43c891","gitHead":"88ad9e3133e7bb6ebaac5a8c2e3e4b920e483ffa","scripts":{"lint":"standard","test":"tape test.js | faucet"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"pre-commit":["lint","test"],"repository":{"url":"git+https://github.com/mcollina/fastbench.git","type":"git"},"_npmVersion":"3.6.0","description":"the simplest benchmark you can run on node","_nodeVersion":"5.6.0","dependencies":{"chalk":"^1.1.0","fastseries":"^1.3.1"},"devDependencies":{"tape":"^4.0.0","faucet":"0.0.1","standard":"^6.0.0","pre-commit":"^1.0.10","proxyquire":"^1.6.0"},"_npmOperationalInternal":{"tmp":"tmp/fastbench-1.0.1.tgz_1456153527967_0.8459495948627591","host":"packages-9-west.internal.npmjs.com"},"directories":{}}},"time":{"created":"2015-07-08T17:34:45.930Z","modified":"2025-02-13T01:34:08.447Z","0.0.1":"2015-07-08T17:34:45.930Z","1.0.0":"2015-07-09T08:11:48.958Z","1.0.1":"2016-02-22T15:05:33.473Z"},"bugs":{"url":"https://github.com/mcollina/fastbench/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","homepage":"https://github.com/mcollina/fastbench#readme","keywords":["benchmark","fast"],"repository":{"url":"git+https://github.com/mcollina/fastbench.git","type":"git"},"description":"the simplest benchmark you can run on node","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"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","readmeFilename":"README.md","users":{"nichoth":true,"nicocube":true}}