RFR: 8272861: Add a micro benchmark for vector api
Ningsheng Jian
njian at openjdk.java.net
Tue Aug 24 03:40:28 UTC 2021
On Mon, 23 Aug 2021 23:18:28 GMT, Sandhya Viswanathan <sviswanathan at openjdk.org> wrote:
> This pull request adds a micro benchmark for Vector API.
> The Black Scholes algorithm is implemented with and without Vector API.
> We see about ~6x gain with Vector API for this micro benchmark using 256 bit vectors.
test/micro/org/openjdk/bench/jdk/incubator/vector/BlackScholes.java line 138:
> 136: }
> 137:
> 138: static final VectorSpecies<Float> fsp = FloatVector.SPECIES_256;
Can we use a more portable way instead of fixed size SPECIES_256?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5234
More information about the core-libs-dev
mailing list