A B C D E F G I J L M N P R S T U

A

allConfigurationSuccess(JBenchConfiguration) - Method in class uk.org.skeet.jbench.EventWriter
 
allConfigurationSuccess(JBenchConfiguration) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called when all tasks have been configured
ArrayFill - class uk.org.skeet.jbench.tasks.ArrayFill.
Abstract class to enable simple array-fill benchmarking.
ArrayFill() - Constructor for class uk.org.skeet.jbench.tasks.ArrayFill
 
ArrayFill3dButler - class uk.org.skeet.jbench.tasks.ArrayFill3dButler.
Subclass of ArrayFill which creates a 3-dimensional array (similar to ArrayFill3dOriginal) but fills it using a cache of which subarray is being used for each set of iterations.
ArrayFill3dButler() - Constructor for class uk.org.skeet.jbench.tasks.ArrayFill3dButler
 
ArrayFill3dOriginal - class uk.org.skeet.jbench.tasks.ArrayFill3dOriginal.
Subclass of ArrayFill which creates a 3-d array (or rather an array of arrays of arrays), each dimension of which is the size as specified by ArrayFill.
ArrayFill3dOriginal() - Constructor for class uk.org.skeet.jbench.tasks.ArrayFill3dOriginal
 
ArrayFillPlain - class uk.org.skeet.jbench.tasks.ArrayFillPlain.
Subclass of ArrayFill which just creates an array of the specified size and fills it.
ArrayFillPlain() - Constructor for class uk.org.skeet.jbench.tasks.ArrayFillPlain
 
ArrayFillPseudo3d - class uk.org.skeet.jbench.tasks.ArrayFillPseudo3d.
Plain array fill which merely cubes the size specified, to make the result comparable with ArrayFill3dOriginal and ArrayFill3dButler for the same size.
ArrayFillPseudo3d() - Constructor for class uk.org.skeet.jbench.tasks.ArrayFillPseudo3d
 

B

BenchTask - interface uk.org.skeet.jbench.BenchTask.
Interface to be implemented by all tasks.
BenchTimer - interface uk.org.skeet.jbench.BenchTimer.
Interface representing a timer to be used to measure the performance of tasks.

C

checkConfiguration() - Method in interface uk.org.skeet.jbench.BenchTask
Checks that the configuration supplied is valid.
checkConfiguration() - Method in class uk.org.skeet.jbench.tasks.ListFill
Checks that the configuration is valid
checkConfiguration() - Method in class uk.org.skeet.jbench.tasks.SimpleTask
Checks that we have a positive size
checkConfiguration() - Method in class uk.org.skeet.jbench.tasks.ReflectionTask
 
checkConfiguration() - Method in class uk.org.skeet.jbench.tasks.ArrayFill
Checks that we have a positive size and number of iterations
checkConfiguration() - Method in class uk.org.skeet.jbench.tasks.MultipleListTraverse
 
checkConfiguration() - Method in class uk.org.skeet.jbench.tasks.ListSort
Checks that the configuration is valid
checkConfiguration() - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
 
checkConfiguration() - Method in class uk.org.skeet.jbench.tasks.ListTraverse
 
checkResults() - Method in interface uk.org.skeet.jbench.BenchTask
Checks that the test completed successfully.
checkResults() - Method in class uk.org.skeet.jbench.tasks.ListFill
Checks the results
checkResults() - Method in class uk.org.skeet.jbench.tasks.SimpleTask
Simple no-op implementation of checkResults.
checkResults() - Method in class uk.org.skeet.jbench.tasks.ReflectionTask
 
checkResults() - Method in class uk.org.skeet.jbench.tasks.ArrayFill
No checking - we're lazy by default.
checkResults() - Method in class uk.org.skeet.jbench.tasks.ProxyTask
 
checkResults() - Method in class uk.org.skeet.jbench.tasks.MultipleListTraverse
 
checkResults() - Method in class uk.org.skeet.jbench.tasks.ListSort
Checks the results
checkResults() - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
Closes the connection.
checkResults() - Method in class uk.org.skeet.jbench.tasks.ListTraverse
 
ClockTimer - class uk.org.skeet.jbench.ClockTimer.
Timer measuring wall-clock time using System.currentTimeMillis()
ClockTimer() - Constructor for class uk.org.skeet.jbench.ClockTimer
 
