Le 04/04/2014 00:26, Nima Sadjadi a écrit :

I checked Filesystem with get_memory_peak_usage() and I see significant change vs. no cache, but I don't see significant speed change when I use microtime(true) ?! As you guys here said I expected that would be much faster vs. no cache!


Well, it depends of the amount of metadata you have (and also whether the loading of metadata is significant in your logic of if you have a huge logic running which would hide any potential gain).

Also note that FilesystemCache will not win against no-cache if you run your benchmark as a single PHP process, as the MetadataFactory will still cache the loaded metadata in memory for the current process.

The big difference is that the FilesystemCache will cache the metadata for all incoming requests to your server, so the loading will be done only for the first request sent to your server and then the cache will be used.

So I suggest you check the way your benchmark is done.

--
Christophe | Stof

--
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to