Adding new encoder with only readLong instead of readInt to easily compare performance

This commit is contained in:
expani 2024-10-24 10:23:45 +05:30
parent 4d10d9d5eb
commit da2325cdbd
1 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ public class DocIdEncodingBenchmark {
"Bit21With2StepsEncoder", "Bit21With2StepsEncoder",
"Bit24Encoder", "Bit24Encoder",
"Bit21With2StepsOnlyRWLongEncoder", "Bit21With2StepsOnlyRWLongEncoder",
"Bit21With3StepsEncoderOnlyRWLong" "Bit21With3StepsEncoderOnlyRWLongEncoder"
}) })
String encoderName; String encoderName;
@ -428,7 +428,7 @@ public class DocIdEncodingBenchmark {
} }
} }
class Bit21With3StepsEncoderOnlyRWLong implements DocIdEncoder { class Bit21With3StepsEncoderOnlyRWLongEncoder implements DocIdEncoder {
@Override @Override
public void encode(IndexOutput out, int start, int count, int[] docIds) throws IOException { public void encode(IndexOutput out, int start, int count, int[] docIds) throws IOException {
@ -549,7 +549,7 @@ public class DocIdEncodingBenchmark {
21, 21,
DocIdEncodingBenchmark.DocIdEncoder.Bit21With2StepsOnlyRWLongEncoder.class, DocIdEncodingBenchmark.DocIdEncoder.Bit21With2StepsOnlyRWLongEncoder.class,
21, 21,
DocIdEncodingBenchmark.DocIdEncoder.Bit21With3StepsEncoderOnlyRWLong.class, DocIdEncodingBenchmark.DocIdEncoder.Bit21With3StepsEncoderOnlyRWLongEncoder.class,
21, 21,
DocIdEncodingBenchmark.DocIdEncoder.Bit21HybridEncoder.class, DocIdEncodingBenchmark.DocIdEncoder.Bit21HybridEncoder.class,
21, 21,