network

package
v0.0.0-...-b5290a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExecutionLayerLogFileName = "el.log"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkBenchmark

type NetworkBenchmark struct {
	// contains filtered or unexported fields
}

NetworkBenchmark handles the lifecycle for a single benchmark run

func NewNetworkBenchmark

func NewNetworkBenchmark(config *benchtypes.TestConfig, log log.Logger, sequencerOptions *config.InternalClientOptions, validatorOptions *config.InternalClientOptions, proofConfig *benchmark.ProofProgramOptions, transactionPayload payload.Definition, ports portmanager.PortManager, mode benchmark.BenchmarkExecutionMode, flashblocksBlockTime string) (*NetworkBenchmark, error)

NewNetworkBenchmark creates a new network benchmark.

The sequencer phase always runs and produces the payload stream. The normalized execution mode only controls whether the validator phase is run afterward to replay that stream.

func (*NetworkBenchmark) GetResult

func (nb *NetworkBenchmark) GetResult() (*benchmark.RunResult, error)

func (*NetworkBenchmark) Run

func (nb *NetworkBenchmark) Run(ctx context.Context) error

Run executes the benchmark test

type ProofProgramBenchmark

type ProofProgramBenchmark interface {
	Run(ctx context.Context, payloads []engine.ExecutableData, lastSetupBlock uint64) error
}

func NewOPProgramBenchmark

func NewOPProgramBenchmark(genesis *core.Genesis, log log.Logger, opProgramBin string, l2RPCURL string, l1Chain fakel1.L1Chain, batcherKey *ecdsa.PrivateKey, blockTimeSec uint64) ProofProgramBenchmark

Directories

Path Synopsis
fakel1
Package ethapi implements the general Ethereum API functions.
Package ethapi implements the general Ethereum API functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL