Skip to content

Instantly share code, notes, and snippets.

@c9s
Created January 25, 2017 14:03
Show Gist options
  • Save c9s/5a20efaa6e799026eb21e86d151d12a7 to your computer and use it in GitHub Desktop.
Save c9s/5a20efaa6e799026eb21e86d151d12a7 to your computer and use it in GitHub Desktop.
|-------------------------------------------------------------------------------------------------------|
| Library | Insert | findPk | complex| hydrate| with | memory usage | time |
| --------------------------------:| ------:| ------:| ------:| ------:| ------:| ------------:| ------:|
| PDO | 72 | 12 | 29 | 69 | 220 | 1,689,176 | 0.41 |
| Maghead | 395 | 9 | 176 | 205 | 365 | 10,485,760 | 1.16 |
| | | | | | | | |
| LessQL | 366 | 70 | 377 | 364 | 363 | 10,078,872 | 1.55 |
| | | | | | | | |
| YiiM | 714 | 86 | 436 | 292 | 614 | 8,388,608 | 2.16 |
| YiiMWithCache | 693 | 83 | 435 | 303 | 626 | 8,388,608 | 2.15 |
| | | | | | | | |
| Yii2M | 1425 | 164 | 568 | 554 | 980 | 8,388,608 | 3.73 |
| Yii2MArrayHydrate | 1440 | 174 | 546 | 303 | 909 | 8,388,608 | 3.39 |
| Yii2MScalarHydrate | 1441 | 200 | 566 | 261 | 511 | 8,388,608 | 3.00 |
| | | | | | | | |
| Propel20 | 605 | 57 | 992 | 1111 | 1592 | 8,388,608 | 4.38 |
| Propel20WithCache | 462 | 38 | 927 | 998 | 1412 | 8,388,608 | 3.85 |
| Propel20FormatOnDemand | 464 | 43 | 896 | 873 | 1369 | 8,388,608 | 3.65 |
| | | | | | | | |
| DoctrineM | 861 | 143 | 560 | 751 | 608 | 18,874,368 | 3.05 |
| DoctrineMWithCache | 851 | 143 | 542 | 935 | 604 | 18,874,368 | 3.12 |
| DoctrineMArrayHydrate | 881 | 140 | 558 | 446 | 398 | 18,874,368 | 2.47 |
| DoctrineMScalarHydrate | 826 | 141 | 543 | 387 | 343 | 18,874,368 | 2.29 |
| DoctrineMWithoutProxies | 966 | 172 | 584 | 595 | 705 | 18,874,368 | 3.07 |
| | | | | | | | |
| Eloquent | 1719 | 200 | 768 | 469 | 902 | 10,485,760 | 4.09 |
| EloquentWithoutEvent | 1511 | 190 | 705 | 473 | 906 | 10,485,760 | 3.80 |
|-------------------------------------------------------------------------------------------------------|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment