{"id":20208245,"url":"https://github.com/cubiclesoft/php-concurrency-tester","last_synced_at":"2025-12-31T14:17:42.258Z","repository":{"id":145129387,"uuid":"207122980","full_name":"cubiclesoft/php-concurrency-tester","owner":"cubiclesoft","description":"A simple program that executes another PHP command-line script and (hopefully) collects output in CSV format for later analysis.  Mostly for performance testing/verifying localhost TCP/IP servers.","archived":false,"fork":false,"pushed_at":"2022-02-26T15:07:36.000Z","size":151,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T10:15:55.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/cubiclesoft.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":"support/cli.php","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-08T14:16:49.000Z","updated_at":"2021-11-23T17:34:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"66ca97dd-c906-4deb-b824-2cdedcd283f6","html_url":"https://github.com/cubiclesoft/php-concurrency-tester","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cubiclesoft/php-concurrency-tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubiclesoft%2Fphp-concurrency-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubiclesoft%2Fphp-concurrency-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubiclesoft%2Fphp-concurrency-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubiclesoft%2Fphp-concurrency-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cubiclesoft","download_url":"https://codeload.github.com/cubiclesoft/php-concurrency-tester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubiclesoft%2Fphp-concurrency-tester/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265863793,"owners_count":23840888,"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-11-14T05:34:47.965Z","updated_at":"2025-12-31T14:17:42.231Z","avatar_url":"https://github.com/cubiclesoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP-based Concurrency Tester\n============================\n\nA simple program that executes another PHP command-line script and (hopefully) collects output in CSV format for later analysis.  Mostly for performance testing/verifying localhost TCP/IP servers.\n\n[![Donate](https://cubiclesoft.com/res/donate-shield.png)](https://cubiclesoft.com/donate/) [![Discord](https://img.shields.io/discord/777282089980526602?label=chat\u0026logo=discord)](https://cubiclesoft.com/product-support/github/)\n\nFeatures\n--------\n\n* A cheesy 100-ish line script that executes another script.\n* Nothing particularly special beyond that.\n* Has a liberal open source license.  MIT or LGPL, your choice.\n* Designed for relatively painless integration into your project.\n* Sits on GitHub for all of that pull request and issue tracker goodness to easily submit changes and ideas respectively.\n\nGetting Started\n---------------\n\nWrite a script that communicates with a TCP/IP service similar to [this one](https://github.com/cubiclesoft/php-license-server/blob/master/concurrency_test.php).\n\nRun `run_tests.php`:\n\n```\nphp run_tests.php 20 yourscript.php\n```\n\nRuns the script `yourscript.php` at a concurrency level of 20.  The first parameter passed to `yourscript.php` is a timestamp to start running.  This allows the tester to start the correct number of processes.\n\nNote that if the TCP/IP server is fast enough, connecting and disconnecting can starve the process of available TCP/IP socket handles.  Instead, simulate connection times by using a microsecond sleep function.\n\nThis isn't the world's greatest benchmarking tool.  In fact, it is probably severely flawed in some fundamental way as are most benchmarking tools.  It's merely here to provide some basic performance checks against custom TCP/IP servers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcubiclesoft%2Fphp-concurrency-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcubiclesoft%2Fphp-concurrency-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcubiclesoft%2Fphp-concurrency-tester/lists"}