ConfigurationException - exception uk.org.skeet.jbench.ConfigurationException.
Exception indicating that a specified configuration is invalid.
ConfigurationException(String) - Constructor for class uk.org.skeet.jbench.ConfigurationException
Constructs an exception with a user-readable message indicating the problem.
configure(Properties) - Method in interface uk.org.skeet.jbench.BenchTimer
Configures the timer.
configure(Properties) - Method in class uk.org.skeet.jbench.CPUTimer
 
configure(Properties) - Method in class uk.org.skeet.jbench.ClockTimer
 
configure(Properties) - Method in class uk.org.skeet.jbench.JBenchConfiguration
Configures this object from a set of properties.
CPUTimer - class uk.org.skeet.jbench.CPUTimer.
Timer using the JVM profiling API to get more accurate timing.
CPUTimer() - Constructor for class uk.org.skeet.jbench.CPUTimer
 

D

DoubleAdditionTask - class uk.org.skeet.jbench.tasks.DoubleAdditionTask.
Simple demonstration (along with FloatAdditionTask) to illustrate the use of SimpleRepetitiveTask
DoubleAdditionTask() - Constructor for class uk.org.skeet.jbench.tasks.DoubleAdditionTask
 

E

EventWriter - class uk.org.skeet.jbench.EventWriter.
Simple class to implement JBenchEventListener by writing results out to a PrintWriter.
EventWriter(PrintWriter, boolean) - Constructor for class uk.org.skeet.jbench.EventWriter
 
EXCLUDE_BEST - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 
EXCLUDE_BEST - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.Defaults
 
EXCLUDE_WORST - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 
EXCLUDE_WORST - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.Defaults
 

F

FAIL_FAST - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 
FAIL_FAST - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.Defaults
 
fillArray() - Method in class uk.org.skeet.jbench.tasks.ArrayFill
Fills the array.
fillArray() - Method in class uk.org.skeet.jbench.tasks.ArrayFill3dButler
 
fillArray() - Method in class uk.org.skeet.jbench.tasks.ArrayFillPlain
 
fillArray() - Method in class uk.org.skeet.jbench.tasks.ArrayFill3dOriginal
 
FloatAdditionTask - class uk.org.skeet.jbench.tasks.FloatAdditionTask.
Simple demonstration (along with DoubleAdditionTask) to illustrate the use of SimpleRepetitiveTask
FloatAdditionTask() - Constructor for class uk.org.skeet.jbench.tasks.FloatAdditionTask
 

G

getDescription() - Method in interface uk.org.skeet.jbench.BenchTask
Returns a detailed description of the task, including any pertinent configuration information.
getDescription() - Method in class uk.org.skeet.jbench.tasks.ListFill
Returns a description of the test, including the parameters
getDescription() - Method in class uk.org.skeet.jbench.tasks.SimpleTask
Default description which gives the name of the actual class and the number of iterations.
getDescription() - Method in class uk.org.skeet.jbench.tasks.ReflectionTask
 
getDescription() - Method in class uk.org.skeet.jbench.tasks.ArrayFill
Default description which gives the name of the actual class, the size of the array, and the number of iterations.
getDescription() - Method in class uk.org.skeet.jbench.tasks.InlineTask
 
getDescription() - Method in class uk.org.skeet.jbench.tasks.ProxyTask
 
getDescription() - Method in class uk.org.skeet.jbench.tasks.MultipleListTraverse
 
getDescription() - Method in class uk.org.skeet.jbench.tasks.ListSort
Returns a description of the test, including the parameters
getDescription() - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
 
getDescription() - Method in class uk.org.skeet.jbench.tasks.ListTraverse
 
getEventListener() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
getExcludeBest() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
getExcludeWorst() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
getMean() - Method in class uk.org.skeet.jbench.TaskResults
Returns the mean of the included results
getPackages() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
getRunsPerTask() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
getSize() - Method in class uk.org.skeet.jbench.tasks.SimpleTask
Returns the number of size per test
getSize() - Method in class uk.org.skeet.jbench.tasks.ArrayFill
Returns the size to test
getSize() - Method in class uk.org.skeet.jbench.tasks.ArrayFillPseudo3d
Cube the size required
getStandardDeviation() - Method in class uk.org.skeet.jbench.TaskResults
Returns the standard deviation of the included results
getSystemInformation() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
getTaskList() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
getTime() - Method in interface uk.org.skeet.jbench.BenchTimer
Returns the "current time" in ms according to the timer.
getTime() - Method in class uk.org.skeet.jbench.CPUTimer
Returns the time using the System.currentTimeMillis() if the library hasn't been loaded successfully (just in case configure isn't called by clients) or the CPU thread time otherwise.
getTime() - Method in class uk.org.skeet.jbench.ClockTimer
 
