Created 100 keys from 0 to 99 and added them to a set in Redis 2.6 RC5
The results were not what I'd expected . .
cumulus:src kbishop$ ./redis-benchmark -n 1000000 -q 'SORT set by nosort get * get #'
SORT set by nosort get * get #: 34760.85 requests per second
cumulus:src kbishop$ ./redis-benchmark -n 1000000 -q 'MGET 0 1 2 3 [...] 99'
MGET 0 1 2 3 [...] 99: 28380.07 requests per second
What the heck is going on here? How could providing a set of keys vs using a pre-existing set of keys incur such a performance hit? Is there some threshold of key length after which the redis commands are split into multiple packets or something? I would've expected MGET to perform better than SORT, not worse . .