public void run() {
          try {
            System.out.println("Shutdown invoked");
            shutdown.set(true);
            latch.await();
            System.out.println(
                "Total writes : " + totalWrites.get() + "  Total time taken : " + totalTimeTakenInNs.get()
                    + " Nano Seconds  Average time taken per write "
                    + ((double) totalWrites.get() / totalTimeTakenInNs.get()) / SystemTime.NsPerSec + " Seconds");
          } catch (Exception e) {
            System.out.println("Error while shutting down " + e);
          }
        }
Tests the memory boundaries and latencies of the index structure
during writes
ambry-tools/src/main/java/com/github/ambry/store/IndexWritePerformance.java