public abstract class

SimpleBenchmark

extends Object
implements Benchmark
java.lang.Object
   ↳ com.google.caliper.SimpleBenchmark

Class Overview

A convenience class for implementing benchmarks in plain code. Implementing classes must have a no-arguments constructor.

Benchmarks

The benchmarks of a suite are defined by . They may be static. They are not permitted to take parameters . . ..

Parameters

See the Param documentation to learn about parameters.

Summary

Protected Constructors
SimpleBenchmark()
Public Methods
TimedRunnable createBenchmark(Map<String, String> parameterValues)
Scenario normalizeScenario(Scenario scenario)
Set<String> parameterNames()
Set<String> parameterValues(String parameterName)
Protected Methods
void setUp()
void tearDown()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.caliper.Benchmark

Protected Constructors

protected SimpleBenchmark ()

Public Methods

public TimedRunnable createBenchmark (Map<String, String> parameterValues)

public Scenario normalizeScenario (Scenario scenario)

public Set<String> parameterNames ()

public Set<String> parameterValues (String parameterName)

Protected Methods

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception