dbbackend

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkDBForwardIteration

func BenchmarkDBForwardIteration(db types.StateStore, inputKVDir string, numVersions int, concurrency int, maxOps int64, iterationSteps int)

BenchmarkDBForwardIteration measures forward iteration performance of the db Given an input dir containing all the raw kv data, it selects a random key, forward iterates and measures performance.

func BenchmarkDBRead

func BenchmarkDBRead(db types.StateStore, inputKVDir string, numVersions int, concurrency int, maxOps int64)

BenchmarkDBRead measures random read performance of the db Given an input dir containing all the raw kv data, it generates random read load and measures performance.

func BenchmarkDBReverseIteration

func BenchmarkDBReverseIteration(db types.StateStore, inputKVDir string, numVersions int, concurrency int, maxOps int64, iterationSteps int)

BenchmarkDBReverseIteration measures reverse iteration performance of the db Given an input dir containing all the raw kv data, it selects a random key, reverse iterates and measures performance.

func BenchmarkDBWrite

func BenchmarkDBWrite(db types.StateStore, inputKVDir string, numVersions int, concurrency int, batchSize int)

BenchmarkDBWrite measures random write performance of the db Given an input dir containing all the raw kv data, it writes to the db one version after another

Types

type DBBackend

type DBBackend interface {
	BenchmarkDBWrite(inputKVDir string, numVersions int, outputDBPath string, concurrency int, batchSize int)
	BenchmarkDBRead(inputKVDir string, numVersions int, outputDBPath string, concurrency int, maxOps int64)
	BenchmarkDBForwardIteration(inputKVDir string, numVersions int, outputDBPath string, concurrency int, maxOps int64, iterationSteps int)
	BenchmarkDBReverseIteration(inputKVDir string, numVersions int, outputDBPath string, concurrency int, maxOps int64, iterationSteps int)
}

Jump to

Keyboard shortcuts

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