Package org.openjdk.jmh.runner
Class BenchmarkList
java.lang.Object
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 -
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.Helper method for creating a Reader for the list file.static List<BenchmarkListEntry>readBenchmarkList(InputStream stream) static voidwriteBenchmarkList(OutputStream stream, Collection<BenchmarkListEntry> entries)
-
Field Details
-
BENCHMARK_LIST
Location of the pre-compiled list of micro benchmarks- See Also:
-
-
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
-
getReaders
Helper method for creating a Reader for the list file.- Returns:
- a correct Reader instance
-