Skip to content

Commit

Permalink
Fix dependencies to run TcpServerBM from command line (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
akrambek committed Jun 20, 2023
1 parent 0d36a4b commit ea61811
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,14 @@
</manifestEntries>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>**/module-info.class</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
Expand Down
6 changes: 6 additions & 0 deletions runtime/binding-tcp/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ specific language governing permissions and limitations
under the License.

This project includes:
agrona under The Apache License, Version 2.0
ICU4J under Unicode/ICU License
Jakarta JSON Processing API under Eclipse Public License 2.0 or GNU General Public License, version 2 with the GNU Classpath Exception
JSON-B API under Eclipse Public License 2.0 or GNU General Public License, version 2 with the GNU Classpath Exception
org.leadpony.justify under The Apache Software License, Version 2.0
zilla::runtime::engine under The Apache Software License, Version 2.0


This project also includes code under copyright of the following entities:
Expand Down
14 changes: 14 additions & 0 deletions runtime/binding-tcp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# binding-tcp

## Run performance benchmark

```
./mvnw clean install
```

```
cd /target
java -jar ./binding-tcp-develop-SNAPSHOT-shaded-tests.jar TcpServerBM
```

<b>Note:</b> with Java 16 or higher add ` --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED` just after `java` to avoid getting errors related to reflective access across Java module boundaries when running the benchmark.
9 changes: 8 additions & 1 deletion runtime/binding-tcp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<groupId>${project.groupId}</groupId>
<artifactId>engine</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down Expand Up @@ -250,6 +249,14 @@
<includes>
<include>org.agrona:agrona</include>
<include>io.aklivity.zilla:engine</include>
<include>jakarta.json:jakarta.json-api</include>
<include>jakarta.json.bind:jakarta.json.bind-api</include>
<include>org.eclipse:yasson</include>
<include>org.leadpony.justify</include>
<include>org.leadpony.joy:joy-yaml</include>
<include>org.leadpony.joy:joy-core</include>
<include>org.snakeyaml:snakeyaml-engine</include>
<include>com.ibm.icu:icu4j</include>
<include>org.openjdk.jmh:jmh-core</include>
<include>net.sf.jopt-simple:jopt-simple</include>
<include>org.apache.commons:commons-math3</include>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public class TcpServerBM
.build();
}


@Setup(Level.Trial)
public void reinit() throws Exception
{
Expand Down

0 comments on commit ea61811

Please sign in to comment.