Cache miss in benchmarking against Redis

Hey @pushpesh4u, have your code write to different, but predictable keys.

For example, you can create a key for each process

$pid = getmypid();
$i = 0;
$key = $db->initKey('test', 'demo', $pid.':'.$i);

$i++; // every so often you could change the key further within the same benchmarking process.

You can have a better distribution of the writes so that they’re not writing to the same record on the same instance.

Look at the performance script examples:

Hi @rbotzer,

As asked by @dhaval, I am creating a separate function which shows the writes we are doing and the function for reads.

I will share it with you once we are done so that we can check if we are doing it wrong.

Thanks, Pushpesh