Class BenchmarkList

    • 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
    • Constructor Detail

      • BenchmarkList

        private BenchmarkList​(java.lang.String file,
                              java.lang.String resource,
                              java.lang.String strings)
    • Method Detail

      • 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 here
        excludes - 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 here
        includes - List of regexps to match against
        excludes - List of regexps to match excludes against
        Returns:
        Names of all micro benchmarks in the list that matches includes and NOT matching excludes