{"id":16860478,"url":"https://github.com/webpro/benchrunner","last_synced_at":"2025-07-25T12:39:33.024Z","repository":{"id":12977149,"uuid":"15655812","full_name":"webpro/benchrunner","owner":"webpro","description":"Benchmark Suite Runner for benchmark.js","archived":false,"fork":false,"pushed_at":"2014-11-19T15:03:28.000Z","size":240,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T15:02:52.320Z","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/webpro.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":"2014-01-05T17:58:48.000Z","updated_at":"2019-08-13T15:33:08.000Z","dependencies_parsed_at":"2022-09-17T14:11:39.869Z","dependency_job_id":null,"html_url":"https://github.com/webpro/benchrunner","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/webpro/benchrunner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbenchrunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbenchrunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbenchrunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbenchrunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpro","download_url":"https://codeload.github.com/webpro/benchrunner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fbenchrunner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267007857,"owners_count":24020267,"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-07-25T02:00:09.625Z","response_time":70,"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":[],"created_at":"2024-10-13T14:24:27.668Z","updated_at":"2025-07-25T12:39:32.978Z","avatar_url":"https://github.com/webpro.png","language":"JavaScript","readme":"# Benchmark Suite Runner for benchmark.js\n\n## Installation\n\n### npm\n\n    npm install benchrunner\n\n### Bower\n\n    bower install benchrunner\n\n## Usage\n\nYou can write a suite like this:\n\n    (function(root) {\n    \n        var suites = root.benchrunner.suites;;\n    \n        suites.push(Benchmark.Suite('trim')\n            .add('String.replace', function() {\n                '   foo   '.replace(/^\\s+|\\s+$/g, '');\n            })\n            .add('String.trim', function() {\n                '   foo   '.trim();\n            })\n        );\n    \n    }(typeof global == 'object' \u0026\u0026 global || this));\n\nNow you can run them from CLI or in the browser really easy:\n\n### CLI\n\nCurrently only PhantomJS is supported.\n\n\tphantomjs benchrunner.js suite1.js suite2.js\n\nFrom the root of your project, that would become e.g.:\n\n    phantomjs ./node_modules/benchrunner/benchrunner.js benchmarks/my-suite.js\n\nOr, if you install globally (i.e. `npm install -g benchrunner`):\n\n\tbenchrunner benchmarks/my-suite.js\n\n### Browser\n\nJust point your browser at the runner page, e.g.\n\n    http://localhost/your-project/benchmarks/index.html\n\nSee `examples/basic.html` for an example (you need to include a few scripts).\n\n## Examples\n\n* [Examples](examples/) in this repository.\n* [jQuery Evergreen](https://github.com/webpro/jquery-evergreen/tree/master/benchmark) ([run](http://webpro.github.io/jquery-evergreen/benchmark/))\n\n## Credits\n\nHeavily inspired by [Lo-Dash's benchmark suite runner](https://github.com/lodash/lodash/blob/master/perf/perf.js).\n\n## License\n\n[MIT licensed](http://webpro.mit-license.org)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpro%2Fbenchrunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpro%2Fbenchrunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpro%2Fbenchrunner/lists"}