com.google.caliper.runner
Class Scenario

java.lang.Object
  extended by com.google.caliper.runner.Scenario

public final class Scenario
extends Object

A single "premise" for making benchmark measurements: which class and method to invoke, which VM to use, which choices for user parameters and vmArguments to fill in. A caliper run will compute all possible scenarios using FullCartesianScenarioSelection, and will run one or more trials of each.


Constructor Summary
Scenario(BenchmarkMethod benchmarkMethod, Map<String,String> userParameters, Map<String,String> vmArguments, VirtualMachine vm)
           
 
Method Summary
 com.google.common.collect.ImmutableMap<String,String> asFlattenedMap()
           
 BenchmarkMethod benchmarkMethod()
           
 boolean equals(Object object)
           
 int hashCode()
           
 String toString()
           
 com.google.common.collect.ImmutableSortedMap<String,String> userParameters()
           
 VirtualMachine vm()
           
 com.google.common.collect.ImmutableSortedMap<String,String> vmArguments()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Scenario

public Scenario(BenchmarkMethod benchmarkMethod,
                Map<String,String> userParameters,
                Map<String,String> vmArguments,
                VirtualMachine vm)
Method Detail

benchmarkMethod

public BenchmarkMethod benchmarkMethod()

userParameters

public com.google.common.collect.ImmutableSortedMap<String,String> userParameters()

vm

public VirtualMachine vm()

vmArguments

public com.google.common.collect.ImmutableSortedMap<String,String> vmArguments()

asFlattenedMap

public com.google.common.collect.ImmutableMap<String,String> asFlattenedMap()

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.