public class EchoBenchmark extends BenchmarkDriverAdapter
cfg| Constructor and Description |
|---|
EchoBenchmark() |
| Modifier and Type | Method and Description |
|---|---|
String |
description()
Gets benchmark description.
|
void |
setUp(BenchmarkConfiguration cfg)
This method is invoked right before the
BenchmarkDriver.test() method. |
void |
tearDown()
This method is invoked right after the
BenchmarkDriver.test() method. |
void |
test()
Operation or group of operations that are to be benchmarked.
|
String |
usage()
Gets benchmark usage.
|
probespublic void setUp(BenchmarkConfiguration cfg) throws Exception
BenchmarkDriver.test() method.
All benchmark preparation and all resource initialization should be done here.setUp in interface BenchmarkDriversetUp in class BenchmarkDriverAdaptercfg - Benchmark configuration.Exception - If failed.public void tearDown()
throws Exception
BenchmarkDriver.test() method.
All necessary resources should be released here.tearDown in interface BenchmarkDrivertearDown in class BenchmarkDriverAdapterException - If failed.public void test()
throws Exception
Exception - If failed.public String description()
description in interface BenchmarkDriverdescription in class BenchmarkDriverAdapterpublic String usage()
usage in interface BenchmarkDriverusage in class BenchmarkDriverAdapterCopyright © 2014. All rights reserved.