{"id":17349019,"url":"https://github.com/nafigator/php-bench","last_synced_at":"2025-04-14T20:46:19.530Z","repository":{"id":147421517,"uuid":"12243578","full_name":"nafigator/php-bench","owner":"nafigator","description":":alarm_clock: Tools for benchmark PHP algorithms.","archived":false,"fork":false,"pushed_at":"2025-01-20T09:11:37.000Z","size":293,"stargazers_count":36,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T09:03:48.540Z","etag":null,"topics":["benchmarking","php","tool"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nafigator.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-08-20T13:20:35.000Z","updated_at":"2025-01-20T09:11:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"74bbb12a-7f19-46fa-8ba3-e4a58e49f7f7","html_url":"https://github.com/nafigator/php-bench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fphp-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fphp-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fphp-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fphp-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nafigator","download_url":"https://codeload.github.com/nafigator/php-bench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248960738,"owners_count":21189987,"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":["benchmarking","php","tool"],"created_at":"2024-10-15T16:54:24.308Z","updated_at":"2025-04-14T20:46:19.516Z","avatar_url":"https://github.com/nafigator.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub license][License img]][License src] [![Conventional Commits][Conventional commits badge]][Conventional commits src]\n\nphp-bench\n=========\n**Console tools for benchmark PHP algorithms.**\n\n![Alt php-bench](https://github.com/nafigator/php-bench/raw/master/screen.png)\n\n### Requirements:\n\n* PHP CLI 5.4+\n\n### Installation:\n\n```bash\ngit clone https://github.com/nafigator/php-bench.git\ncd php-bench\ngit submodule update --init\n```\n\n### Usage:\n\nCreate copy of test executable and modify your local settings:\n\n```text\ncp test-example test\n```\n\n\nShow available tests:\n\n```text\n./test-list\n```\n\nCreate test skeleton:\n\n```text\n./test-new \u003cTest name\u003e [\u003cBlock count\u003e]\n```\n**Test name** - name of new test class.\u003cbr\u003e\n**Block count** - how much test blocks generate\n\nRun test:\n\n```text\n./test \u003cClass\u003e\n```\n\n\n**Class** - class name from Tests directory.\n\n### Examples:\n\n```text\n./test CloneVsNew\n./test IncludeVsRequire\n```\n\n\n### Run all tests:\n\n```bash\nfor name in $(find Tests -type f -name '*.php' | sed 's/^Tests\\/\\(.*\\)\\.php/\\1/');\n\tdo echo;echo $name;echo; ./test $name;\ndone;\n```\n\n***\nIf you'd like to see other PHP-algorithm comparison in this collection, feel\nfree to create a new issue. Thanks!\n\n[License img]: https://img.shields.io/github/license/nafigator/php-bench?color=teal\n[License src]: https://tldrlegal.com/license/bsd-3-clause-license-(revised)\n[Conventional commits src]: https://conventionalcommits.org\n[Conventional commits badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-teal.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnafigator%2Fphp-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnafigator%2Fphp-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnafigator%2Fphp-bench/lists"}