Package org.openjdk.jmh.runner
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 String
Location of the pre-compiled list of micro benchmarks -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
BenchmarkList
(String file, String resource, String strings) -
Method Summary
Modifier and TypeMethodDescriptionstatic BenchmarkList
Gets all the micro benchmarks that matches the given regexp, sorted.static BenchmarkList
static BenchmarkList
fromResource
(String resource) static BenchmarkList
fromString
(String strings) getAll
(OutputFormat out, List<String> excludes) Gets all micro benchmarks from the list, sorted.static List
<BenchmarkListEntry> readBenchmarkList
(InputStream stream) static void
writeBenchmarkList
(OutputStream stream, Collection<BenchmarkListEntry> entries) Methods inherited from class org.openjdk.jmh.runner.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
-