Skip to content
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

8244490: [vector] Move Vector API micro benchmarks under test/micro #77

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions test/jdk/jdk/incubator/vector/BENCHMARKS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
% Benchmarking Vector API

Benchmarks are generted from scripts in this directory to `test/micro/org/openjdk/bench/jdk/incubator/vector/operation`

## Test selection
Run benchmarks from the top level git dir using:

``` shell
make test TEST="micro:<benchmark-name>" CONF=linux-x86_64-server-release

### One Test
make test TEST="micro:Int64Vector" CONF=linux-x86_64-server-release

### Run all tests -- WARNING requires ~4-5 hours
make test TEST="micro:org.openjdk.bench.jdk.incubator.vector" CONF=linux-x86_64-server-release
```

### JMH Configuration
See `https://github.com/openjdk/jdk/blob/master/doc/testing.md` or `doc/testing.md` dir in this git repo for more detailed steps on running the benchmarks for Vector API at `test/micro/org/openjdk/bench/jdk/incubator/vector/operation`.

From doc/testing.md:
To be able to run microbenchmarks, `configure` needs to know where to find the
JMH dependency. Use `--with-jmh=<path to JMH jars>` to point to a directory
containing the core JMH and transitive dependencies. The recommended
dependencies can be retrieved by running `sh make/devkit/createJMHBundle.sh`,
after which `--with-jmh=build/jmh/jars` should work.
15 changes: 0 additions & 15 deletions test/jdk/jdk/incubator/vector/benchmark/README

This file was deleted.

174 changes: 0 additions & 174 deletions test/jdk/jdk/incubator/vector/benchmark/pom.xml

This file was deleted.

8 changes: 4 additions & 4 deletions test/jdk/jdk/incubator/vector/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# questions.
#

VECTORTESTS_HOME="$(pwd)"
JDK_SRC_HOME="./../../../../../"
JDK_SRC_HOME="$(git rev-parse --show-toplevel)"
VECTORTESTS_HOME="$JDK_SRC_HOME/test/jdk/jdk/incubator/vector/"
JAVA="${JAVA_HOME}/bin/java"
JAVAC="${JAVA_HOME}/bin/javac"
BUILDLOG_FILE="./build.log"
Expand All @@ -38,11 +38,11 @@ TEMPLATE_FILE="unit_tests.template"
TESTNG_JAR="${TESTNG_PLUGIN}/plugins/org.testng.source_6.13.1.r201712040515.jar"
TESTNG_RUN_JAR="${TESTNG_PLUGIN}/plugins/org.testng_6.13.1.r201712040515.jar"
JCOMMANDER_JAR="${TESTNG_PLUGIN}/plugins/com.beust.jcommander_1.72.0.jar"
TEST_ITER_COUNT=100

PERF_TEMPLATE_FILE="perf_tests.template"
PERF_SCALAR_TEMPLATE_FILE="perf_scalar_tests.template"
PERF_DEST="benchmark/src/main/java/benchmark/jdk/incubator/vector/"
PERF_DEST="$JDK_SRC_HOME/test/micro/org/openjdk/bench/jdk/incubator/vector/operation"


function Log () {
if [ $1 == true ]; then
Expand Down
1 change: 0 additions & 1 deletion test/jdk/jdk/incubator/vector/gen-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,3 @@ do
done

rm -fr build

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -21,7 +21,7 @@
* questions.
*/

package benchmark.jdk.incubator.vector;
package org.openjdk.bench.jdk.incubator.vector.operation;

#warn This file is preprocessed before being compiled

Expand Down
4 changes: 2 additions & 2 deletions test/jdk/jdk/incubator/vector/templates/Perf-header.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -21,7 +21,7 @@
* questions.
*/

package benchmark.jdk.incubator.vector;
package org.openjdk.bench.jdk.incubator.vector.operation;

#warn This file is preprocessed before being compiled

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* questions.
*/

package benchmark.bigdata;
package org.openjdk.bench.jdk.incubator.vector.bigdata;

import jdk.incubator.vector.ByteVector;
import jdk.incubator.vector.Vector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* questions.
*/

package benchmark.bigdata;
package org.openjdk.bench.jdk.incubator.vector.bigdata;

import jdk.incubator.vector.IntVector;
import jdk.incubator.vector.LongVector;
Expand Down
Loading