org.ccnx.ccn.test.BenchmarkTest Class Reference

This is not a unit test designed to verify functionality. More...

List of all members.

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 >


Detailed Description

This is not a unit test designed to verify functionality.

Instead, this test times some operations for basic benchmarking.

Author:
jthornto

The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:45:07 2012 for Content-Centric Networking in Java by  doxygen 1.5.6