Package io.hyperfoil.api.config
Class Benchmark
java.lang.Object
io.hyperfoil.api.config.Benchmark
- All Implemented Interfaces:
Serializable
A benchmark is a collection of simulation, user,
SLA and scaling strategy (Ramp up, Steady State, Ramp Down, steady state variance)
that are to be run against the target environment.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBenchmark(String name, String version, BenchmarkSource source, Map<String, String> params, Map<String, byte[]> files, Agent[] agents, int defaultThreads, Map<Class<? extends PluginConfig>, PluginConfig> plugins, Collection<Phase> phases, Map<String, Object> tags, long statisticsCollectionPeriod, String triggerUrl, List<RunHook> preHooks, List<RunHook> postHooks, Benchmark.FailurePolicy failurePolicy) -
Method Summary
Modifier and TypeMethodDescriptionAgent[]agents()intstatic Benchmarkfiles()static Benchmarkname()params()phases()Phase[]<T extends PluginConfig>
Tplugins()preHooks()doubleslice(double totalValue, int agentId) intslice(int totalValue, int agentId) source()As the transformation from YAML is one-way (due to forks and iterations) here we store the original source (be it YAML or JSON)longsteps()tags()intthreads(int agentId) toString()intversion()
-
Constructor Details
-
Benchmark
public Benchmark(String name, String version, BenchmarkSource source, Map<String, String> params, Map<String, byte[]> files, Agent[] agents, int defaultThreads, Map<Class<? extends PluginConfig>, PluginConfig> plugins, Collection<Phase> phases, Map<String, Object> tags, long statisticsCollectionPeriod, String triggerUrl, List<RunHook> preHooks, List<RunHook> postHooks, Benchmark.FailurePolicy failurePolicy)
-
-
Method Details
-
forTesting
-
empty
-
name
-
version
-
agents
-
source
As the transformation from YAML is one-way (due to forks and iterations) here we store the original source (be it YAML or JSON)- Returns:
- Source YAML for the benchmark.
-
params
-
files
-
defaultThreads
public int defaultThreads() -
phases
-
tags
-
statisticsCollectionPeriod
public long statisticsCollectionPeriod() -
triggerUrl
-
preHooks
-
postHooks
-
toString
-
steps
-
phasesById
-
slice
public int slice(int totalValue, int agentId) -
slice
public double slice(double totalValue, int agentId) -
threads
public int threads(int agentId) -
totalThreads
public int totalThreads() -
plugin
-
plugins
-
failurePolicy
-