Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
@Fork(value = 1)
public class RecyclerBytesStreamOutputBenchmark {

private final AtomicReference<BytesRef> bytesRef = new AtomicReference<>(new BytesRef(16384));
private final AtomicReference<BytesRef> bytesRef = new AtomicReference<>(new BytesRef(new byte[16384], 0, 16384));

private RecyclerBytesStreamOutput streamOutput;
private String shortString;
private String longString;
Expand Down Expand Up @@ -156,7 +157,7 @@ public V<BytesRef> obtain() {
localBytesRef = recycledBytesRef;
} else {
recycled = false;
localBytesRef = new BytesRef(16384);
localBytesRef = new BytesRef(new byte[16384], 0, 16384);
}
return new V<>() {
@Override
Expand Down
Loading