New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8273681: Add Vector API vs Arrays.mismatch intrinsic benchmark #5459
Conversation
|
@amCap1712 The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
/issue JDK-8273681 |
@PaulSandoz Only the author (@amCap1712) is allowed to issue the |
/issue JDK-8273681 |
@amCap1712 The primary solved issue for a PR is set through the PR title. Since the current title does not contain an issue reference, it will now be updated. |
Webrevs
|
The simplest approach is to copy the license from here https://github.com/openjdk/jdk/blob/master/test/micro/org/openjdk/bench/jdk/incubator/vector/RotateBenchmark.java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark looks good (assuming license is added).
static final VectorSpecies<Float> FLOAT_SPECIES_PREFERRED = FloatVector.SPECIES_PREFERRED; | ||
static final VectorSpecies<Long> LONG_SPECIES_PREFERRED = LongVector.SPECIES_PREFERRED; | ||
|
||
static final Random random = new Random(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use the recently added RandomGenerator
instead in the spirit of encouraging the use of new and preferred APIs:
- remove the static field
- replace
FLOAT_SPECIES
withDOUBLE_SPECIES
- in
setup
create an instanceRandomGenerator rg = RandomGenerator.getDefault()
- remove
createRandomFloats
and userg.doubles(...).toArray()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a minor issue (that does not induce incorrect behavior), no need for re-approval to fix that.
test/micro/org/openjdk/bench/jdk/incubator/vector/ArrayMismatchBenchmark.java
Outdated
Show resolved
Hide resolved
@amCap1712 This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 114 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@PaulSandoz) but any other Committer may sponsor as well.
|
Thanks for the review, @PaulSandoz |
@amCap1712 |
/sponsor |
Going to push as commit 2f8c221.
Your commit was automatically rebased without conflicts. |
@PaulSandoz @amCap1712 Pushed as commit 2f8c221. |
Hi all!
Please review this PR to add a benchmark comparing the performance of Arrays.mismatch intrinsic in the JDK with that of the Vector API. Kindly refer to this thread on panama-dev regarding some initial discussion about this benchmark. I have attached the results of the full benchmark run along with the assembly output of a shorter run I had done while analysing the results. The benchmarks were run against the latest build of panama-vector available from builds.shipilev.net.
Also, I have not added the copyright header to this file yet as I am an individual contributor (OCA signed) and do not know what to put there.
Regards,
Kartik
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5459/head:pull/5459
$ git checkout pull/5459
Update a local copy of the PR:
$ git checkout pull/5459
$ git pull https://git.openjdk.java.net/jdk pull/5459/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5459
View PR using the GUI difftool:
$ git pr show -t 5459
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5459.diff