@Override
    public void run() {
      String keyBase = "testKey";
      String object =
          "This is a test of an object blah blah es, "
              + "serialization does not seem to slow things down so much.  "
              + "The gzip compression is horrible horrible performance, "
              + "so we only use it for very large objects.  "
              + "I have not done any heavy benchmarking recently";

      long begin = System.currentTimeMillis();
      for (int i = stat.start; i < stat.start + stat.runs; i++) {
        mc.set("" + i + keyBase, 3600, object);
        if (TOTAL.incrementAndGet() >= MAX_QUEUE) {
          flush();
        }
      }
      long end = System.currentTimeMillis();

      stat.setterTime = end - begin;
    }
Adaptation of http://code.google.com/p/spcached/wiki/benchmarktool.
src/test/manual/net/spy/memcached/test/MemcachedThreadBench.java