{"id":14985401,"url":"https://github.com/bvanhoekelen/performance","last_synced_at":"2025-05-15T11:07:45.109Z","repository":{"id":46732786,"uuid":"84869076","full_name":"bvanhoekelen/performance","owner":"bvanhoekelen","description":"⏱ PHP performance tool analyser your script on time, memory usage and db query. Support Laravel and Composer for web, web console and command line interfaces.","archived":false,"fork":false,"pushed_at":"2024-06-04T15:49:35.000Z","size":6474,"stargazers_count":522,"open_issues_count":7,"forks_count":36,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-05-07T15:03:00.988Z","etag":null,"topics":["analyzer","command-line","command-line-tool","composer","composer-commands","database","export","laravel","measure","packagist","performance","performance-analysis","performance-testing","php","php-performance","query","query-optimization"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bvanhoekelen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-03-13T20:01:00.000Z","updated_at":"2025-03-12T18:00:58.000Z","dependencies_parsed_at":"2024-06-18T12:25:59.960Z","dependency_job_id":"cd89e776-df64-490e-afa8-b9704cc8ef4e","html_url":"https://github.com/bvanhoekelen/performance","commit_stats":{"total_commits":270,"total_committers":9,"mean_commits":30.0,"dds":0.09259259259259256,"last_synced_commit":"48fee558069d638fe5430f70b1c9befbf78f162b"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvanhoekelen%2Fperformance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvanhoekelen%2Fperformance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvanhoekelen%2Fperformance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvanhoekelen%2Fperformance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bvanhoekelen","download_url":"https://codeload.github.com/bvanhoekelen/performance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253351734,"owners_count":21895027,"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":["analyzer","command-line","command-line-tool","composer","composer-commands","database","export","laravel","measure","packagist","performance","performance-analysis","performance-testing","php","php-performance","query","query-optimization"],"created_at":"2024-09-24T14:10:53.813Z","updated_at":"2025-05-15T11:07:45.063Z","avatar_url":"https://github.com/bvanhoekelen.png","language":"PHP","readme":"# ⏱ PHP Performance tool 🛠\n\n[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000\u0026style=flat-square)](https://github.com/bvanhoekelen/performance/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/bvanhoekelen/performance.svg?style=flat-square)](https://github.com/bvanhoekelen/performance/releases)\n[![Packagist](https://img.shields.io/packagist/dt/bvanhoekelen/performance.svg?style=flat-square)](https://packagist.org/packages/bvanhoekelen/performance)\n[![Github issues](https://img.shields.io/github/issues/bvanhoekelen/performance.svg?style=flat-square)](https://github.com/bvanhoekelen/performance/issues)\n[![Travis branch](https://img.shields.io/travis/bvanhoekelen/performance/master.svg?style=flat-square)](https://travis-ci.org/bvanhoekelen/performance)\n[![Travis branch](https://img.shields.io/travis/bvanhoekelen/performance/develop.svg?style=flat-square)](https://travis-ci.org/bvanhoekelen/performance) Build: Master|Develop\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/raw/php-performance-tool.png\" alt=\"PHP performance tool\" /\u003e\u003c/p\u003e\n\n## Highlight\n- Measure easily the performance of your PHP script across multiple platforms\n- Support for Laravel framework » [Laravel](https://laravel.com)\n- Support interface web, web console and command line\n- Export results to class, file or json string » [how to use query logging](https://github.com/bvanhoekelen/performance/wiki/Export-handler)\n- Print information about PHP version, max exaction time and max memory\n- Display current user and process id » [how to display username and process id](https://github.com/bvanhoekelen/performance/wiki/Config-run-information)\n- Support multiple points » [how to use multiple points](https://github.com/bvanhoekelen/performance/wiki/Multiple-points)\n- Measure time, memory usage and memory peak\n- Switch automatically between interfaces\n- Log database queries » [how to use query logging](https://github.com/bvanhoekelen/performance/wiki/Config-query-log)\n- Live function » [how to use](#command-line)\n- Easy to install » [installation](#installation)\n- Support PHP version 5.6, 7.0, 7.1, 7.2\n- Clearly and active wiki » [Wiki](https://github.com/bvanhoekelen/performance/wiki)\n- Love feedback » [backlog](https://github.com/bvanhoekelen/performance/blob/master/BACKLOG.md) or [create issues](https://github.com/bvanhoekelen/performance/issues)\n\n## Easy to use\n```php\n// Add namespace at the top\nuse Performance\\Performance;\n\n// Set measure point\nPerformance::point();\n\n//\n// Run test code\n//\n\n// Finish all tasks and show test results\nPerformance::results();\n\n```\nSee the [function overview](https://github.com/bvanhoekelen/performance/wiki/Doc-functions) for more functions.\n\n## Web preview\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/raw/php-performance-tool-web-support.png\" alt=\"PHP performance tool for web\" /\u003e\u003c/p\u003e\n\n## Command line preview\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/raw/php-performance-tool-command-line.png\" alt=\"PHP performance tool for command line\" /\u003e\u003c/p\u003e\n\nSee [how to use query logging](https://github.com/bvanhoekelen/performance/wiki/Config-query-log).\n\n## Web console\n\u003cp align=\"center\"\u003e\u003cimg src=\"/assets/raw/php-performance-tool-full-data-review.png\" alt=\"PHP performance tool with full date review\" /\u003e\u003c/p\u003e\n\nSee [how to use query logging](https://github.com/bvanhoekelen/performance/wiki/Config-query-log).\n\nSee [how to export data](https://github.com/bvanhoekelen/performance/wiki/Export-handler).\n\nSee [more info over data review](https://github.com/bvanhoekelen/performance/wiki/Config-presenter).\n\n## Functions\nSet measuring point with or without label\n\n```php\nPerformance::point( \u003coptional:label\u003e );\n```\n\nFinish previous measuring point \n\n```php\nPerformance::finish();\n```\n\nFinish all measuring points and return test results\n\n```php\nPerformance::results();\n```\n\nSee the [function overview](https://github.com/bvanhoekelen/performance/wiki/Doc-functions) for more.\n\n## Command line\n\nRun the performance test for the command line\n\n```php\n// Normal\n$ php your_script.php\n\n// Or live version\n$ php your_script.php --live \n```\n\n# Help, docs and links\n- [Wiki](https://github.com/bvanhoekelen/performance/wiki)\n- [Config items](https://github.com/bvanhoekelen/performance/wiki/Doc-config)\n- [Backlog](https://github.com/bvanhoekelen/performance/blob/master/BACKLOG.md)\n- [Change log](https://github.com/bvanhoekelen/performance/blob/master/CHANGELOG.md)\n- [Packagist](https://packagist.org/packages/bvanhoekelen/performance)\n\n## Backlog \u0026 Feedback\nIf you have any suggestions to improve this performance tool? Please add your feature, bug or improvement to the [BACKLOG.dm](https://github.com/bvanhoekelen/performance/blob/master/BACKLOG.md). Or create a [issues](https://github.com/bvanhoekelen/performance/issues).\n- [Open backlog](https://github.com/bvanhoekelen/performance/blob/master/BACKLOG.md)\n- [Create issues](https://github.com/bvanhoekelen/performance/issues)\n\n# Installation\n\n## Install with Laravel\nGet PHP performance tool by running the Composer command in the command line. \n```{r, engine='bash', count_lines}\n $ composer require bvanhoekelen/performance\n```\n\nOpen your file for the performance test.\n```php\n// Add namespace at the top\nuse Performance\\Performance;\n\n// Set measure point\nPerformance::point();\n\n//\n// Run test code\n//\n\n// Finish all tasks and show test results\nPerformance::results();\n```\n\n## Install with Composer\nGet PHP performance by running the Composer command in the command line. \n```{r, engine='bash', count_lines}\n $ composer require bvanhoekelen/performance\n```\n\nOpen your file for the performance test.\n```php\n// Require vender autoload\nrequire_once('../vendor/autoload.php');\n\n// Add namespace at the top\nuse Performance\\Performance;\n\n// Set measure point\nPerformance::point();\n\n//\n// Run test code\n//\n\n// Finish all tasks and show test results\nPerformance::results();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvanhoekelen%2Fperformance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbvanhoekelen%2Fperformance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvanhoekelen%2Fperformance/lists"}