Documentation
¶
Overview ¶
Package synthetic generates deterministic repository corpora for benchmarks and scale tests.
Index ¶
Constants ¶
const ( DefaultRepositoryCount = 40 DefaultFileCount = 100_000 DefaultSymbolCount = 100_000 DefaultEdgeCount = 1_000_000 DefaultSeed = int64(42) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config controls one deterministic synthetic corpus.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the corpus size and output location used by the CLI.
type Manifest ¶
type Manifest struct {
SchemaVersion string `json:"schema_version"`
Seed int64 `json:"seed"`
Repositories int `json:"repositories"`
Files int `json:"files"`
Symbols int `json:"symbols"`
Edges int `json:"edges"`
EdgeCounts map[string]int `json:"edge_counts"`
IsolatedSymbolCount int `json:"isolated_symbol_count"`
HubSymbols []string `json:"hub_symbols"`
DepthFiveChain []string `json:"depth_five_chain"`
ControlledCycle []string `json:"controlled_cycle"`
}
Manifest describes the generated corpus without embedding machine-specific timestamps.