Documentation
¶
Index ¶
- type CallDepthTest
- type ContractCreationTest
- type ERC20Test
- type ExternalCallTest
- type HashingTest
- type LargeEventTest
- type LoadGenerator
- type MemoryTest
- type PureComputeTest
- type RandomWeightedTest
- type ReadTest
- type StateModificationTest
- type Test
- type TransferTest
- type TrieStressTest
- type Wallet
- type WeightedTest
- type Worker
- type WriteTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallDepthTest ¶ added in v1.13.4
type CallDepthTest struct {
Contract *contracts.EVMLoadSimulator
Count *big.Int
}
func (CallDepthTest) Run ¶ added in v1.13.4
func (c CallDepthTest) Run(tc tests.TestContext, wallet *Wallet)
type ContractCreationTest ¶ added in v1.13.4
type ContractCreationTest struct {
Contract *contracts.EVMLoadSimulator
}
func (ContractCreationTest) Run ¶ added in v1.13.4
func (c ContractCreationTest) Run(tc tests.TestContext, wallet *Wallet)
type ExternalCallTest ¶ added in v1.13.4
type ExternalCallTest struct {
Contract *contracts.EVMLoadSimulator
}
func (ExternalCallTest) Run ¶ added in v1.13.4
func (e ExternalCallTest) Run(tc tests.TestContext, wallet *Wallet)
type HashingTest ¶ added in v1.13.4
type HashingTest struct {
Contract *contracts.EVMLoadSimulator
Count *big.Int
}
func (HashingTest) Run ¶ added in v1.13.4
func (h HashingTest) Run(tc tests.TestContext, wallet *Wallet)
type LargeEventTest ¶ added in v1.13.4
type LargeEventTest struct {
Contract *contracts.EVMLoadSimulator
NumEvents *big.Int
}
func (LargeEventTest) Run ¶ added in v1.13.4
func (l LargeEventTest) Run(tc tests.TestContext, wallet *Wallet)
type LoadGenerator ¶ added in v1.13.4
type LoadGenerator struct {
// contains filtered or unexported fields
}
func NewLoadGenerator ¶ added in v1.13.4
func NewLoadGenerator( workers []Worker, chainID *big.Int, metricsNamespace string, registry *prometheus.Registry, test Test, ) (LoadGenerator, error)
type MemoryTest ¶ added in v1.13.4
type MemoryTest struct {
Contract *contracts.EVMLoadSimulator
Count *big.Int
}
func (MemoryTest) Run ¶ added in v1.13.4
func (m MemoryTest) Run(tc tests.TestContext, wallet *Wallet)
type PureComputeTest ¶ added in v1.13.4
type PureComputeTest struct {
Contract *contracts.EVMLoadSimulator
NumIterations *big.Int
}
func (PureComputeTest) Run ¶ added in v1.13.4
func (p PureComputeTest) Run(tc tests.TestContext, wallet *Wallet)
type RandomWeightedTest ¶ added in v1.13.4
type RandomWeightedTest struct {
// contains filtered or unexported fields
}
func NewRandomTest ¶ added in v1.13.4
func NewRandomTest( ctx context.Context, chainID *big.Int, worker *Worker, source rand.Source, tokenContract *contracts.ERC20, ) (*RandomWeightedTest, error)
NewRandomTest creates a RandomWeightedTest containing a collection of EVM load testing scenarios.
This function handles the setup of the tests and also assigns each test an equal weight, making them equally likely to be selected during random test execution.
func NewRandomWeightedTest ¶ added in v1.13.4
func NewRandomWeightedTest( weightedTests []WeightedTest, source rand.Source, ) (*RandomWeightedTest, error)
func (*RandomWeightedTest) Run ¶ added in v1.13.4
func (r *RandomWeightedTest) Run(tc tests.TestContext, wallet *Wallet)
type ReadTest ¶ added in v1.13.4
type ReadTest struct {
Contract *contracts.EVMLoadSimulator
Count *big.Int
}
type StateModificationTest ¶ added in v1.13.4
type StateModificationTest struct {
Contract *contracts.EVMLoadSimulator
Count *big.Int
}
func (StateModificationTest) Run ¶ added in v1.13.4
func (s StateModificationTest) Run(tc tests.TestContext, wallet *Wallet)
type Test ¶ added in v1.13.4
type Test interface {
Run(tc tests.TestContext, wallet *Wallet)
}
type TransferTest ¶ added in v1.13.4
func (TransferTest) Run ¶ added in v1.13.4
func (t TransferTest) Run(tc tests.TestContext, wallet *Wallet)
type TrieStressTest ¶ added in v1.13.4
type TrieStressTest struct {
Contract *contracts.TrieStressTest
NumValues *big.Int
}
func (TrieStressTest) Run ¶ added in v1.13.4
func (t TrieStressTest) Run(tc tests.TestContext, wallet *Wallet)
type WeightedTest ¶ added in v1.13.4
Click to show internal directories.
Click to hide internal directories.