Closed remcohn closed 1 month ago
Hello curious contributor ! Since it seems to be your first contribution, make sure that you've been:
Hello,
it mostly depend on the server physical and and software configuration and how phpfastcache runs in a race condition.
Server SSD and HDD-based will behave differently for file-based drivers. However when running heavily queried applications, memory-based drivers will undoubtedly offers better performances.
What's your question ?
I am trying to understand the performance differences between various drivers. In my case, im comparing files, sqlite, redis and memory. I have attached my php code below. The output on my test server is the following:
I am surprised by the fact that the read performance is pretty much identical between all drivers. And there is very little difference between redis and files, while memory is faster. Also the reconnect time is also virtually identical between drivers.
The code is running each test for 1 second, and the numbers are the loop counter.
Am i missing something? Am i testing the wrong things?
I am grateful for any explanation :)
Thanks, Remco
References (optional)
No response
Do you have anything more you want to share? (optional)
No response