php-orm-benchmark

PHP ORM Benchmark

  • 所有者: kenjis/php-orm-benchmark
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

PHP ORM Benchmark

ORMs to Benchmark

  1. Doctrine ORM v2.5.2
  2. Eloquent ORM (illuminate/database) v4.2.17
  3. FuelPHP Orm 1.7.3
  4. Phalcon ORM 2.0.8
  5. Propel ORM 2.0-dev
  6. Yii ActiveRecord 1.1.16
  7. Yii ActiveRecord 2.0.6

Results

These are my benchmarks, not yours. I encourage you to run on your (production equivalent) environments.

Benchmarking Environment

  • CentOS 6.6 64bit (VM; VirtualBox with Vagrant Synced folder)
    • PHP 5.5.30 (Remi RPM)
      • Zend OPcache v7.0.4-dev
    • MySQL 5.1
    • Apache 2.2

(2015-12-10), orm, time (ms), memory (KB), -------------------, --------:, -----------:, doctrine, 109.81, 1310.06, propel2, 51.32, 1144.60, eloquent, 34.46, 673.80, yii1, 17.84, 808.48, fuel, 11.74, 389.72, yii2, 9.09, 835.82, phalcon, 7.25, 150.05, If you are interested in other resutls, see OTHER_RESULTS.md.

How to Benchmark

(1) Install this repository and install composer packages.

$ git clone https://github.com/kenjis/php-orm-benchmark.git
$ cd php-orm-benchmark
$ composer install

You may skip Phalcon by running composer install --ignore-platform-reqs, if you do not have it installed.

(2) Set public folder as your web document root. If you access http://localhost/, you can see the results graph.

(3) Configure fuel/app/config/development/db.php.

(4) Create database php_dev and import schema schema/php_dev.sql.

$ php oil r setup:mysql

(5) Generate config file for Propel.

$ php oil r setup:propel2

(6) Run benchmarks.

$ php oil r benchmark

See http://localhost/.

You can get markdown table for the results.

$ php oil r show:result_table

References

Other Benchmarks

主要指標

概覽
名稱與所有者kenjis/php-orm-benchmark
主編程語言PHP
編程語言PHP (語言數: 4)
平台
許可證Other
所有者活动
創建於2014-12-04 21:09:07
推送於2015-12-11 01:44:05
最后一次提交2015-12-11 10:38:13
發布數0
用户参与
星數143
關注者數11
派生數14
提交數64
已啟用問題?
問題數7
打開的問題數5
拉請求數2
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?