Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployTest ¶
type DeployTest struct {
Contract *contracts.LoadSimulator
}
func (DeployTest) Run ¶
func (d DeployTest) Run(tc tests.TestContext, wallet *Wallet)
type LargeCalldataTest ¶
type LargeCalldataTest struct {
Contract *contracts.LoadSimulator
Calldata []byte
}
func (LargeCalldataTest) Run ¶
func (l LargeCalldataTest) Run(tc tests.TestContext, wallet *Wallet)
type LoadGenerator ¶
type LoadGenerator struct {
// contains filtered or unexported fields
}
func NewLoadGenerator ¶
func NewLoadGenerator( workers []Worker, chainID *big.Int, metricsNamespace string, registry *prometheus.Registry, test Test, ) (LoadGenerator, error)
type ModifyTest ¶
type ModifyTest struct {
Contract *contracts.LoadSimulator
NumSlots *big.Int
Rand *rand.Rand
// contains filtered or unexported fields
}
func (*ModifyTest) Run ¶
func (m *ModifyTest) Run(tc tests.TestContext, wallet *Wallet)
type RandomWeightedTest ¶
type RandomWeightedTest struct {
// contains filtered or unexported fields
}
func NewRandomTest ¶
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 a weight based on its C-Chain frequency and computational intensity.
func NewRandomWeightedTest ¶
func NewRandomWeightedTest( weightedTests []WeightedTest, source rand.Source, ) (*RandomWeightedTest, error)
func (*RandomWeightedTest) Run ¶
func (r *RandomWeightedTest) Run(tc tests.TestContext, wallet *Wallet)
type Test ¶
type Test interface {
Run(tc tests.TestContext, wallet *Wallet)
}
type TransferTest ¶
func (TransferTest) Run ¶
func (t TransferTest) Run(tc tests.TestContext, wallet *Wallet)
type TrieStressTest ¶
type TrieStressTest struct {
Contract *contracts.TrieStressTest
NumValues *big.Int
}
func (TrieStressTest) Run ¶
func (t TrieStressTest) Run(tc tests.TestContext, wallet *Wallet)
type WeightedTest ¶
Click to show internal directories.
Click to hide internal directories.