code: @Override
    public int run(String[] args) throws Exception {
      parseArgs(args);
      // Create results file
      FileWriter results = new FileWriter(resultsFile, true);
      // Run all benchmarks
      int failed = 0;
      for (Method method : NNLatencyBenchmark.class.getMethods()) {
        if (method.isAnnotationPresent(Benchmark.class)) {
          results.write(method.getName() + " : ");
          try {
            setUp();
            try {
              method.invoke(this, results);
            } finally {
              tearDown();
            }
          } catch (Throwable e) {
            failed++;
            LOG.error(method.getName() + " failed with: ", e);
          }
          results.write("\n");
        }
      }
      results.close();
      return -failed;
    }
docs: //////////////////////////////////////