Public Member Functions | |
void | runBenchmark (String desc, Operation op, Object input, Object parameter) throws Exception |
void | runBenchmark (int count, String desc, Operation op, Object input, Object parameter) throws Exception |
void | testDigest () throws Exception |
void | testEncode () throws Exception |
void | testRawSigning () throws Exception |
void | testObjectSigning () throws Exception |
void | testKeyGen () throws Exception |
void | testCcndRetrieve () throws Exception |
Static Public Member Functions | |
static void | setUpBeforeClass () throws Exception |
Static Public Attributes | |
static final int | NUM_ITER = 1000 |
static final int | NUM_KEYGEN = 100 |
static final double | NanoToMilli = 1000000.0d |
static final double | NanoToSec = 1000000000000.0d |
static CCNTestHelper | testHelper = new CCNTestHelper(BenchmarkTest.class) |
static CCNHandle | handle |
static ContentName | testName |
static byte[] | shortPayload |
static byte[] | longPayload |
static byte[] | veryLongPayload |
static byte[][] | payloads |
static final int[] | keyLengths = new int[]{512, 1024, 2048} |
static final String[] | digestAlgorithms = new String[]{"MD5", "SHA1", CCNDigestHelper.DEFAULT_DIGEST_ALGORITHM} |
static final int | LONG_LENGTH = 1000 |
static final int | VERY_LONG_LENGTH = 4096 |
static ContentObject[] | contentObjects |
static ContentObject[] | unsignedContentObjects |
static KeyPair[] | keyPairs = new KeyPair[keyLengths.length] |
static NumberFormat | format = DecimalFormat.getNumberInstance() |
Classes | |
class | Operation< T, U > |
Instead, this test times some operations for basic benchmarking.