{"id":15629025,"url":"https://github.com/pwwang/benchwork","last_synced_at":"2025-10-10T13:41:26.925Z","repository":{"id":76855154,"uuid":"539333637","full_name":"pwwang/benchwork","owner":"pwwang","description":"A framework for benchmarking in python","archived":false,"fork":false,"pushed_at":"2022-11-12T00:46:11.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T18:14:04.237Z","etag":null,"topics":["benchmark-framework","benchmarking","benchmarking-framework","benchmarking-suite","python","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","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/pwwang.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-09-21T06:11:47.000Z","updated_at":"2023-02-08T14:02:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ed1004c-64fd-420e-8070-c3479ccc95a4","html_url":"https://github.com/pwwang/benchwork","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pwwang/benchwork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fbenchwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fbenchwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fbenchwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fbenchwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwwang","download_url":"https://codeload.github.com/pwwang/benchwork/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwwang%2Fbenchwork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004068,"owners_count":26083667,"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-10-10T02:00:06.843Z","response_time":62,"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":["benchmark-framework","benchmarking","benchmarking-framework","benchmarking-suite","python","testing"],"created_at":"2024-10-03T10:25:21.500Z","updated_at":"2025-10-10T13:41:26.883Z","avatar_url":"https://github.com/pwwang.png","language":"Python","readme":"# benchwork\n\nA framework for benchmarking in python\n\n## Installation\n\n```python\npip install -U benchwork\n```\n\n## Usage\n\n```python\nfrom benchwork import (\n    BenchAPI,\n    BenchCaseSpeed,\n    BenchSuite,\n    BenchSetSpeed,\n    BenchSetVersion,\n    run_suite,\n)\n\n\nclass BenchAPIPackage1(BenchAPI):\n    name = \"package1\"\n    version = \"0.0.1\"\n\n\nclass BenchAPIPackage2(BenchAPI):\n    name = \"package2\"\n    version = \"0.0.2\"\n\n\nclass BenchCaseSpeed(BenchCaseSpeed):\n    timeit_number = 10\n\n    def run_core(self):\n        import time\n        time.sleep(.1)\n\n\nclass BenchSetSpeed(BenchSetSpeed):\n    case = BenchCaseSpeed\n\n\nclass BenchSuite(BenchSuite):\n    \"\"\"Benchmarking suite\"\"\"\n    set_classes = [BenchSetVersion, BenchSetSpeed]\n\n\nif __name__ == \"__main__\":\n    run_suite(BenchSuite, None, \"Benchmarking\")\n```\n\nOutput:\n\n```markdown\n# Benchmarking\n\nBenchmarking suite\n\n## Versions\n\nShow versions of testing packages\n\n| |Version|\n|-|-----------------------|\n|package1|0.0.1|\n|package2|0.0.2|\n\n## Running speed\n\n| |Speed|\n|-|-----------------------|\n|package1|1.003228693996789|\n|package2|1.0028911930057802|\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwwang%2Fbenchwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwwang%2Fbenchwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwwang%2Fbenchwork/lists"}