[vectorIntrinsics+compress] RFR: 8274975: Add micro benchmark: ALIBABA selective store use case
Jatin Bhateja
jbhateja at openjdk.java.net
Mon Oct 11 06:11:25 UTC 2021
On Mon, 11 Oct 2021 02:42:01 GMT, Joshua Zhu <jzhu at openjdk.org> wrote:
>> test/micro/org/openjdk/bench/jdk/incubator/vector/bigdata/SelectiveStore.java line 109:
>>
>>> 107: IntVector bv = IntVector.fromArray(INT_128_SPECIES, tld.input2, i);
>>> 108: IntVector cv = IntVector.fromArray(INT_128_SPECIES, tld.index, i);
>>> 109: VectorMask<Integer> mask = av.compare(VectorOperators.NE, bv);
>>
>> Can we move vector compare out of benchmarking loop to reduce the noise.
>
> Thanks Jatin for your review.
> This test I added is placed together with other benchmarks extracted from user cases.
> The mask computation inside the loop is the essential logic in real scenario.
> We can add micro benchmarks in test/micro/org/openjdk/bench/jdk/incubator/vector/operation and then evaluate performance for compression / expanding in single API level.
Ok got it, thanks!
BTW can you also post the AVX2 numbers just to see how does it compare against scalar version when direct compress/expand instructions are not supported by target.
-------------
PR: https://git.openjdk.java.net/panama-vector/pull/149
More information about the panama-dev
mailing list