  @Test
  public void testBenchmark() throws AvroBaseException, InterruptedException {

    deleteTable(TABLE);
    final AvroBase<User, byte[]> instance = AvroBaseFactory.createAvroBase(new HABModule(), HAB.class, AvroFormat.BINARY);
    final User saved = new User();
    saved.firstName = $("Sam");
    saved.lastName = $("Pullara");
    saved.birthday = $("1212");
    saved.gender = GenderType.MALE;
    saved.email = $("spullara@yahoo.com");
    saved.description = $("CTO of RightTime, Inc. and one of the founders of BagCheck");
    saved.title = $("Engineer");
    saved.image = $("http://farm1.static.flickr.com/1/buddyicons/32354567@N00.jpg");
    saved.location = $("Los Altos, CA");
    saved.password = ByteBuffer.wrap($("").getBytes());
    long start = System.currentTimeMillis();
    final Semaphore s = new Semaphore(10);
    ExecutorService es = Executors.newCachedThreadPool();
    for (int i = 0; i < INSERTS; i++) {
      s.acquire();
      es.submit(new Runnable() {
        public void run() {
          try {
            instance.create(saved);
          } finally {
            s.release();
          }
        }
      });
    }
    s.acquire(10);
    s.release(10);
    long end = System.currentTimeMillis();
    System.out.println(INSERTS * 1000 / (end - start));
    deleteTable(TABLE);
  }