{"id":15638763,"url":"https://github.com/jamiemason/karma-benchmark","last_synced_at":"2025-09-04T04:43:43.449Z","repository":{"id":8569935,"uuid":"10198295","full_name":"JamieMason/karma-benchmark","owner":"JamieMason","description":"A Karma plugin to run Benchmark.js over multiple browsers with CI compatible output.","archived":false,"fork":false,"pushed_at":"2023-02-16T23:29:43.000Z","size":1943,"stargazers_count":91,"open_issues_count":14,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-15T03:54:21.516Z","etag":null,"topics":["benchmark","benchmarking","javascript","karma","karma-plugin","nodejs","performance","profiling"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JamieMason.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"JamieMason"}},"created_at":"2013-05-21T14:57:52.000Z","updated_at":"2024-12-27T22:04:03.000Z","dependencies_parsed_at":"2023-12-20T13:25:39.777Z","dependency_job_id":"78ce3535-2a7b-4020-b1a6-f7d72b2eafea","html_url":"https://github.com/JamieMason/karma-benchmark","commit_stats":{"total_commits":85,"total_committers":5,"mean_commits":17.0,"dds":0.09411764705882353,"last_synced_commit":"bf09b8f46ed8686b24b05247354ea864402c6358"},"previous_names":["jamiemason/perftacular"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/JamieMason/karma-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fkarma-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fkarma-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fkarma-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fkarma-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamieMason","download_url":"https://codeload.github.com/JamieMason/karma-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMason%2Fkarma-benchmark/sbom","scorecard":{"id":70612,"data":{"date":"2025-08-11","repo":{"name":"github.com/JamieMason/karma-benchmark","commit":"bf09b8f46ed8686b24b05247354ea864402c6358"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"76 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-7x7c-qm48-pq9c","Warn: Project is vulnerable to: GHSA-rc3x-jf5g-xvc5","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-82v2-mx6x-wq7q","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-mgfv-m47x-4wqp","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-h9rv-jmmf-4pgx","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T03:45:20.456Z","repository_id":8569935,"created_at":"2025-08-15T03:45:20.457Z","updated_at":"2025-08-15T03:45:20.457Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273554079,"owners_count":25126292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark","benchmarking","javascript","karma","karma-plugin","nodejs","performance","profiling"],"created_at":"2024-10-03T11:23:01.876Z","updated_at":"2025-09-04T04:43:43.426Z","avatar_url":"https://github.com/JamieMason.png","language":"TypeScript","funding_links":["https://github.com/sponsors/JamieMason"],"categories":[],"sub_categories":[],"readme":"# karma-benchmark\n\n\u003e A [Karma](http://karma-runner.github.io/) plugin to run [Benchmark.js](http://benchmarkjs.com/) over multiple browsers with CI compatible output.\n\n[![NPM version](http://img.shields.io/npm/v/karma-benchmark.svg?style=flat-square)](https://www.npmjs.com/package/karma-benchmark) [![NPM downloads](http://img.shields.io/npm/dm/karma-benchmark.svg?style=flat-square)](https://www.npmjs.com/package/karma-benchmark) [![Build Status](http://img.shields.io/travis/JamieMason/karma-benchmark/master.svg?style=flat-square)](https://travis-ci.org/JamieMason/karma-benchmark) [![Maintainability](https://api.codeclimate.com/v1/badges/966349c0150b475c60fe/maintainability)](https://codeclimate.com/github/JamieMason/karma-benchmark/maintainability)\n\n## Table of Contents\n\n-   [🌩 Installation](#-installation)\n-   [🕵🏾‍♀️ Reporters](#♀️-reporters)\n-   [⚖️ Configuration](#️-configuration)\n-   [👩🏻‍🔬 Writing Benchmarks](#-writing-benchmarks)\n-   [🙋🏾‍♂️ Getting Help](#♂️-getting-help)\n-   [👀 Other Projects](#-other-projects)\n-   [🤓 Author](#-author)\n\n## 🌩 Installation\n\n    npm install --save-dev benchmark karma-benchmark\n\n## 🕵🏾‍♀️ Reporters\n\n-   [karma-benchmark-json-reporter](https://github.com/etpinard/karma-benchmark-json-reporter) by [@etpinard](https://github.com/etpinard/)\n-   [karma-benchmark-plotly-reporter](https://github.com/etpinard/karma-benchmark-plotly-reporter) by [@etpinard](https://github.com/etpinard/)\n-   [karma-benchmarkjs-reporter](https://github.com/FormidableLabs/karma-benchmarkjs-reporter) by [@FormidableLabs](https://github.com/FormidableLabs/)\n-   [karma-benchmark-reporter](https://github.com/lazd/karma-benchmark-reporter) by [@lazd](https://github.com/lazd/)\n\n## ⚖️ Configuration\n\nIn **karma.conf.js**, add `'benchmark'` to the list of **frameworks**:\n\n```js\nmodule.exports = config =\u003e {\n  config.set({\n    autoWatch: false,\n    browsers: [\"Chrome\"],\n    concurrency: 1,\n    files: [\"bench/**/*.bench.js\"],\n    frameworks: [\"benchmark\"],\n    singleRun: true\n  });\n};\n```\n\n### Terminal Reporting\n\nNow let's add [`karma-benchmarkjs-reporter`](https://github.com/FormidableLabs/karma-benchmarkjs-reporter) by [@FormidableLabs](https://github.com/FormidableLabs/) to report results to the Terminal:\n\n    npm install --save-dev karma-benchmarkjs-reporter\n\nIn **karma.conf.js**, add `'benchmark'` to the list of **reporters**:\n\n```diff\nmodule.exports = (config) =\u003e {\n  config.set({\n    autoWatch: false,\n    browsers: ['Chrome'],\n    concurrency: 1,\n    files: ['bench/**/*.bench.js'],\n    frameworks: ['benchmark'],\n+   reporters: ['benchmark'],\n    singleRun: true\n  });\n};\n```\n\n### JUnit Reporting\n\nTo feed our data into Continuous Integration, we can use the [`karma-junit-reporter`](https://github.com/karma-runner/karma-junit-reporter).\n\n    npm install --save-dev karma-junit-reporter\n\nIn **karma.conf.js**, add `junit` to the list of **reporters** and configure the reporter accordingly:\n\n```diff\nmodule.exports = (config) =\u003e {\n  config.set({\n    autoWatch: false,\n    browsers: ['Chrome'],\n    concurrency: 1,\n    files: ['bench/**/*.bench.js'],\n    frameworks: ['benchmark'],\n+   junitReporter: {\n+     outputDir: 'reports',\n+     outputFile: 'benchmark.xml'\n+   },\n-   reporters: ['benchmark'],\n+   reporters: ['benchmark', 'junit'],\n    singleRun: true\n  });\n};\n```\n\n### Data Visualisation Reporting\n\nWith a free [plot.ly](https://plot.ly) account, we can generate visualisations using the [karma-benchmark-plotly-reporter](https://github.com/etpinard/karma-benchmark-plotly-reporter) by [@etpinard](https://github.com/etpinard/).\n\n    npm install --save-dev karma-benchmark-plotly-reporter\n\nIn **karma.conf.js**, add `benchmark-plotly` to the list of **reporters** and configure the reporter accordingly:\n\n```diff\nmodule.exports = (config) =\u003e {\n  config.set({\n    autoWatch: false,\n+   benchmarkPlotlyReporter: {\n+     username: '\u003cyour username\u003e',\n+     apiKey: '\u003cyour api key\u003e',\n+     cloudFilename: 'plotly-example',\n+     imageFilename: 'plotly-example.png'\n+   },\n    browsers: ['Chrome'],\n    concurrency: 1,\n    files: ['bench/**/*.bench.js'],\n    frameworks: ['benchmark'],\n    junitReporter: {\n      outputDir: 'reports',\n      outputFile: 'benchmark.xml'\n    },\n-   reporters: ['benchmark', 'junit'],\n+   reporters: ['benchmark', 'benchmark-plotly', 'junit'],\n    singleRun: true\n  });\n};\n```\n\n## 👩🏻‍🔬 Writing Benchmarks\n\nBenchmarks can be written by using the original [Benchmark.js](https://benchmarkjs.com) API, but a wrapper API is also provided by karma-benchmark in the form of the `suite` and `benchmark` globals. The karma-benchmark API aims to make the process of writing Benchmarks feel familiar to users of [Jasmine](https://jasmine.github.io/) or [Jest](https://jestjs.io/).\n\nIn this example, a suite is defined that pits `_.each` against the native `Array.forEach` method:\n\n```js\nsuite(\"Array iteration\", () =\u003e {\n  benchmark(\"_.each\", () =\u003e {\n    _.each([1, 2, 3], el =\u003e {\n      return el;\n    });\n  });\n\n  benchmark(\"native forEach\", () =\u003e {\n    [1, 2, 3].forEach(el =\u003e {\n      return el;\n    });\n  });\n});\n```\n\n### Suite options\n\nSuite options are the same as in Benchmark.js with one exception: `onStart` and `onComplete` can be set at the suite level.\n\nSee the [Benchmark.js Suite constructor API docs](http://benchmarkjs.com/docs#Suite) for a full list of options.\n\n```js\nsuite(\n  \"Array iteration\",\n  () =\u003e {\n    benchmark(\"_.each\", () =\u003e {\n      _.each(this.list, number =\u003e {\n        return number;\n      });\n    });\n\n    benchmark(\"native forEach\", () =\u003e {\n      this.list.forEach(number =\u003e {\n        return number;\n      });\n    });\n  },\n  {\n    onCycle(event) {\n      var suite = this;\n      var benchmark = event.target;\n      console.log(\"Cycle completed for \" + suite.name + \": \" + benchmark.name);\n    },\n    onStart() {\n      this.list = [5, 4, 3];\n    },\n    onComplete() {\n      this.list = null;\n    }\n  }\n);\n```\n\n### Benchmark options\n\nBenchmark options are the same as in Benchmark.js. If `setup` and `teardown` are passed to `benchmark()`, they will override `setup` and `teardown` from the suite. Pass `null` or undefined to remove them.\n\nSee the [Benchmark.js Benchmark constructor API docs](http://benchmarkjs.com/docs#Benchmark) for a full list of options.\n\n```js\nsuite(\"Iteration\", () =\u003e {\n  benchmark(\n    \"_.each with array\",\n    () =\u003e {\n      _.each(this.list, number =\u003e {\n        return number;\n      });\n    },\n    {\n      setup() {\n        this.list = [\"a\", \"b\", \"c\"];\n      },\n      teardown() {\n        delete this.list;\n      }\n    }\n  );\n\n  benchmark(\n    \"_.each with object\",\n    () =\u003e {\n      _.each(this.list, number =\u003e {\n        return number;\n      });\n    },\n    {\n      setup() {\n        this.list = { 0: \"a\", 1: \"b\", 2: \"c\" };\n      },\n      teardown() {\n        delete this.list;\n      }\n    }\n  );\n});\n```\n\n### Running only a specific benchmark or suite\n\nTo run only a specific benchmark, use `benchmark.only()` or `bbenchmark()` instead of `benchmark()`:\n\n```js\nbenchmark.only(() =\u003e {\n  // Only this benchmark will run\n  // bbenchmark() does the same thing\n});\n\nbenchmark(() =\u003e {\n  // This benchmark won't run\n});\n```\n\nThe same applies to suites with `suite.only()` and `ssuite()`.\n\n### Skipping benchmarks \u0026 suites\n\nTo skip a benchmark, use `benchmark.skip()` or `xbenchmark()` instead of `benchmark()`:\n\n```js\nbenchmark.skip(() =\u003e {\n  // This benchmark won't run\n  // xbenchmark() does the same thing\n});\n\nbenchmark(() =\u003e {\n  // This and all other benchmarks will run\n});\n```\n\nThe same applies to suites with `suite.skip()` and `xsuite()`.\n\n## 🙋🏾‍♂️ Getting Help\n\nGet help with issues by creating a [Bug Report] or discuss ideas by opening a [Feature Request].\n\n[bug report]: https://github.com/JamieMason/karma-benchmark/issues/new?template=bug_report.md\n\n[feature request]: https://github.com/JamieMason/karma-benchmark/issues/new?template=feature_request.md\n\n## 👀 Other Projects\n\nIf you find my Open Source projects useful, please share them ❤️\n\n-   [**eslint-formatter-git-log**](https://github.com/JamieMason/eslint-formatter-git-log)\u003cbr\u003eESLint Formatter featuring Git Author, Date, and Hash\n-   [**eslint-plugin-move-files**](https://github.com/JamieMason/eslint-plugin-move-files)\u003cbr\u003eMove and rename files while keeping imports up to date\n-   [**eslint-plugin-prefer-arrow-functions**](https://github.com/JamieMason/eslint-plugin-prefer-arrow-functions)\u003cbr\u003eConvert functions to arrow functions\n-   [**ImageOptim-CLI**](https://github.com/JamieMason/ImageOptim-CLI)\u003cbr\u003eAutomates ImageOptim, ImageAlpha, and JPEGmini for Mac to make batch optimisation of images part of your automated build process.\n-   [**Jasmine-Matchers**](https://github.com/JamieMason/Jasmine-Matchers)\u003cbr\u003eWrite Beautiful Specs with Custom Matchers\n-   [**self-help**](https://github.com/JamieMason/self-help#readme)\u003cbr\u003eInteractive Q\u0026A Guides for Web and the Command Line\n-   [**syncpack**](https://github.com/JamieMason/syncpack#readme)\u003cbr\u003eManage multiple package.json files, such as in Lerna Monorepos and Yarn Workspaces\n\n## 🤓 Author\n\n\u003cimg src=\"https://www.gravatar.com/avatar/acdf106ce071806278438d8c354adec8?s=100\" align=\"left\"\u003e\n\nI'm [Jamie Mason] from [Leeds] in England, I began Web Design and Development in 1999 and have been Contracting and offering Consultancy as Fold Left Ltd since 2012. Who I've worked with includes [Sky Sports], [Sky Bet], [Sky Poker], The [Premier League], [William Hill], [Shell], [Betfair], and Football Clubs including [Leeds United], [Spurs], [West Ham], [Arsenal], and more.\n\n\u003cdiv align=\"center\"\u003e\n\n[![Follow JamieMason on GitHub][github badge]][github]      [![Follow fold_left on Twitter][twitter badge]][twitter]\n\n\u003c/div\u003e\n\n\u003c!-- images --\u003e\n\n[github badge]: https://img.shields.io/github/followers/JamieMason.svg?style=social\u0026label=Follow\n\n[twitter badge]: https://img.shields.io/twitter/follow/fold_left.svg?style=social\u0026label=Follow\n\n\u003c!-- links --\u003e\n\n[arsenal]: https://www.arsenal.com\n\n[betfair]: https://www.betfair.com\n\n[github]: https://github.com/JamieMason\n\n[jamie mason]: https://www.linkedin.com/in/jamiemasonleeds\n\n[leeds united]: https://www.leedsunited.com/\n\n[leeds]: https://www.instagram.com/visitleeds\n\n[premier league]: https://www.premierleague.com\n\n[shell]: https://www.shell.com\n\n[sky bet]: https://www.skybet.com\n\n[sky poker]: https://www.skypoker.com\n\n[sky sports]: https://www.skysports.com\n\n[spurs]: https://www.tottenhamhotspur.com\n\n[twitter]: https://twitter.com/fold_left\n\n[west ham]: https://www.whufc.com\n\n[william hill]: https://www.williamhill.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiemason%2Fkarma-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiemason%2Fkarma-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiemason%2Fkarma-benchmark/lists"}