solobench

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

package solobench provides tools to benchmark contracts running under solo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBenchmarkAsync

func RunBenchmarkAsync(b *testing.B, chain *solo.Chain, reqs []*solo.CallParams, keyPair *cryptolib.KeyPair)

RunBenchmarkAsync processes requests asynchronously, producing 1 block per many requests

func RunBenchmarkSync

func RunBenchmarkSync(b *testing.B, chain *solo.Chain, reqs []*solo.CallParams, keyPair *cryptolib.KeyPair)

RunBenchmarkSync processes requests synchronously, producing 1 block per request

Types

type Func added in v0.2.2

type Func func(b *testing.B, chain *solo.Chain, reqs []*solo.CallParams, keyPair *cryptolib.KeyPair)

Jump to

Keyboard shortcuts

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