[vectorIntrinsics+compress] RFR: 8274975: Add micro benchmark: ALIBABA selective store use case

Paul Sandoz psandoz at openjdk.java.net
Mon Oct 11 15:43:24 UTC 2021


On Fri, 8 Oct 2021 12:22:33 GMT, Joshua Zhu <jzhu at openjdk.org> wrote:

> I separate my implementation of "compress" API into several patches for easy review.
> This micro benchmark is extracted from the real use case inside in-memory databases: selectiveStore.
> Test scenario: UseAVX=3; thread number = 8; conflict data percentage: 20% (that means 20% of mask bits are true)

test/micro/org/openjdk/bench/jdk/incubator/vector/bigdata/SelectiveStore.java line 43:

> 41: @Warmup(iterations = 5, time = 1)
> 42: @Measurement(iterations = 10, time = 1)
> 43: @Fork(value = 1, jvmArgsPrepend = {"--add-modules=jdk.incubator.vector", "--add-exports", "java.base/jdk.internal.vm.vector=ALL-UNNAMED", "-ea"})

The "--add-exports" should not be necessary?

test/micro/org/openjdk/bench/jdk/incubator/vector/bigdata/SelectiveStore.java line 91:

> 89: 
> 90:   @Benchmark
> 91:   @Threads(8)

Does it need to be a multi-threaded benchmark? If we can still measure the benefits with a single thread that may be more preferable, since it is simpler.

-------------

PR: https://git.openjdk.java.net/panama-vector/pull/149


More information about the panama-dev mailing list