MSOpenTech/redis — pull request #186 by deepakverma (2014-10-23 19:14:47+00:00)
Title:  Using QueryPerformancecounter to measure latency in redis-benchmark.exe

Redis-benchmark on windows seems to be not able to calculate the time granularity in micro seconds.
Came across this article http://msdn.microsoft.com/en-us/library/windows/desktop/dn553408(v=vs.85).aspx and updated the benchmark for latency measurements accordingly.

Windows:
Following is output from windows for micro seconds taken for each request. Where for any request taking less than 1 ms is being calculated as 0
redis-benchmark.exe -h -a pwd -c 1 -d 1024 -t get -n 10
0,0,0,0,0,0,0,0

Linux:
src/redis-benchmark -h -a pwd -c 1 -d 1024 -t get -n 10
792,800,808,820,837,845,888,891,971,2498

After the change on windows now it shows following:
796,809,887,890,893,943,944,974