{"id":21771147,"url":"https://github.com/initphp/performancemeter","last_synced_at":"2025-03-21T06:22:12.983Z","repository":{"id":50295224,"uuid":"470092210","full_name":"InitPHP/PerformanceMeter","owner":"InitPHP","description":"A helpful library that allows you to measure and compare the runtime of the code you write with PHP.","archived":false,"fork":false,"pushed_at":"2022-07-28T05:54:24.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T03:13:47.215Z","etag":null,"topics":["performance-test","performance-testing","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InitPHP.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}},"created_at":"2022-03-15T09:40:53.000Z","updated_at":"2022-04-04T08:22:00.000Z","dependencies_parsed_at":"2022-08-25T14:40:15.164Z","dependency_job_id":null,"html_url":"https://github.com/InitPHP/PerformanceMeter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FPerformanceMeter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FPerformanceMeter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FPerformanceMeter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FPerformanceMeter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InitPHP","download_url":"https://codeload.github.com/InitPHP/PerformanceMeter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244746790,"owners_count":20503264,"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":["performance-test","performance-testing","php"],"created_at":"2024-11-26T14:15:13.397Z","updated_at":"2025-03-21T06:22:12.950Z","avatar_url":"https://github.com/InitPHP.png","language":"PHP","readme":"# PerformanceMeter\n\nA helpful library that allows you to measure and compare the runtime of the code you write with PHP.\n\n[![Latest Stable Version](http://poser.pugx.org/initphp/performancemeter/v)](https://packagist.org/packages/initphp/performancemeter) [![Total Downloads](http://poser.pugx.org/initphp/performancemeter/downloads)](https://packagist.org/packages/initphp/performancemeter) [![Latest Unstable Version](http://poser.pugx.org/initphp/performancemeter/v/unstable)](https://packagist.org/packages/initphp/performancemeter) [![License](http://poser.pugx.org/initphp/performancemeter/license)](https://packagist.org/packages/initphp/performancemeter) [![PHP Version Require](http://poser.pugx.org/initphp/performancemeter/require/php)](https://packagist.org/packages/initphp/performancemeter)\n\n## Installation\n\n```\ncomposer require initphp/performance-meter\n```\n\nThis is a library consisting of a single file and a single class. You can choose to manually include the `src/PerformanceMeter.php` file in the project. However, I recommend Composer to manage patches and updates more easily.\n\n## Usage\n\n```php\nrequire_once \"../vendor/autoload.php\";\n\nuse InitPHP\\PerformanceMeter\\PerformanceMeter;\n\nPerformanceMeter::setPointer('main');\nfor($i = 0; $i \u003c= 1000; $i++){\n    usleep(10);\n}\nPerformanceMeter::setPointer('mainEnd');\n\necho PerformanceMeter::elapsedTime('main', 'mainEnd', 3) . ' seconds passed ';\necho PerformanceMeter::memoryUsage('main', 'mainend', 2) . ' memory used.';\n// Output : \"15.204 seconds passed 0.77KB memory used.\"\n```\n\n## Credits\n\n- [Muhammet ŞAFAK](https://www.muhammetsafak.com.tr) \u003c\u003cinfo@muhammetsafak.com.tr\u003e\u003e\n\n## License\n\nCopyright \u0026copy; 2022 [MIT License](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitphp%2Fperformancemeter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitphp%2Fperformancemeter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitphp%2Fperformancemeter/lists"}