On Wed, 13 Apr 2022 22:53:11 GMT, liach <[email protected]> wrote:
> I suggest we actually write into the byte array to better simulate overheads > (maybe by generating a number with `ThreadLocalRandom`). This sounds reasonable, as each InputStream implementation always need to copy it. > To simulate overhead on each read call, you can perform some extra activity > consumed by the blackhole (possibly pass jmh blackhole through input stream > constructor) This one not, as each InputStream implementation have different read cost, and there is no way to simulate a good value. ------------- PR: https://git.openjdk.java.net/jdk/pull/5872
