-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
benchmarks: moves dependency scope to test (#262)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
- Loading branch information
1 parent
939b6e4
commit 0c62f8b
Showing
17 changed files
with
107 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
Zipkin Reporter Benchmarks | ||
=================== | ||
# zipkin-reporter-benchmarks | ||
|
||
This module includes [JMH](http://openjdk.java.net/projects/code-tools/jmh/) benchmarks for Zipkin Reporter. | ||
This module includes [JMH](http://openjdk.java.net/projects/code-tools/jmh/) | ||
benchmarks for zipkin-reporter. You can use these to measure overhead. | ||
|
||
### Running the benchmark | ||
From the parent directory, run `./mvnw install` to build the benchmarks, and the following to run them: | ||
From the project directory, run this to build the benchmarks: | ||
|
||
```bash | ||
$ ./mvnw install -pl benchmarks -am -Dmaven.test.skip.exec=true | ||
``` | ||
|
||
and the following to run them: | ||
|
||
```bash | ||
# Run with a single worker thread | ||
$ java -jar benchmarks/target/benchmarks.jar | ||
# Add contention by running with 4 threads | ||
$ java -jar benchmarks/target/benchmarks.jar -t4 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- | ||
Copyright The OpenZipkin Authors | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 https://maven.apache.org/xsd/assembly-2.2.0.xsd"> | ||
<!-- This is an alternative to maven-shade-plugin, which makes an executable | ||
jar from the test source tree. This was made due to lack of success | ||
getting 'shadeTestJar' and similar configuration working. --> | ||
<id>test-jar</id> | ||
<formats> | ||
<format>jar</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>/</outputDirectory> | ||
<useProjectArtifact>true</useProjectArtifact> | ||
<unpack>true</unpack> | ||
<scope>test</scope> | ||
</dependencySet> | ||
</dependencySets> | ||
<fileSets> | ||
<fileSet> | ||
<directory>${project.build.directory}/test-classes</directory> | ||
<outputDirectory>/</outputDirectory> | ||
<includes> | ||
<include>**/*</include> | ||
</includes> | ||
<useDefaultExcludes>true</useDefaultExcludes> | ||
</fileSet> | ||
</fileSets> | ||
</assembly> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters