use of org.opensearch.client.benchmark.rest.RestClientBenchmark in project OpenSearch by opensearch-project.
the class BenchmarkMain method main.
@SuppressForbidden(reason = "system out is ok for a command line tool")
public static void main(String[] args) throws Exception {
String type = args[0];
AbstractBenchmark<?> benchmark = null;
if ("rest".equals(type)) {
benchmark = new RestClientBenchmark();
} else {
System.err.println("Unknown client type [" + type + "]");
System.exit(1);
}
benchmark.run(Arrays.copyOfRange(args, 1, args.length));
}
Aggregations