bench

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Bench is a benchmarking and data generation tool for StreamHash.

Subcommands:

(default)     In-memory benchmark with synthetic keys
gen           Generate random entry files (sorted or unsorted)
bench-files   Benchmark building an index from entry files on disk

Examples:

go run ./cmd/bench -keys 10000000 -payload 4 -algo ptrhash
go run ./cmd/bench gen -out /data/sorted -files 1000
go run ./cmd/bench gen -out /data/unsorted -files 1000 -sorted=false
go run ./cmd/bench bench-files -mode unsorted -cw 8 -dir /data/unsorted -out index.bin

Jump to

Keyboard shortcuts

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