{"id":21405414,"url":"https://github.com/karimsa/bench","last_synced_at":"2025-08-25T12:06:15.673Z","repository":{"id":149730947,"uuid":"444648072","full_name":"karimsa/bench","owner":"karimsa","description":"Minimal benchmarking library for JS.","archived":false,"fork":false,"pushed_at":"2023-01-19T16:37:36.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-23T07:28:21.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.org/@karimsa/bench","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/karimsa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-05T03:20:02.000Z","updated_at":"2022-01-07T07:08:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"64a962fb-4da9-4a32-8326-720edd3762cc","html_url":"https://github.com/karimsa/bench","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/karimsa/bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karimsa","download_url":"https://codeload.github.com/karimsa/bench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fbench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272063203,"owners_count":24866673,"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-08-25T02:00:12.092Z","response_time":1107,"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-11-22T16:25:16.091Z","updated_at":"2025-08-25T12:06:15.636Z","avatar_url":"https://github.com/karimsa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@karimsa/bench`\n\nMinimal benchmarking library for JS. Extracted from `@karimsa/wiz`.\n\n## Usage\n\nSample benchmark file\n\n```javascript\nconst { benchmark } = require('@karimsa/bench')\n\nbenchmark('test', async b =\u003e {\n    // do setup\n    b.resetTimer()\n\n    for (let i = 0; i \u003c b.N(); i++) {\n        // do expensive op\n        await foo()\n    }\n})\n```\n\nRun it like a regular node program:\n\n```\n$ node bench.js\n```\n\n## License\n\nLicensed under MIT.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarimsa%2Fbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fbench/lists"}