mirror of
https://github.com/apache/lucene.git
synced 2025-02-07 18:49:03 +00:00
Added input scale factor as a sys property for input to benchmark
This commit is contained in:
parent
ad7b749db2
commit
5479ac2e3a
@ -58,8 +58,18 @@ public class DocIdEncodingBenchmark {
|
||||
|
||||
private static final List<int[]> docIdSequences = new ArrayList<>();
|
||||
|
||||
private static final int INPUT_SCALE_FACTOR;
|
||||
|
||||
static {
|
||||
String inputFilePath = System.getProperty("docIdEncoding.input_file");
|
||||
String inputScaleFactor = System.getProperty("docIdEncoding.inputScaleFactor");
|
||||
|
||||
if (inputScaleFactor != null) {
|
||||
INPUT_SCALE_FACTOR = Integer.parseInt(inputScaleFactor);
|
||||
} else {
|
||||
INPUT_SCALE_FACTOR = 2_00_000;
|
||||
}
|
||||
|
||||
String inputFilePath = System.getProperty("docIdEncoding.inputFile");
|
||||
Scanner fileReader = null;
|
||||
try {
|
||||
if (inputFilePath != null) {
|
||||
@ -94,8 +104,6 @@ public class DocIdEncodingBenchmark {
|
||||
@Param({"encode", "decode"})
|
||||
String methodName;
|
||||
|
||||
private static final int INPUT_SCALE_FACTOR = 2_00_000;
|
||||
|
||||
private DocIdEncoder docIdEncoder;
|
||||
|
||||
private Path tmpDir;
|
||||
|
Loading…
x
Reference in New Issue
Block a user