{"_id":"fastbench","_rev":"177774","name":"fastbench","description":"the simplest benchmark you can run on node","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"time":{"modified":"2024-06-11T09:38:03.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":{"hville":true,"nichoth":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","tarball":"http://registry-npm.ywwl.com/fastbench/download/fastbench-1.0.1.tgz","integrity":"sha512-IZ+XFv9T+Ah7ijLhmOK7FXInUe0a/7BTm1vyUz115KDuJQGfx2Rme+SaGQ9YO9e4RS2Z8xvBHSmjZbn9xMG2ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEppUMzmW6V8YRpMmX4UuWT0Ojls9QgIYUXgbaEIoYyzAiBbCYm9kIaKbdrhgjxDnxh1Fpb4E4AbFIDuzYUbhygscA=="}],"size":2997,"noattachment":false,"key":"/fastbench/-/fastbench-1.0.1.tgz"},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_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},"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":"hello@matteocollina.com"}],"dist":{"shasum":"d5112657031f0e24e8715abb5b673defc4036443","tarball":"http://registry-npm.ywwl.com/fastbench/download/fastbench-1.0.0.tgz","integrity":"sha512-fynWuONjUnOCDwbt5jAIYn1adlJobTlmlVQIGc58BvtbvhM06LkfXjAOAKit1mcfQ818VKV2C3TrBlR3Bm44sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9D75TxTksdxqU0yPFRCGc04nS8tBZ8jjWwvBiJQoOWAIhALfSSrYmJjstAZiUAFatzTaXHgiouokgH0Nyyfs/Gtah"}],"size":3018,"noattachment":false,"key":"/fastbench/-/fastbench-1.0.0.tgz"},"directories":{},"publish_time":1436429508958,"_cnpm_publish_time":1436429508958},"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":"hello@matteocollina.com"}],"dist":{"shasum":"8f1c3dbdbbb536393b3b28fbfe89de93261f6ec6","tarball":"http://registry-npm.ywwl.com/fastbench/download/fastbench-0.0.1.tgz","integrity":"sha512-sCYZnc7B4rQjJAVDWWh5KqqTLsRJqrJVYcj67FnSuE2smOen1WDfInVWZQ0t1fzV11yqdkQs1FkZDh4g2ducXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCp01s2PFmuDGZE0KgoEblk7UI9Qt5CE2zPJ55U52eS5QIhAO9NfKNcFBw6EhTHmR+H9yGAa+qKzNeEygDnoeP7b5Ve"}],"size":1441,"noattachment":false,"key":"/fastbench/-/fastbench-0.0.1.tgz"},"directories":{},"publish_time":1436376885930,"_cnpm_publish_time":1436376885930}},"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"}