Class MapBenchmarkImplementation
java.lang.Object
com.codingchili.core.benchmarking.BenchmarkImplementationBuilder
com.codingchili.core.benchmarking.MapBenchmarkImplementation
- All Implemented Interfaces:
BenchmarkImplementation
Implementation of a map for use with benchmarking.
-
Field Summary
Fields inherited from class com.codingchili.core.benchmarking.BenchmarkImplementationBuilder
group
-
Constructor Summary
ConstructorDescriptionMapBenchmarkImplementation(BenchmarkGroup group, Class<? extends AsyncStorage> plugin, String implementation)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize(CoreContext core, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Prepares an implementation for testing.void
Called before each benchmark is executed.void
Called after the warmup phase has completed.void
Called after the benchmarking has completed.Methods inherited from class com.codingchili.core.benchmarking.BenchmarkImplementationBuilder
add, getBenchmarks, getName, getProperties, setBenchmarks, setGroup, setName, setProperty
-
Constructor Details
-
MapBenchmarkImplementation
public MapBenchmarkImplementation(BenchmarkGroup group, Class<? extends AsyncStorage> plugin, String implementation)
-
-
Method Details
-
initialize
public void initialize(CoreContext core, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)Description copied from interface:BenchmarkImplementation
Prepares an implementation for testing.- Specified by:
initialize
in interfaceBenchmarkImplementation
- Overrides:
initialize
in classBenchmarkImplementationBuilder
- Parameters:
core
- the context to use for the benchmarkhandler
- called when the setup is complete.
-
next
Description copied from interface:BenchmarkImplementation
Called before each benchmark is executed.- Specified by:
next
in interfaceBenchmarkImplementation
- Overrides:
next
in classBenchmarkImplementationBuilder
- Parameters:
promise
- callback
-
reset
Description copied from interface:BenchmarkImplementation
Called after the warmup phase has completed.- Specified by:
reset
in interfaceBenchmarkImplementation
- Overrides:
reset
in classBenchmarkImplementationBuilder
- Parameters:
future
- callback
-
shutdown
Description copied from interface:BenchmarkImplementation
Called after the benchmarking has completed.- Specified by:
shutdown
in interfaceBenchmarkImplementation
- Overrides:
shutdown
in classBenchmarkImplementationBuilder
- Parameters:
promise
- callback
-