> https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...
Doctrine is slow, and this is not how you would use it in the real world. Throwing a cache on top of everything will speed it up considerably.
Doctrine is slow, and this is not how you would use it in the real world. Throwing a cache on top of everything will speed it up considerably.
[1] https://github.com/TechEmpower/FrameworkBenchmarks/issues/13...
Additionally you are not bootstrapping the Symfony cache correctly, you need to run "php app/console cache:clear --warmup --env=prod --no-debug" before running the tests, it might cause cache slams in your benchmarks.
metadata_cache_driver: apc
Else you are benchmarking the annotation and DQL parsers.
Also, for big PHP frameworks you have to make sure that APC's SHM size is large enough.