{"id":15306909,"url":"https://github.com/kenjis/php-orm-benchmark","last_synced_at":"2025-04-14T19:23:34.239Z","repository":{"id":24169814,"uuid":"27560188","full_name":"kenjis/php-orm-benchmark","owner":"kenjis","description":"PHP ORM Benchmark","archived":false,"fork":false,"pushed_at":"2015-12-11T01:44:05.000Z","size":598,"stargazers_count":143,"open_issues_count":5,"forks_count":14,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-28T07:51:10.346Z","etag":null,"topics":["benchmark","orm","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenjis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE_FUEL.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-04T21:09:07.000Z","updated_at":"2024-10-31T23:26:42.000Z","dependencies_parsed_at":"2022-08-22T12:10:22.925Z","dependency_job_id":null,"html_url":"https://github.com/kenjis/php-orm-benchmark","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/kenjis%2Fphp-orm-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenjis%2Fphp-orm-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenjis%2Fphp-orm-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenjis%2Fphp-orm-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenjis","download_url":"https://codeload.github.com/kenjis/php-orm-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943520,"owners_count":21186978,"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":["benchmark","orm","php"],"created_at":"2024-10-01T08:08:21.308Z","updated_at":"2025-04-14T19:23:34.198Z","avatar_url":"https://github.com/kenjis.png","language":"PHP","readme":"# PHP ORM Benchmark\n\n## ORMs to Benchmark\n\n1. Doctrine ORM v2.5.2\n1. Eloquent ORM (illuminate/database) v4.2.17\n1. FuelPHP Orm 1.7.3\n1. Phalcon ORM 2.0.8\n1. Propel ORM 2.0-dev\n1. Yii ActiveRecord 1.1.16\n1. Yii ActiveRecord 2.0.6\n\n## Results\n\nThese are my benchmarks, not yours. **I encourage you to run on your (production equivalent) environments.**\n\n### Benchmarking Environment\n\n* CentOS 6.6 64bit (VM; VirtualBox with Vagrant Synced folder)\n  * PHP 5.5.30 (Remi RPM)\n    * Zend OPcache v7.0.4-dev\n  * MySQL 5.1\n  * Apache 2.2\n\n(2015-12-10)\n\n|orm                |time (ms)|memory (KB) |\n|-------------------|--------:|-----------:|\n|doctrine           |   109.81|     1310.06|\n|propel2            |    51.32|     1144.60|\n|eloquent           |    34.46|      673.80|\n|yii1               |    17.84|      808.48|\n|fuel               |    11.74|      389.72|\n|yii2               |     9.09|      835.82|\n|phalcon            |     7.25|      150.05|\n\nIf you are interested in other resutls, see [OTHER_RESULTS.md](OTHER_RESULTS.md).\n\n## How to Benchmark\n\n(1) Install this repository and install composer packages.\n\n~~~\n$ git clone https://github.com/kenjis/php-orm-benchmark.git\n$ cd php-orm-benchmark\n$ composer install\n~~~\n\nYou may skip Phalcon by running `composer install --ignore-platform-reqs`, if you do not have it installed.\n\n(2) Set `public` folder as your web document root. If you access \u003chttp://localhost/\u003e, you can see the results graph.\n\n(3) Configure `fuel/app/config/development/db.php`.\n\n(4) Create database `php_dev` and import schema `schema/php_dev.sql`.\n\n~~~\n$ php oil r setup:mysql\n~~~\n\n(5) Generate config file for Propel.\n\n~~~\n$ php oil r setup:propel2\n~~~\n\n(6) Run benchmarks.\n\n~~~\n$ php oil r benchmark\n~~~\n\nSee \u003chttp://localhost/\u003e.\n\nYou can get markdown table for the results.\n\n~~~\n$ php oil r show:result_table\n~~~\n\n## References\n\n* [Doctrine ORM](http://www.doctrine-project.org/projects/orm.html)\n* [Eloquent ORM](https://github.com/illuminate/database)\n* [FuelPHP 1.x Orm](http://fuelphp.com/docs/packages/orm/intro.html)\n* [Phalcon ORM](http://docs.phalconphp.com/en/latest/reference/models.html)\n* [Propel 2](http://propelorm.org/)\n* [Yii 1 ActiveRecord](http://www.yiiframework.com/doc/guide/1.1/en/database.ar)\n* [Yii 2 ActiveRecord](http://www.yiiframework.com/doc-2.0/guide-db-active-record.html)\n\n## Other Benchmarks\n\n* [François Zaninotto php-orm-benchmark with updated vendors](https://github.com/Big-Shark/forked-php-orm-benchmark)\n* [PHP Framework Benchmark](https://github.com/kenjis/php-framework-benchmark)\n* [PHP User Agent Parser Benchmarks](https://github.com/kenjis/user-agent-parser-benchmarks)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenjis%2Fphp-orm-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenjis%2Fphp-orm-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenjis%2Fphp-orm-benchmark/lists"}