Documentation

memory

Memory benchmark runner.

Measures memory consumption for Text-Fabric and Context-Fabric across single-process, spawn, and fork modes.

Classes

class

MemoryBenchmarkRunner

()

Runner for memory benchmarks.

Runner for memory benchmarks. Measures memory usage in single-process, spawn, and fork modes for both Text-Fabric and Context-Fabric.

Methods

name(self) str
run(self, corpus: CorpusConfig, modes: list[Literal[('single', 'spawn', 'fork')]] | None = None) MemoryBenchmarkResult

Run memory benchmark for a corpus.

Parameters
  • corpus: CorpusConfig
  • modes: list[Literal[('single', 'spawn', 'fork')]] | None= None

Functions