{"id":13826829,"url":"https://github.com/DylanPiercey/benchmark-cli","last_synced_at":"2025-07-09T01:31:43.146Z","repository":{"id":57189474,"uuid":"99178228","full_name":"DylanPiercey/benchmark-cli","owner":"DylanPiercey","description":"🏋️‍♀️ CLI application to benchmark JavaScript files.","archived":false,"fork":false,"pushed_at":"2017-08-03T02:04:58.000Z","size":52,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-13T14:08:04.092Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DylanPiercey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-03T01:47:43.000Z","updated_at":"2023-05-03T13:04:09.000Z","dependencies_parsed_at":"2022-09-15T06:22:01.200Z","dependency_job_id":null,"html_url":"https://github.com/DylanPiercey/benchmark-cli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanPiercey%2Fbenchmark-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanPiercey%2Fbenchmark-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanPiercey%2Fbenchmark-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanPiercey%2Fbenchmark-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DylanPiercey","download_url":"https://codeload.github.com/DylanPiercey/benchmark-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476383,"owners_count":17480215,"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","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":[],"created_at":"2024-08-04T09:01:44.987Z","updated_at":"2024-11-20T05:31:11.487Z","avatar_url":"https://github.com/DylanPiercey.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e\n  \u003c!-- Logo --\u003e\n  \u003cbr/\u003e\n  benchmark-cli\n\t\u003cbr/\u003e\n\n  \u003c!-- Stability --\u003e\n  \u003ca href=\"https://nodejs.org/api/documentation.html#documentation_stability_index\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/stability-stable-brightgreen.svg?style=flat-square\" alt=\"API stability\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Standard --\u003e\n  \u003ca href=\"https://github.com/feross/standard\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\" alt=\"Standard\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- NPM version --\u003e\n  \u003ca href=\"https://npmjs.org/package/benchmark-cli\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/benchmark-cli.svg?style=flat-square\" alt=\"NPM version\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Downloads --\u003e\n  \u003ca href=\"https://npmjs.org/package/benchmark-cli\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/benchmark-cli.svg?style=flat-square\" alt=\"Downloads\"/\u003e\n  \u003c/a\u003e\n\u003c/h1\u003e\n\nQuickly run some benchmarks from the CLI.\nSupports requiring dependencies and uses [benchmark.js](https://benchmarkjs.com) internally.\n\n# Installation\n\n```console\nnpm install benchmark-cli -g\n```\n\n# Examples\n\n### Single file\n```console\n$ benchmark ./test/example1.js\n✔ example1 x 83,285 ops/sec ±0.83% (86 runs sampled)\n```\n\n### Glob of files\n```console\n$ benchmark ./test/*.js\n✔ example1 x 84,518 ops/sec ±0.90% (87 runs sampled)\n✔ example2 x 1,612,805 ops/sec ±1.81% (80 runs sampled)\n```\n\n### Evaluate script\n```console\n$ benchmark -e \"for (var i = 1000; i--;);\"\n✔ eval-1 x 244,076 ops/sec ±1.17% (86 runs sampled)\n```\n\n### Evaluate multiple scripts\n```console\n$ benchmark -e \"1 + 1\" -e \"1 + 2\"\n✔ eval-1 x 1,561,524 ops/sec ±2.24% (77 runs sampled)\n✔ eval-2 x 1,633,941 ops/sec ±1.76% (82 runs sampled)\n```\n\n### Contributions\n\nPlease feel free to create a PR!\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDylanPiercey%2Fbenchmark-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDylanPiercey%2Fbenchmark-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDylanPiercey%2Fbenchmark-cli/lists"}