getTime(int) - Method in class uk.org.skeet.jbench.TaskResults
Returns the time for the specified result
getTimer() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
getVariance() - Method in class uk.org.skeet.jbench.TaskResults
Returns the variance of the included results
globalConfigurationFailure(String) - Method in class uk.org.skeet.jbench.EventWriter
 
globalConfigurationFailure(String) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called to report that global (general) configuration has failed
globalConfigurationSuccess(JBenchConfiguration) - Method in class uk.org.skeet.jbench.EventWriter
 
globalConfigurationSuccess(JBenchConfiguration) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called to report that global (general) configuration has succeeded

I

includedSize() - Method in class uk.org.skeet.jbench.TaskResults
Returns how many results were included from the statistics
incrementCounter() - Method in class uk.org.skeet.jbench.tasks.ProxyTask
Increments the counter.
incrementCounter() - Method in interface uk.org.skeet.jbench.tasks.ProxyTaskInterface
 
incrementCounter(int) - Method in class uk.org.skeet.jbench.tasks.ReflectionTask
Increments the counter by the set amount
InlineTask - class uk.org.skeet.jbench.tasks.InlineTask.
 
InlineTask() - Constructor for class uk.org.skeet.jbench.tasks.InlineTask
 
isExcluded(int) - Method in class uk.org.skeet.jbench.TaskResults
Returns whether or not the specified result was excluded from statistics
isFailFast() - Method in class uk.org.skeet.jbench.JBenchConfiguration
 

J

JBench - class uk.org.skeet.jbench.JBench.
Main class responsible for setting up and running benchmarks.
JBench() - Constructor for class uk.org.skeet.jbench.JBench
 
JBenchConfiguration - class uk.org.skeet.jbench.JBenchConfiguration.
Class encapsulating general configuration and containing references to configured tasks.
JBenchConfiguration.Defaults - interface uk.org.skeet.jbench.JBenchConfiguration.Defaults.
Interface for the default configuration values
JBenchConfiguration.PropertyNames - interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames.
Interface for the property names appearing in the configuration file.
JBenchConfiguration() - Constructor for class uk.org.skeet.jbench.JBenchConfiguration
Constructor.
JBenchEventListener - interface uk.org.skeet.jbench.JBenchEventListener.
Interface used for the output of all results.

L

ListFill - class uk.org.skeet.jbench.tasks.ListFill.
Very simple implementation of BenchTask.
ListFill() - Constructor for class uk.org.skeet.jbench.tasks.ListFill
 
ListSort - class uk.org.skeet.jbench.tasks.ListSort.
Very simple implementation of BenchTask.
ListSort() - Constructor for class uk.org.skeet.jbench.tasks.ListSort
 
ListTraverse - class uk.org.skeet.jbench.tasks.ListTraverse.
 
ListTraverse() - Constructor for class uk.org.skeet.jbench.tasks.ListTraverse
 
LOG_APPEND - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 
LOG_APPEND - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.Defaults
 
LOG_FILE - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 

M

main(String[]) - Static method in class uk.org.skeet.jbench.JBench
Main method, and expected point of entry.
MultipleListTraverse - class uk.org.skeet.jbench.tasks.MultipleListTraverse.
Class to test traversal of many (small) lists as opposed to one big one.
MultipleListTraverse() - Constructor for class uk.org.skeet.jbench.tasks.MultipleListTraverse
 

N

noTasks() - Method in class uk.org.skeet.jbench.EventWriter
 
noTasks() - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called when there are no successfully configured tasks (just before a runAbort)

P

PACKAGES - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 
PreparedStatementTask - class uk.org.skeet.jbench.tasks.PreparedStatementTask.
Class to create a large number of similar or the same PreparedStatements on a single connection - this tests whether or not the driver itself caches the parsed statements.
PreparedStatementTask() - Constructor for class uk.org.skeet.jbench.tasks.PreparedStatementTask
 
