spec.benchmarks.crypto.signverify
Class Main

java.lang.Object
  extended by java.lang.Thread
      extended by spec.harness.BenchmarkThread
          extended by spec.harness.SpecJVMBenchmarkBase
              extended by spec.benchmarks.crypto.signverify.Main
All Implemented Interfaces:
java.lang.Runnable, SpecJVMBenchmark

public class Main
extends SpecJVMBenchmarkBase


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class spec.harness.BenchmarkThread
createValidityCheckFiles
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface spec.harness.SpecJVMBenchmark
FUNCTIONAL, INVALID, MULTI, SINGLE, STRESS
 
Constructor Summary
Main(BenchmarkResult bmResult, int threadId)
           
 
Method Summary
static void createTestData()
           
 void harnessMain()
          Starts the benchmark.
static void main(java.lang.String[] args)
           
 void runSignVerify(byte[] indata, java.lang.String algorithm, java.security.PrivateKey privKey, java.security.PublicKey pubKey)
           
static void setupBenchmark()
           
 byte[] sign(byte[] indata, java.lang.String algorithm, java.security.PrivateKey privKey)
           
static java.lang.String testType()
          Run this in multi mode, next to each other.
 boolean verify(byte[] indata, java.lang.String algorithm, byte[] signed, java.security.PublicKey pubKey)
           
 
Methods inherited from class spec.harness.SpecJVMBenchmarkBase
runSimple, setupIteration, tearDownBenchmark, tearDownIteration
 
Methods inherited from class spec.harness.BenchmarkThread
executeIteration, getArgs, getThreadId, run, runLoop, setInvalidStartupResult, setItResult, setPrintProgress
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Main

public Main(BenchmarkResult bmResult,
            int threadId)
Method Detail

testType

public static java.lang.String testType()
Run this in multi mode, next to each other.


sign

public byte[] sign(byte[] indata,
                   java.lang.String algorithm,
                   java.security.PrivateKey privKey)

verify

public boolean verify(byte[] indata,
                      java.lang.String algorithm,
                      byte[] signed,
                      java.security.PublicKey pubKey)

runSignVerify

public void runSignVerify(byte[] indata,
                          java.lang.String algorithm,
                          java.security.PrivateKey privKey,
                          java.security.PublicKey pubKey)

harnessMain

public void harnessMain()
Description copied from class: BenchmarkThread
Starts the benchmark. Each benchmark implements this method. Given a class name, the ProgramRunner class dynamically creates the instance of the benchmark class and calls this method.

Specified by:
harnessMain in class BenchmarkThread
See Also:
ProgramRunner, BenchmarkThread

setupBenchmark

public static void setupBenchmark()

createTestData

public static void createTestData()
                           throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception