code: @Benchmark
  	@BenchmarkMode(Mode.AverageTime)
  	public void byteArrayRandomAccessFile(final Configuration configuration) throws IOException {
  		byte[] buffer = new byte[BUFFER_CAPACITY];
  		int position = 0;
  
  		try (RandomAccessFile file = new RandomAccessFile(configuration.file, "rw")) {
  			for (long i = 0; i < LINES; ++i) {
  				if (BUFFER_CAPACITY - position < DATA.length) {
  					file.write(buffer, 0, position);
  					position = 0;
  				}
  
  				if (BUFFER_CAPACITY < DATA.length) {
  					file.write(DATA);
  				} else {
  					System.arraycopy(DATA, 0, buffer, position, DATA.length);
  					position += DATA.length;
  				}
  
  			}
  
  			if (position > 0) {
  				file.write(buffer, 0, position);
  			}
  		}
  	}
docs: Benchmarks writing via {@link RandomAccessFile} with custom buffering via a byte array.
  
  @param configuration
  Configuration with target file
  @throws IOException
  Failed to write to target file