public interface BenchmarkDriver
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Gets benchmark description.
|
Collection<BenchmarkProbe> |
probes()
Gets collection of custom probes that this benchmark provides.
|
void |
setUp(BenchmarkConfiguration cfg)
This method is invoked right before the
test() method. |
void |
tearDown()
This method is invoked right after the
test() method. |
void |
test()
Operation or group of operations that are to be benchmarked.
|
String |
usage()
Gets benchmark usage.
|
void setUp(BenchmarkConfiguration cfg) throws Exception
test() method.
All benchmark preparation and all resource initialization should be done here.cfg - Benchmark configuration.Exception - If failed.void test()
throws Exception
Exception - If failed.void tearDown()
throws Exception
test() method.
All necessary resources should be released here.Exception - If failed.Collection<BenchmarkProbe> probes()
null if set of default probes should be used.String description()
String usage()
Copyright © 2014. All rights reserved.