Documentation
¶
Index ¶
- func Average[T constraints.Integer | constraints.Float](values []T) T
- func MustEthereumAddressFromBytes(b []byte) *util.EthereumAddress
- func MustNewEthereumAddressFromBytes(b []byte) util.EthereumAddress
- func MustNewEthereumAddressFromString(s string) util.EthereumAddress
- type BenchmarkCase
- type ProcedureEnum
- type RangeParameters
- type Result
- type RunBenchmarkInput
- type RunSingleTestInput
- type SetupSchemasInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Average ¶
func Average[T constraints.Integer | constraints.Float](values []T) T
func MustEthereumAddressFromBytes ¶
func MustEthereumAddressFromBytes(b []byte) *util.EthereumAddress
func MustNewEthereumAddressFromBytes ¶
func MustNewEthereumAddressFromBytes(b []byte) util.EthereumAddress
MustNewEthereumAddressFromBytes creates an EthereumAddress from a byte slice, panicking if the conversion fails. Use with caution and only in contexts where a failure to create the address is unrecoverable.
func MustNewEthereumAddressFromString ¶
func MustNewEthereumAddressFromString(s string) util.EthereumAddress
MustNewEthereumAddressFromString creates an EthereumAddress from a string, panicking if the conversion fails. Use with caution and only in contexts where a failure to create the address is unrecoverable.
Types ¶
type BenchmarkCase ¶
type BenchmarkCase struct {
QtyStreams int
BranchingFactor int
DataPointsSet []int
UnixOnly bool
Visibility util.VisibilityEnum
Samples int
Procedures []ProcedureEnum
}
type ProcedureEnum ¶
type ProcedureEnum string
const ( ProcedureGetRecord ProcedureEnum = "get_record" ProcedureGetIndex ProcedureEnum = "get_index" ProcedureGetChangeIndex ProcedureEnum = "get_index_change" ProcedureGetFirstRecord ProcedureEnum = "get_first_record" )
type RangeParameters ¶
type Result ¶
type Result struct {
Case BenchmarkCase
MaxDepth int
MemoryUsage uint64
Procedure ProcedureEnum
DataPoints int
CaseDurations []time.Duration
}
type RunBenchmarkInput ¶
type RunSingleTestInput ¶
type RunSingleTestInput struct {
Platform *kwilTesting.Platform
Case BenchmarkCase
DataPoints int
Procedure ProcedureEnum
Tree trees.Tree
}
type SetupSchemasInput ¶
type SetupSchemasInput struct {
BenchmarkCase BenchmarkCase
Tree trees.Tree
}
Click to show internal directories.
Click to hide internal directories.