private static void usage(String s) {
    err.println("\n** " + s + "\n");
    err.println("usage: java DistributedSystemConnectPerf " + "[options] port iterations");
    err.println("  port          Port on which locator runs");
    err.println("  iterations    Number of times to " + "connect/disconnect");
    err.println("Where options are:");
    err.println("  -wait time    Time (in milliseconds) connection " + "is open");
    err.println();
    err.println("This program measures the amount of time it takes "
        + "to connect/disconnect to a DistributedSystem");
    err.println();

    ExitCode.FATAL.doSystemExit();
  }
This program is used to measure the amount of time it takes to connect and re-connect to a
{@link DistributedSystem}.
geode-core/src/distributedTest/java/org/apache/geode/distributed/DistributedSystemConnectPerf.java