-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 except wire (#3756)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
- Loading branch information
1 parent
ab8a251
commit 845312a
Showing
25 changed files
with
179 additions
and
69 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 Benchmarks | ||
=================== | ||
# zipkin-benchmarks | ||
|
||
This module includes [JMH](http://openjdk.java.net/projects/code-tools/jmh/) benchmarks for Zipkin. | ||
This module includes [JMH](http://openjdk.java.net/projects/code-tools/jmh/) | ||
benchmarks for zipkin. 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: | ||
### Running the benchmark | ||
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.
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
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
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
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
# See https://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html for the full list of config options | ||
|
||
org.slf4j.simpleLogger.logFile=System.out | ||
org.slf4j.simpleLogger.defaultLogLevel=warn | ||
org.slf4j.simpleLogger.showDateTime=true | ||
org.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss:SSS | ||
|
||
# uncomment to include kafka consumer configuration in test logs | ||
#logger.org.apache.kafka.clients.level=info |
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
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