Package org.openjdk.jmh.runner
Class BenchmarkList
- java.lang.Object
-
- org.openjdk.jmh.runner.AbstractResourceReader
-
- org.openjdk.jmh.runner.BenchmarkList
-
public class BenchmarkList extends AbstractResourceReader
Helper class for listing micro benchmarks.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BENCHMARK_LIST
Location of the pre-compiled list of micro benchmarks
-
Constructor Summary
Constructors Modifier Constructor Description private
BenchmarkList(java.lang.String file, java.lang.String resource, java.lang.String strings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BenchmarkList
defaultList()
java.util.SortedSet<BenchmarkListEntry>
find(OutputFormat out, java.util.List<java.lang.String> includes, java.util.List<java.lang.String> excludes)
Gets all the micro benchmarks that matches the given regexp, sorted.static BenchmarkList
fromFile(java.lang.String file)
static BenchmarkList
fromResource(java.lang.String resource)
static BenchmarkList
fromString(java.lang.String strings)
java.util.Set<BenchmarkListEntry>
getAll(OutputFormat out, java.util.List<java.lang.String> excludes)
Gets all micro benchmarks from the list, sorted.static java.util.List<BenchmarkListEntry>
readBenchmarkList(java.io.InputStream stream)
static void
writeBenchmarkList(java.io.OutputStream stream, java.util.Collection<BenchmarkListEntry> entries)
-
Methods inherited from class org.openjdk.jmh.runner.AbstractResourceReader
getReaders
-
-
-
-
Field Detail
-
BENCHMARK_LIST
public static final java.lang.String BENCHMARK_LIST
Location of the pre-compiled list of micro benchmarks- See Also:
- Constant Field Values
-
-
Method Detail
-
defaultList
public static BenchmarkList defaultList()
-
fromFile
public static BenchmarkList fromFile(java.lang.String file)
-
fromResource
public static BenchmarkList fromResource(java.lang.String resource)
-
fromString
public static BenchmarkList fromString(java.lang.String strings)
-
readBenchmarkList
public static java.util.List<BenchmarkListEntry> readBenchmarkList(java.io.InputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
writeBenchmarkList
public static void writeBenchmarkList(java.io.OutputStream stream, java.util.Collection<BenchmarkListEntry> entries)
-
getAll
public java.util.Set<BenchmarkListEntry> getAll(OutputFormat out, java.util.List<java.lang.String> excludes)
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 java.util.SortedSet<BenchmarkListEntry> find(OutputFormat out, java.util.List<java.lang.String> includes, java.util.List<java.lang.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
-
-