Documentation ¶
Index ¶
- func BenchmarkDBForwardIteration(db types.StateStore, inputKVDir string, numVersions int, concurrency int, ...)
- func BenchmarkDBRead(db types.StateStore, inputKVDir string, numVersions int, concurrency int, ...)
- func BenchmarkDBReverseIteration(db types.StateStore, inputKVDir string, numVersions int, concurrency int, ...)
- func BenchmarkDBWrite(db types.StateStore, inputKVDir string, numVersions int, concurrency int, ...)
- type DBBackend
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) }