[vectorIntrinsics] RFR: 8263149: Adding some algorithms optimized by Vector API into JMH benc…
Wang Zhuo
wzhuo at openjdk.java.net
Mon Mar 8 03:35:32 UTC 2021
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>
-------------
Commit messages:
- 8263149: Adding some algorithms optimized by Vector API into JMH benchmarks
Changes: https://git.openjdk.java.net/panama-vector/pull/45/files
Webrev: https://webrevs.openjdk.java.net/?repo=panama-vector&pr=45&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8263149
Stats: 736 lines in 3 files changed: 736 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/panama-vector/pull/45.diff
Fetch: git fetch https://git.openjdk.java.net/panama-vector pull/45/head:pull/45
PR: https://git.openjdk.java.net/panama-vector/pull/45
More information about the panama-dev
mailing list