Expand description
Utility functions for testing, benchmarking, and batch operations
Structs§
- Block
Statistics - Compute statistics for a collection of blocks
Functions§
- compute_
cid - Compute CID from raw data for testing/benchmarking
- compute_
total_ size - Compute total size of a block collection
- create_
block - Create a block from raw data for testing
- create_
blocks_ batch - Create multiple blocks from raw data efficiently
- deduplicate_
blocks - Deduplicate blocks by CID (keep first occurrence)
- estimate_
compression_ ratio - Estimate compression ratio for a block
- extract_
cids - Extract CIDs from a collection of blocks
- filter_
blocks_ by_ size - Filter blocks by size range
- find_
duplicates - Find duplicate blocks (same CID)
- generate_
compressible_ blocks - Generate multiple compressible blocks for compression testing
- generate_
compressible_ data - Generate compressible data for testing compression
- generate_
dedup_ dataset - Create blocks with controlled deduplication characteristics
- generate_
incompressible_ data - Generate incompressible data for testing
- generate_
mixed_ size_ blocks - Create a test dataset with mixed block sizes
- generate_
pattern_ blocks - Generate blocks with specific patterns for testing
- generate_
random_ block - Generate random block data for testing
- generate_
random_ blocks - Generate multiple random blocks with sequential seeds
- group_
blocks_ by_ size - Group blocks by size ranges for analysis
- sample_
blocks - Sample a subset of blocks for testing
- sort_
blocks_ by_ size_ asc - Sort blocks by size (ascending)
- sort_
blocks_ by_ size_ desc - Sort blocks by size (descending)
- validate_
block_ integrity - Validate block integrity by recomputing CID
- validate_
blocks_ batch - Batch validate block integrity for multiple blocks