https://github.com/saada/php-benchmarks
PHP 5.4.3 Benchmarks
https://github.com/saada/php-benchmarks
Last synced: about 1 month ago
JSON representation
PHP 5.4.3 Benchmarks
- Host: GitHub
- URL: https://github.com/saada/php-benchmarks
- Owner: saada
- Created: 2013-07-11T17:19:50.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-11T18:00:11.000Z (almost 13 years ago)
- Last Synced: 2023-03-23T22:21:42.924Z (about 3 years ago)
- Language: PHP
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#PHP 5.4.3
##Results
###Arrays
Time Elapsed: 1.4054470062256s
Time Elapsed: 1.0627889633179s
Bytes per object:1064
###Classes
Time Elapsed: 1.2068569660187s
Time Elapsed: 2.1120779514313s
Bytes per object:1768
#Conclusion
##Time:
For every 1000000 (1million) object instantiations, you save about 200ms by using arrays as opposed to classes.
##Memory:
For every 1000000 (1million) object instantiations, you save about 700MB by using arrays as opposed to classes.