Skip to content
Merged
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
10 changes: 6 additions & 4 deletions docs/benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,28 @@
Benchmarks use the Java Microbenchmark Harness ([JMH](https://openjdk.org/projects/code-tools/jmh/)).
After [building](build.md) the source, the following are examples of using the benchmarks provided.

In the following examples, replace `javakdb-benchmark-2.1.1.jar` with the current version found in the directory.

List all options

```bash
java -jar javakdb-benchmark/target/benchmarks.jar -h
java -jar javakdb-benchmark/target/javakdb-benchmark-2.1.1.jar -h
```

Run all benchmarks provided

```bash
java -jar javakdb-benchmark/target/benchmarks.jar
java -jar javakdb-benchmark/target/javakdb-benchmark-2.1.1.jar
```

List all benchmarks provided

```bash
java -jar javakdb-benchmark/target/benchmarks.jar -l
java -jar javakdb-benchmark/target/javakdb-benchmark-2.1.1.jar -l
```

Example of running one benchmark test called `SerializationBenchmark.serializeInts`

```bash
java -jar javakdb-benchmark/target/benchmarks.jar SerializationBenchmark.serializeInts
java -jar javakdb-benchmark/target/javakdb-benchmark-2.1.1.jar SerializationBenchmark.serializeInts
```
25 changes: 24 additions & 1 deletion javakdb-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,30 @@

<name>JavaKDB Benchmark</name>
<description>JMH benchmarks for the Java kdb+ IPC interface</description>
<url>https://github.com/KxSystems/javakdb</url>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Fusion Developer</name>
<email>fusion@kx.com</email>
<organization>KX Systems</organization>
<organizationUrl>http://www.kx.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/KxSystems/javakdb.git</connection>
<developerConnection>scm:git:ssh://github.com:KxSystems/javakdb.git</developerConnection>
<url>https://github.com/KxSystems/javakdb/tree/master</url>
</scm>

<properties>
<jmh.version>1.37</jmh.version>
Expand Down Expand Up @@ -121,7 +145,6 @@
</goals>

<configuration>
<finalName>benchmarks</finalName>
<createDependencyReducedPom>false</createDependencyReducedPom>

<filters>
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
<jacoco.version>0.8.11</jacoco.version>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.coverage.exclusions>**/kx/examples/*.java</sonar.coverage.exclusions>
<sonar.coverage.exclusions>
**/kx/examples/*.java,
**/kx/benchmark/**/*.java
Expand Down