Enum Class BenchmarkType
- All Implemented Interfaces:
Serializable,Comparable<BenchmarkType>,Constable
Enumeration of benchmark types supported by the CUI benchmarking infrastructure.
Each type has different characteristics and requirements for badge generation, metrics collection, and reporting.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIntegration benchmarks that test complete workflows or external services.Micro benchmarks that test individual components or methods in isolation. -
Method Summary
Modifier and TypeMethodDescriptionGets the badge file name for performance badges.Gets the badge file name for trend badges.static BenchmarkTypeReturns the enum constant of this class with the specified name.static BenchmarkType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MICRO
Micro benchmarks that test individual components or methods in isolation.Characteristics:
- Fast execution (seconds to minutes)
- High precision measurements
- Minimal external dependencies
- Focus on throughput and latency
-
INTEGRATION
Integration benchmarks that test complete workflows or external services.Characteristics:
- Longer execution time (minutes to hours)
- Network and I/O overhead
- External service dependencies
- Focus on end-to-end performance
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getPerformanceBadgeFileName
Gets the badge file name for performance badges.- Returns:
- the performance badge file name
-
getTrendBadgeFileName
Gets the badge file name for trend badges.- Returns:
- the trend badge file name
-