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
ConstructorsConstructorDescriptionMapBenchmarkImplementation(BenchmarkGroup group, Class<? extends AsyncStorage> plugin, String implementation) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(CoreContext core, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)Prepares an implementation for testing.voidCalled before each benchmark is executed.voidCalled after the warmup phase has completed.voidCalled 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:BenchmarkImplementationPrepares an implementation for testing.- Specified by:
initializein interfaceBenchmarkImplementation- Overrides:
initializein classBenchmarkImplementationBuilder- Parameters:
core- the context to use for the benchmarkhandler- called when the setup is complete.
-
next
Description copied from interface:BenchmarkImplementationCalled before each benchmark is executed.- Specified by:
nextin interfaceBenchmarkImplementation- Overrides:
nextin classBenchmarkImplementationBuilder- Parameters:
promise- callback
-
reset
Description copied from interface:BenchmarkImplementationCalled after the warmup phase has completed.- Specified by:
resetin interfaceBenchmarkImplementation- Overrides:
resetin classBenchmarkImplementationBuilder- Parameters:
future- callback
-
shutdown
Description copied from interface:BenchmarkImplementationCalled after the benchmarking has completed.- Specified by:
shutdownin interfaceBenchmarkImplementation- Overrides:
shutdownin classBenchmarkImplementationBuilder- Parameters:
promise- callback
-