{"id":16834709,"url":"https://github.com/mscdex/benchd","last_synced_at":"2025-04-11T04:33:36.399Z","repository":{"id":63106236,"uuid":"39152790","full_name":"mscdex/benchd","owner":"mscdex","description":"Benchmark JavaScript code across different node.js/io.js versions from the browser","archived":false,"fork":false,"pushed_at":"2015-11-20T20:15:24.000Z","size":380,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T02:43:29.788Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mscdex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-15T18:08:54.000Z","updated_at":"2023-05-14T04:02:48.000Z","dependencies_parsed_at":"2022-11-13T00:45:16.898Z","dependency_job_id":null,"html_url":"https://github.com/mscdex/benchd","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Fbenchd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Fbenchd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Fbenchd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Fbenchd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mscdex","download_url":"https://codeload.github.com/mscdex/benchd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345203,"owners_count":21088231,"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-10-13T12:07:30.869Z","updated_at":"2025-04-11T04:33:36.312Z","avatar_url":"https://github.com/mscdex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Description\n===========\n\nbenchd is a tool for benchmarking JavaScript code across different node.js/io.js versions from the browser.\n\n\nRequirements\n============\n\n* Backend: [node.js](http://nodejs.org/) -- v0.10.0 or newer\n\n* Frontend: Any modern browser with WebSocket support\n\n\nInstall\n=======\n\n    npm install -g benchd\n\n\nConfig\n======\n\nConfiguration is achieved by a JSON formatted config file. If the `BENCHD_CONF` environment variable is set and points to a valid file, that will be used. Otherwise the server will look in the current working directory for `benchd.conf`. If that also fails, then defaults will be used. Any command-line arguments of the same names will override any other config source.\n\nAvailable config options:\n\n* **address** - _string_ - This is the address the server listens on. **Default: 0.0.0.0**\n\n* **jobAbandonTimeout** - _integer_ - This is the amount of time in milliseconds to allow a job's owner to be disconnected before removing (and stopping, if currently executing) the job. **Default: 30 * 1000**\n\n* **maxConcurrency** - _integer_ - This is the maximum number of target processes that are allowed to run at any given time. Set to `-1` as an alias for the number of available CPUs. **Default: 1**\n\n* **maxJobSize** - _integer_ - This is the maximum size (in bytes) for a job (the JSON stringified version, including all benchmarks). **Default: 512 * 1024**\n\n* **maxQueued** - _integer_ - This is the maximum number of queued jobs. **Default: 1000**\n\n* **port** - _integer_ - This is the port the server listens on. **Default: 80**\n\n* **targetsPath** - _string_ - This is the directory containing the target executables to make available for benchmarking against. **Default: (current working directory)**\n\n* **timeout** - _integer_ - This is the target process timeout in milliseconds. **Default: 5 * 60 * 1000**\n\n* **vanilla** - _boolean_ - Restrict benchmark code to a \"pure\"/vanilla JavaScript environment (e.g. no `require()`, `process`, etc.). **If you disable this and are making the server public, _PLEASE_ start the server in an appropriately protected environment.** **Default: true**\n\n\nTodo\n====\n\n* Add support for async (\"deferred\") option for benchmarks\n\n* Better WebSocket error handling\n\n* Add per-benchmark timeout configuration option\n\n* Ability to easily share benchmark results (can load from/save to gist right now, but no easy way to discover benchmarks)\n\n* Add support for remote targets (e.g. via ssh) for multi-platform benchmarking\n\n* Tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscdex%2Fbenchd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmscdex%2Fbenchd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscdex%2Fbenchd/lists"}