{
  "name": "benchmark",
  "version": "1.0.0",
  "description": "A benchmarking library that works on nearly all JavaScript platforms, supports high-resolution timers, and returns statistically significant results.",
  "homepage": "http://benchmarkjs.com/",
  "main": "benchmark",
  "keywords": [
    "benchmark",
    "narwhal",
    "node",
    "performance",
    "ringo",
    "speed"
  ],
  "licenses": [
    {
      "type": "MIT",
      "url": "http://mths.be/mit"
    }
  ],
  "author": {
    "name": "Mathias Bynens",
    "email": "mathias@benchmarkjs.com",
    "url": "http://mathiasbynens.be/"
  },
  "maintainers": [
    {
      "name": "John-David Dalton",
      "email": "john.david.dalton@gmail.com",
      "url": "http://allyoucanleet.com/"
    },
    {
      "name": "Mathias Bynens",
      "email": "mathias@benchmarkjs.com",
      "url": "http://mathiasbynens.be/"
    }
  ],
  "bugs": {
    "url": "https://github.com/bestiejs/benchmark.js/issues",
    "email": "bugs@benchmarkjs.com"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/bestiejs/benchmark.js.git"
  },
  "engines": [
    "node",
    "rhino"
  ],
  "directories": {
    "doc": "./doc",
    "test": "./test"
  },
  "readme": "# Benchmark.js <sup>v1.0.0</sup>\n\nA [robust](http://calendar.perfplanet.com/2010/bulletproof-javascript-benchmarks/ \"Bulletproof JavaScript benchmarks\") benchmarking library that works on nearly all JavaScript platforms<sup><a name=\"fnref1\" href=\"#fn1\">1</a></sup>, supports high-resolution timers, and returns statistically significant results. As seen on [jsPerf](http://jsperf.com/).\n\n## BestieJS\n\nBenchmark.js is part of the BestieJS *\"Best in Class\"* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.\n\n## Documentation\n\nThe documentation for Benchmark.js can be viewed here: <http://benchmarkjs.com/docs>\n\nFor a list of upcoming features, check out our [roadmap](https://github.com/bestiejs/benchmark.js/wiki/Roadmap).\n\n## Support\n\nBenchmark.js has been tested in at least Adobe AIR 3.1, Chrome 5-21, Firefox 1.5-13, IE 6-9, Opera 9.25-12.01, Safari 3-6, Node.js 0.8.6, Narwhal 0.3.2, RingoJS 0.8, and Rhino 1.7RC5.\n\n## Installation and usage\n\nIn a browser or Adobe AIR:\n\n~~~ html\n<script src=\"benchmark.js\"></script>\n~~~\n\nOptionally, expose Java’s nanosecond timer by adding the `nano` applet to the `<body>`:\n\n~~~ html\n<applet code=\"nano\" archive=\"nano.jar\"></applet>\n~~~\n\nOr enable Chrome’s microsecond timer by using the [command line switch](http://peter.sh/experiments/chromium-command-line-switches/#enable-benchmarking):\n\n    --enable-benchmarking\n\nVia [npm](http://npmjs.org/):\n\n~~~ bash\nnpm install benchmark\n~~~\n\nIn [Node.js](http://nodejs.org/) and [RingoJS v0.8.0+](http://ringojs.org/):\n\n~~~ js\nvar Benchmark = require('benchmark');\n~~~\n\nOptionally, use the [microtime module](https://github.com/wadey/node-microtime) by Wade Simmons:\n\n~~~ bash\nnpm install microtime\n~~~\n\nIn [RingoJS v0.7.0-](http://ringojs.org/):\n\n~~~ js\nvar Benchmark = require('benchmark').Benchmark;\n~~~\n\nIn [Rhino](http://www.mozilla.org/rhino/):\n\n~~~ js\nload('benchmark.js');\n~~~\n\nIn an AMD loader like [RequireJS](http://requirejs.org/):\n\n~~~ js\nrequire({\n  'paths': {\n    'benchmark': 'path/to/benchmark'\n  }\n},\n['benchmark'], function(Benchmark) {\n  console.log(Benchmark.version);\n});\n\n// or with platform.js\n// https://github.com/bestiejs/platform.js\nrequire({\n  'paths': {\n    'benchmark': 'path/to/benchmark',\n    'platform': 'path/to/platform'\n  }\n},\n['benchmark', 'platform'], function(Benchmark, platform) {\n  Benchmark.platform = platform;\n  console.log(Benchmark.platform.name);\n});\n~~~\n\nUsage example:\n\n~~~ js\nvar suite = new Benchmark.Suite;\n\n// add tests\nsuite.add('RegExp#test', function() {\n  /o/.test('Hello World!');\n})\n.add('String#indexOf', function() {\n  'Hello World!'.indexOf('o') > -1;\n})\n// add listeners\n.on('cycle', function(event) {\n  console.log(String(event.target));\n})\n.on('complete', function() {\n  console.log('Fastest is ' + this.filter('fastest').pluck('name'));\n})\n// run async\n.run({ 'async': true });\n\n// logs:\n// > RegExp#test x 4,161,532 +-0.99% (59 cycles)\n// > String#indexOf x 6,139,623 +-1.00% (131 cycles)\n// > Fastest is String#indexOf\n~~~\n\n## Authors\n\n* [Mathias Bynens](http://mathiasbynens.be/)\n  [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias \"Follow @mathias on Twitter\")\n* [John-David Dalton](http://allyoucanleet.com/)\n  [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton \"Follow @jdalton on Twitter\")\n\n## Contributors\n\n* [Kit Cambridge](http://kitcambridge.github.com/)\n  [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge \"Follow @kitcambridge on Twitter\")\n",
  "readmeFilename": "README.md",
  "_id": "benchmark@1.0.0",
  "dist": {
    "shasum": "731af4205c29711c0af5859b1f7b9b4088d6f54b"
  },
  "_from": "benchmark@1.0.0",
  "_resolved": "https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz"
}
