Skip to main content

Module benchmark_support

Module benchmark_support 

Source
Expand description

Fixtures and direct entry points shared by unit tests and Criterion benchmarks.

The commit phase needs a PlayerConnection and cannot be driven from a benchmark, so this exposes the pure batch-resolution step that runs inside it along with the pieces needed to build a realistic batch.

Functionsยง

encoded_is_current_for
Whether an encoded chunk still matches the prepared chunk it came from.
encoded_pos
Position the encoded chunk was built for.
prepared_full_chunk
Builds a block-ticking prepared chunk backed by a real empty full chunk.
resolve_valid_chunks
Runs the batch-resolution step of ChunkSender::commit_batch.