{"id":20963897,"url":"https://github.com/codemix/bencha","last_synced_at":"2026-04-21T18:33:48.466Z","repository":{"id":68799120,"uuid":"9697324","full_name":"codemix/bencha","owner":"codemix","description":"Mocha-esque UI for the excellent benchmarkjs benchmarking library","archived":false,"fork":false,"pushed_at":"2013-04-26T14:48:09.000Z","size":128,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-26T07:48:19.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/codemix.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":"2013-04-26T14:37:40.000Z","updated_at":"2014-06-03T12:09:49.000Z","dependencies_parsed_at":"2023-02-21T09:30:10.315Z","dependency_job_id":null,"html_url":"https://github.com/codemix/bencha","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codemix/bencha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fbencha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fbencha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fbencha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fbencha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemix","download_url":"https://codeload.github.com/codemix/bencha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fbencha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32104708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-19T02:48:48.863Z","updated_at":"2026-04-21T18:33:48.400Z","avatar_url":"https://github.com/codemix.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bencha\n\nMocha-esque UI for the excellent `benchmark.js` JavaScript benchmarking library.\nRecords benchmark history and flags performance improvements and regressions.\n\n# Installation\n\n    npm install bencha -g\n\n# Writing Benchmarks\n\nCreate a `bench` directory in your project. In the `bench` directory, create\nan `index.js` (or `index.coffee`), e.g.\n\n    compare(\"RegExp vs String::indexOf\", function(){\n      var input = \"demo.string\"\n      benchmark(\"RegExp\", function(){\n        /(\\.)/.test(input);\n      });\n      benchmark(\"String::indexOf\", function(){\n        input.indexOf(\".\") \u003e -1;\n      });\n    });\n\n    suite(\"My Feature\", function(){\n      benchmark(\"foo() no arguments\", function(){\n        foo();\n      });\n      benchmark(\"foo() with arguments\", function(){\n        foo(true, false);\n      });\n      benchmark(\"bar()\", function(){\n        bar()\n      });\n    });\n\nThe above defines two benchmark suites, the first is a comparison suite, comparison suites compare\nthe results of each benchmark within the suite, declaring one the winner. The second declaration defines\na suite containing three separate benchmarks that are related but not explicitly compared with each other.\n\nTo split your benchmarks into seperate files, simply `require()` them from the main `index.js` file.\n\n\n# Running Benchmarks\n\nFrom your project root (or the directory containing the `bench` folder), run:\n\n    bencha\n\nThis will run the benchmarks with the default `spec` reporter, recording the results in `bench/history.json`\n\nRun `bencha --help` for more options.\n\n\n# Licence\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemix%2Fbencha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemix%2Fbencha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemix%2Fbencha/lists"}