@@ -0,0 +1,1124 @@
+package redis.clients.jedis.tests.benchmark;%0A%0Aimport java.io.IOException;%0Aimport java.net.UnknownHostException;%0Aimport java.util.Calendar;%0A%0Aimport redis.clients.util.SafeEncoder;%0A%0Apublic class SafeEncoderBenchmark %7B%0A    private static final int TOTAL_OPERATIONS = 10000000;%0A%0A    public static void main(String%5B%5D args) throws UnknownHostException,%0A            IOException %7B%0A        long begin = Calendar.getInstance().getTimeInMillis();%0A%0A        for (int n = 0; n %3C= TOTAL_OPERATIONS; n++) %7B%0A            SafeEncoder.encode(%22foo bar!%22);%0A        %7D%0A%0A        long elapsed = Calendar.getInstance().getTimeInMillis() - begin;%0A%0A        System.out.println(((1000 * TOTAL_OPERATIONS) / elapsed)%0A                + %22 ops to build byte%5B%5D%22);%0A%0A        begin = Calendar.getInstance().getTimeInMillis();%0A%0A        byte%5B%5D bytes = %22foo bar!%22.getBytes();%0A        for (int n = 0; n %3C= TOTAL_OPERATIONS; n++) %7B%0A            SafeEncoder.encode(bytes);%0A        %7D%0A%0A        elapsed = Calendar.getInstance().getTimeInMillis() - begin;%0A%0A        System.out.println(((1000 * TOTAL_OPERATIONS) / elapsed)%0A                + %22 ops to build Strings%22);%0A%0A    %7D%0A%7D

add benchmark for SafeEncoder