com.clickhouse.benchmark.Constants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickhouse-benchmark Show documentation
Show all versions of clickhouse-benchmark Show documentation
Benchmarks for ClickHouse clients
package com.clickhouse.benchmark;
/**
* Constant interface.
*/
public class Constants {
public static final String DEFAULT_HOST = "127.0.0.1";
public static final String DEFAULT_DB = "system";
public static final String DEFAULT_USER = "default";
public static final String DEFAULT_PASSWD = "";
public static final int GRPC_PORT = 9100;
public static final int HTTP_PORT = 8123;
public static final int MYSQL_PORT = 9004;
public static final int NATIVE_PORT = 9000;
public static final int POSTGRESQL_PORT = 9005;
public static final String NORMAL_STATEMENT = "normal";
public static final String PREPARED_STATEMENT = "prepared";
public static final String REUSE_CONNECTION = "reuse";
public static final String NEW_CONNECTION = "new";
// sample size used in 10k query/insert
public static final int SAMPLE_SIZE = Integer.parseInt(System.getProperty("sampleSize", "10000"));
// floating range(to reduce server-side cache hits) used in 10k query/insert
public static final int FLOATING_RANGE = Integer.parseInt(System.getProperty("floatingRange", "100"));
public static final String SAMPLES = SAMPLE_SIZE + " + ~" + FLOATING_RANGE;
private Constants() {
}
}