prepareTest() - Method in interface uk.org.skeet.jbench.BenchTask
Prepares the task for a test.
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ListFill
Create the instance, but don't populate it.
prepareTest() - Method in class uk.org.skeet.jbench.tasks.SimpleTask
Simple no-op implementation of prepareTest.
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ReflectionTask
 
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ArrayFill
Creates the array to be filled during the test.
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ArrayFill3dButler
 
prepareTest() - Method in class uk.org.skeet.jbench.tasks.InlineTask
 
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ArrayFillPlain
 
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ProxyTask
 
prepareTest() - Method in class uk.org.skeet.jbench.tasks.MultipleListTraverse
 
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ListSort
Prepares a test by creating and populating a list
prepareTest() - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
 
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ListTraverse
 
prepareTest() - Method in class uk.org.skeet.jbench.tasks.ArrayFill3dOriginal
 
ProxyTask - class uk.org.skeet.jbench.tasks.ProxyTask.
Task to determine the overhead of Proxy calls.
ProxyTask() - Constructor for class uk.org.skeet.jbench.tasks.ProxyTask
 
ProxyTaskInterface - interface uk.org.skeet.jbench.tasks.ProxyTaskInterface.
Interface used by ProxyTask.

R

ReflectionTask - class uk.org.skeet.jbench.tasks.ReflectionTask.
Class to test reflection speed.
ReflectionTask() - Constructor for class uk.org.skeet.jbench.tasks.ReflectionTask
 
runAborted(String) - Method in class uk.org.skeet.jbench.EventWriter
 
runAborted(String) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called when the run has been aborted due to a failure
runCompleted() - Method in class uk.org.skeet.jbench.EventWriter
 
runCompleted() - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called to report that a JBench run has been completed
RUNS_PER_TASK - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 
RUNS_PER_TASK - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.Defaults
 
runStarting() - Method in class uk.org.skeet.jbench.EventWriter
 
runStarting() - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called when a JBench run is starting
runTest() - Method in interface uk.org.skeet.jbench.BenchTask
Runs a test.
runTest() - Method in class uk.org.skeet.jbench.tasks.ListFill
Runs the test itself - populates the list with size references to the current test.
runTest() - Method in class uk.org.skeet.jbench.tasks.ReflectionTask
 
runTest() - Method in class uk.org.skeet.jbench.tasks.ArrayFill
Simply calls ArrayFill.fillArray() however many times has been specified by iterations.
runTest() - Method in class uk.org.skeet.jbench.tasks.InlineTask
 
runTest() - Method in class uk.org.skeet.jbench.tasks.FloatAdditionTask
 
runTest() - Method in class uk.org.skeet.jbench.tasks.ProxyTask
 
runTest() - Method in class uk.org.skeet.jbench.tasks.MultipleListTraverse
 
runTest() - Method in class uk.org.skeet.jbench.tasks.ListSort
Runs the test itself
runTest() - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
 
runTest() - Method in class uk.org.skeet.jbench.tasks.ListTraverse
 
runTest() - Method in class uk.org.skeet.jbench.tasks.DoubleAdditionTask
 
runTests() - Method in class uk.org.skeet.jbench.JBenchConfiguration
Runs the tests themselves.

S

setDriver(String) - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
Sets the driver
setEventListener(JBenchEventListener) - Method in class uk.org.skeet.jbench.JBenchConfiguration
 
