[vectorIntrinsics] RFR: 8263149: Adding some algorithms optimized by Vector API into JMH benc…

Sandhya Viswanathan sviswanathan at openjdk.java.net
Tue Mar 9 01:09:12 UTC 2021


On Mon, 8 Mar 2021 03:31:38 GMT, Wang Zhuo <wzhuo at openjdk.org> wrote:

> Here are some code samples for panama-vector vectorIntrinsics JMH benchmarks. 
> These code were developed during our work on optimizing Alibaba applications with Vector API.
> VectorDistance contains Cosine distance and Euclidean distance, scalar code from 
> https://github.com/opendistro-for-elasticsearch/k-NN/blob/aa5d1d40b136e2b3d33a14e80a2a374b2be015f9/src/main/java/com/amazon/opendistroforelasticsearch/knn/plugin/script/KNNScoringUtil.java#L61
> In many scenarios, ElasticSearch engineers reported more than 4X E2E speedup using Vector API.
> 
> BooleanArrayCheck and ValueRangeCheckAndCastL2I were from OLAP applications.
> 
> Co-authored-by: Joshua Zhu <jzhu at openjdk.org>

Marked as reviewed by sviswanathan (Committer).

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

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


More information about the panama-dev mailing list