Class BenchmarkList
java.lang.Object
org.openjdk.jmh.runner.AbstractResourceReader
org.openjdk.jmh.runner.BenchmarkList
Helper class for listing micro benchmarks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringLocation of the pre-compiled list of micro benchmarks -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBenchmarkList(String file, String resource, String strings) -
Method Summary
Modifier and TypeMethodDescriptionstatic BenchmarkListGets all the micro benchmarks that matches the given regexp, sorted.static BenchmarkListstatic BenchmarkListfromResource(String resource) static BenchmarkListfromString(String strings) getAll(OutputFormat out, List<String> excludes) Gets all micro benchmarks from the list, sorted.static List<BenchmarkListEntry> readBenchmarkList(InputStream stream) static voidwriteBenchmarkList(OutputStream stream, Collection<BenchmarkListEntry> entries) Methods inherited from class AbstractResourceReader
getReaders
-
Field Details
-
BENCHMARK_LIST
Location of the pre-compiled list of micro benchmarks- See Also:
-
-
Constructor Details
-
BenchmarkList
-
-
Method Details
-
defaultList
-
fromFile
-
fromResource
-
fromString
-
readBenchmarkList
- Throws:
IOException
-
writeBenchmarkList
-
getAll
Gets all micro benchmarks from the list, sorted.- Parameters:
out- Output the messages hereexcludes- List of regexps to match excludes against- Returns:
- A list of all benchmarks, excluding matched
-
find
public SortedSet<BenchmarkListEntry> find(OutputFormat out, List<String> includes, List<String> excludes) Gets all the micro benchmarks that matches the given regexp, sorted.- Parameters:
out- Output the messages hereincludes- List of regexps to match againstexcludes- List of regexps to match excludes against- Returns:
- Names of all micro benchmarks in the list that matches includes and NOT matching excludes
-