@@ -0,0 +1,1742 @@
+package redis.clients.jedis.tests.benchmark;%0A%0Aimport java.io.IOException;%0Aimport java.net.UnknownHostException;%0Aimport java.util.ArrayList;%0Aimport java.util.Calendar;%0Aimport java.util.Collection;%0Aimport java.util.List;%0A%0Aimport redis.clients.jedis.Jedis;%0Aimport redis.clients.jedis.JedisShardInfo;%0Aimport redis.clients.jedis.ShardedJedis;%0Aimport redis.clients.jedis.tests.HostAndPortUtil;%0Aimport redis.clients.jedis.tests.HostAndPortUtil.HostAndPort;%0A%0Apublic class HashingBenchmark %7B%0A    private static HostAndPort hnp1 = HostAndPortUtil.getRedisServers().get(0);%0A    private static HostAndPort hnp2 = HostAndPortUtil.getRedisServers().get(1);%0A    private static final int TOTAL_OPERATIONS = 100000;%0A%0A    public static void main(String%5B%5D args) throws UnknownHostException,%0A            IOException %7B%0A        List%3CJedisShardInfo%3E shards = new ArrayList%3CJedisShardInfo%3E();%0A        JedisShardInfo shard = new JedisShardInfo(hnp1.host, hnp1.port);%0A        shard.setPassword(%22foobared%22);%0A        shards.add(shard);%0A        shard = new JedisShardInfo(hnp2.host, hnp2.port);%0A        shard.setPassword(%22foobared%22);%0A        shards.add(shard);%0A        ShardedJedis jedis = new ShardedJedis(shards);%0A        Collection%3CJedis%3E allShards = jedis.getAllShards();%0A        for (Jedis j : allShards) %7B%0A            j.flushAll();%0A        %7D%0A%0A        long begin = Calendar.getInstance().getTimeInMillis();%0A%0A        for (int n = 0; n %3C= TOTAL_OPERATIONS; n++) %7B%0A            String key = %22foo%22 + n;%0A            jedis.set(key, %22bar%22 + n);%0A            jedis.get(key);%0A        %7D%0A%0A        long elapsed = Calendar.getInstance().getTimeInMillis() - begin;%0A%0A        jedis.disconnect();%0A%0A        System.out.println(((1000 * 2 * TOTAL_OPERATIONS) / elapsed) + %22 ops%22);%0A    %7D%0A%7D

Add benchmark for hashing algos