setInline(boolean) - Method in class uk.org.skeet.jbench.tasks.InlineTask
Sets the inline value
setIterate(boolean) - Method in class uk.org.skeet.jbench.tasks.MultipleListTraverse
Sets the iterate field - if set to true, traverse the set by iteration.
setIterate(boolean) - Method in class uk.org.skeet.jbench.tasks.ListTraverse
Sets the iterate field - if set to true, traverse the set by iteration.
setIterations(int) - Method in class uk.org.skeet.jbench.tasks.ArrayFill
Sets the number of iterations per test
setJustTestString(boolean) - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
Sets the justTestString
setQuantity(int) - Method in class uk.org.skeet.jbench.tasks.MultipleListTraverse
Sets the number of lists to use
setSame(boolean) - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
Sets the same parameter
setSize(int) - Method in class uk.org.skeet.jbench.tasks.ListFill
Sets the size of the test, ie the number of elements to sort
setSize(int) - Method in class uk.org.skeet.jbench.tasks.ArrayFill
Sets the size to test
setSize(int) - Method in class uk.org.skeet.jbench.tasks.ListSort
Sets the size of the test, ie the number of elements to sort
setSize(long) - Method in class uk.org.skeet.jbench.tasks.SimpleTask
Sets the number of size per test
setType(Class) - Method in class uk.org.skeet.jbench.tasks.ListFill
Sets the type of list to use, eg java.util.ArrayList
setType(Class) - Method in class uk.org.skeet.jbench.tasks.MultipleListTraverse
Sets the type of list to use, eg java.util.ArrayList
setType(Class) - Method in class uk.org.skeet.jbench.tasks.ListSort
Sets the type of list to use, eg java.util.ArrayList
setType(Class) - Method in class uk.org.skeet.jbench.tasks.ListTraverse
Sets the type of list to use, eg java.util.ArrayList
setType(String) - Method in class uk.org.skeet.jbench.tasks.ReflectionTask
Sets the type of test
setUrl(String) - Method in class uk.org.skeet.jbench.tasks.PreparedStatementTask
Sets the url
setUseProxy(boolean) - Method in class uk.org.skeet.jbench.tasks.ProxyTask
Sets whether or not to actually proxy.
SimpleTask - class uk.org.skeet.jbench.tasks.SimpleTask.
Abstract class to make simple tasks easier to write.
SimpleTask() - Constructor for class uk.org.skeet.jbench.tasks.SimpleTask
 
size() - Method in class uk.org.skeet.jbench.TaskResults
Returns how many results were obtained
SYSTEM_INFORMATION - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 
SYSTEM_INFORMATION - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.Defaults
 

T

taskAborted(BenchTask, int, int, String) - Method in class uk.org.skeet.jbench.EventWriter
 
taskAborted(BenchTask, int, int, String) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called to report that a task has been aborted
taskCompleted(BenchTask, int, int, TaskResults) - Method in class uk.org.skeet.jbench.EventWriter
 
taskCompleted(BenchTask, int, int, TaskResults) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called to report that a task has been completed
taskConfigurationFailure(String, int, String) - Method in class uk.org.skeet.jbench.EventWriter
 
taskConfigurationFailure(String, int, String) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called when a task has failed to be configured
taskConfigurationSuccess(BenchTask, int) - Method in class uk.org.skeet.jbench.EventWriter
 
taskConfigurationSuccess(BenchTask, int) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called when a task has successfully been configured
TaskException - exception uk.org.skeet.jbench.TaskException.
Exception indicating that a task was configured incorrectly or failed a test.
TaskException(String) - Constructor for class uk.org.skeet.jbench.TaskException
Constructs an exception with a user-readable message indicating the problem.
TaskResults - class uk.org.skeet.jbench.TaskResults.
Class encapsulating the results of a series of tests.
TaskResults(JBenchConfiguration, long[]) - Constructor for class uk.org.skeet.jbench.TaskResults
Constructor creating a TaskResults object from a configuration and an array of times.
taskStarting(BenchTask, int, int) - Method in class uk.org.skeet.jbench.EventWriter
 
taskStarting(BenchTask, int, int) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called to report that a set of tests are about to be run on a task
testFailed(BenchTask, int, int, int, int, String) - Method in class uk.org.skeet.jbench.EventWriter
 
testFailed(BenchTask, int, int, int, int, String) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called to report that a test has failed
testStarting(BenchTask, int, int, int, int) - Method in class uk.org.skeet.jbench.EventWriter
 
testStarting(BenchTask, int, int, int, int) - Method in interface uk.org.skeet.jbench.JBenchEventListener
Called to report that a single test is about to be run
TIMER - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.PropertyNames
 
TIMER - Static variable in interface uk.org.skeet.jbench.JBenchConfiguration.Defaults
 

U

uk.org.skeet.jbench - package uk.org.skeet.jbench
 
uk.org.skeet.jbench.tasks - package uk.org.skeet.jbench.tasks
 

A B C D E F G I J L M N P R S T U