# skhynix/ltm100 architecture

> Architecture diagram of the GitHub repository skhynix/ltm100, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/skhynix/ltm100
- Repository: https://github.com/skhynix/ltm100

## Overview

LTM100 is a multi-user load benchmark for long-term-memory services, measuring client-observed throughput, latency, errors, and rejections rather than retrieval quality. A user selects YAML configuration and run parameters; the CLI resolves dataset/backend adapters, then scenarios shape dataset streams into operations consumed by the load runner. The runner provisions users, drives requests, and records results for aggregation and reports. Major branches include open/closed load controls, chat profiles, memory-growth sweeps, dataset/backend integrations, and server-side metrics. Edges are limited to shown calls, imports, or README-documented capabilities; unsampled implementation details are not inferred.

Main entry points: [`ltm100/cli.py`](https://github.com/skhynix/ltm100/blob/main/ltm100/cli.py) (CLI commands), [`ltm100/config.py`](https://github.com/skhynix/ltm100/blob/main/ltm100/config.py) (YAML adapter registry), [`ltm100/core/runner.py`](https://github.com/skhynix/ltm100/blob/main/ltm100/core/runner.py) (Load runner), [`ltm100/core/scenarios.py`](https://github.com/skhynix/ltm100/blob/main/ltm100/core/scenarios.py) (Scenario plans)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Run control"]
  node_cli["CLI commands<br/>[cli.py]"]
  node_config["YAML adapter registry<br/>[config.py]"]
end

subgraph group_workload["Workload engine"]
  node_scenarios["Scenario plans<br/>[scenarios.py]"]
  node_operations["Scheduled operations<br/>[op.py]"]
  node_profiles["Chat workload profiles<br/>[chat_profile.py]"]
  node_runconfig["Load configuration<br/>[config.py]"]
  node_runner["Load runner<br/>[runner.py]"]
  node_multiproc["Multi-process generation<br/>[multiproc.py]"]
end

subgraph group_adapters["Adapters"]
  node_contracts["Shared data contracts<br/>[common.py]"]
  node_longmemeval["LongMemEval dataset<br/>[longmemeval.py]"]
  node_nebius["Nebius dataset<br/>[nebius.py]"]
  node_synthetic["Synthetic dataset<br/>[synthetic.py]"]
  node_memmachine["MemMachine REST<br/>[memmachine.py]"]
  node_memmachine_mcp["MemMachine MCP<br/>[memmachine_mcp.py]"]
  node_mem0["Mem0 REST<br/>[mem0.py]"]
  node_supermemory["Supermemory REST<br/>[supermemory.py]"]
  node_rest["REST transport<br/>[rest.py]"]
  node_mcp["MCP transport<br/>[mcp.py]"]
end

subgraph group_measurement["Measurement"]
  node_recorder["Metrics recorder<br/>[recorder.py]"]
  node_aggregate["Result aggregation<br/>[aggregate.py]"]
  node_reports["JSON and CSV reports<br/>[report.py]"]
  node_timeseries["E2E time series<br/>[timeseries.py]"]
  node_servermetrics["Server metrics<br/>[server_metrics.py]"]
end

subgraph group_growth["Growth experiments"]
  node_growth["Memory-growth sweeps<br/>[memory_growth.py]"]
end

node_engineer(("Benchmark operator"))
node_target["LTM service"]
node_dataset_sources["Dataset sources"]

node_engineer -->|"runs commands"| node_cli
node_cli -->|"loads adapters"| node_config
node_config -->|"builds adapter"| node_longmemeval
node_config -->|"builds adapter"| node_nebius
node_config -->|"builds adapter"| node_synthetic
node_config -->|"builds adapter"| node_memmachine
node_config -->|"builds adapter"| node_mem0
node_config -->|"builds adapter"| node_supermemory
node_cli -->|"selects scenario"| node_scenarios
node_cli -->|"starts run"| node_runner
node_cli -->|"configures profile"| node_profiles
node_cli -->|"starts workers"| node_multiproc
node_cli -->|"runs sweeps"| node_growth
node_scenarios -->|"emits operations"| node_operations
node_scenarios -->|"uses profiles"| node_profiles
node_scenarios -->|"reads turn stream"| node_longmemeval
node_runner -->|"executes plans"| node_operations
node_runner -->|"records results"| node_recorder
node_runner -->|"drives requests"| node_target
node_runner -.->|"loads user data"| node_longmemeval
node_runner -.->|"loads user data"| node_nebius
node_runner -.->|"loads user data"| node_synthetic
node_memmachine -->|"sends requests"| node_rest
node_mem0 -->|"sends requests"| node_rest
node_supermemory -->|"sends requests"| node_rest
node_memmachine_mcp -->|"uses transport"| node_mcp
node_memmachine_mcp -->|"manages lifecycle"| node_rest
node_memmachine -->|"calls API"| node_target
node_longmemeval -.->|"loads dataset"| node_dataset_sources
node_nebius -.->|"loads trajectories"| node_dataset_sources
node_recorder -->|"aggregates results"| node_aggregate
node_aggregate -->|"reads outcomes"| node_operations
node_cli -->|"summarizes run"| node_aggregate
node_cli -->|"writes reports"| node_reports
node_cli -->|"records intervals"| node_timeseries
node_cli -->|"captures metrics"| node_servermetrics

click node_cli "https://github.com/skhynix/ltm100/blob/main/ltm100/cli.py"
click node_config "https://github.com/skhynix/ltm100/blob/main/ltm100/config.py"
click node_contracts "https://github.com/skhynix/ltm100/blob/main/ltm100/common.py"
click node_scenarios "https://github.com/skhynix/ltm100/blob/main/ltm100/core/scenarios.py"
click node_operations "https://github.com/skhynix/ltm100/blob/main/ltm100/core/op.py"
click node_profiles "https://github.com/skhynix/ltm100/blob/main/ltm100/core/chat_profile.py"
click node_runconfig "https://github.com/skhynix/ltm100/blob/main/ltm100/core/config.py"
click node_runner "https://github.com/skhynix/ltm100/blob/main/ltm100/core/runner.py"
click node_multiproc "https://github.com/skhynix/ltm100/blob/main/ltm100/core/multiproc.py"
click node_longmemeval "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/datasets/longmemeval.py"
click node_nebius "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/datasets/nebius.py"
click node_synthetic "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/datasets/synthetic.py"
click node_memmachine "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/backends/memmachine.py"
click node_memmachine_mcp "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/backends/memmachine_mcp.py"
click node_mem0 "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/backends/mem0.py"
click node_supermemory "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/backends/supermemory.py"
click node_rest "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/transports/rest.py"
click node_mcp "https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/transports/mcp.py"
click node_recorder "https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/recorder.py"
click node_aggregate "https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/aggregate.py"
click node_reports "https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/report.py"
click node_timeseries "https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/timeseries.py"
click node_servermetrics "https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/server_metrics.py"
click node_growth "https://github.com/skhynix/ltm100/blob/main/ltm100/core/memory_growth.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_config toneBlue
class node_scenarios,node_operations,node_profiles,node_runconfig,node_runner,node_multiproc toneAmber
class node_contracts,node_longmemeval,node_nebius,node_synthetic,node_memmachine,node_memmachine_mcp,node_mem0,node_supermemory,node_rest,node_mcp toneMint
class node_recorder,node_aggregate,node_reports,node_timeseries,node_servermetrics toneRose
class node_growth,node_engineer,node_target,node_dataset_sources toneIndigo
```

## Components

### Run control

- [CLI commands](https://github.com/skhynix/ltm100/blob/main/ltm100/cli.py): `ltm100/cli.py`
- [YAML adapter registry](https://github.com/skhynix/ltm100/blob/main/ltm100/config.py): `ltm100/config.py`

### Workload engine

- [Scenario plans](https://github.com/skhynix/ltm100/blob/main/ltm100/core/scenarios.py): `ltm100/core/scenarios.py`
- [Scheduled operations](https://github.com/skhynix/ltm100/blob/main/ltm100/core/op.py): `ltm100/core/op.py`
- [Chat workload profiles](https://github.com/skhynix/ltm100/blob/main/ltm100/core/chat_profile.py): `ltm100/core/chat_profile.py`
- [Load configuration](https://github.com/skhynix/ltm100/blob/main/ltm100/core/config.py): `ltm100/core/config.py`
- [Load runner](https://github.com/skhynix/ltm100/blob/main/ltm100/core/runner.py): `ltm100/core/runner.py`
- [Multi-process generation](https://github.com/skhynix/ltm100/blob/main/ltm100/core/multiproc.py): `ltm100/core/multiproc.py`

### Adapters

- [Shared data contracts](https://github.com/skhynix/ltm100/blob/main/ltm100/common.py): `ltm100/common.py`
- [LongMemEval dataset](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/datasets/longmemeval.py): `ltm100/adapters/datasets/longmemeval.py`
- [Nebius dataset](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/datasets/nebius.py): `ltm100/adapters/datasets/nebius.py`
- [Synthetic dataset](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/datasets/synthetic.py): `ltm100/adapters/datasets/synthetic.py`
- [MemMachine REST](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/backends/memmachine.py): `ltm100/adapters/backends/memmachine.py`
- [MemMachine MCP](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/backends/memmachine_mcp.py): `ltm100/adapters/backends/memmachine_mcp.py`
- [Mem0 REST](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/backends/mem0.py): `ltm100/adapters/backends/mem0.py`
- [Supermemory REST](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/backends/supermemory.py): `ltm100/adapters/backends/supermemory.py`
- [REST transport](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/transports/rest.py): `ltm100/adapters/transports/rest.py`
- [MCP transport](https://github.com/skhynix/ltm100/blob/main/ltm100/adapters/transports/mcp.py): `ltm100/adapters/transports/mcp.py`

### Measurement

- [Metrics recorder](https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/recorder.py): `ltm100/metrics/recorder.py`
- [Result aggregation](https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/aggregate.py): `ltm100/metrics/aggregate.py`
- [JSON and CSV reports](https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/report.py): `ltm100/metrics/report.py`
- [E2E time series](https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/timeseries.py): `ltm100/metrics/timeseries.py`
- [Server metrics](https://github.com/skhynix/ltm100/blob/main/ltm100/metrics/server_metrics.py): `ltm100/metrics/server_metrics.py`

### Growth experiments

- [Memory-growth sweeps](https://github.com/skhynix/ltm100/blob/main/ltm100/core/memory_growth.py): `ltm100/core/memory_growth.py`

### Other components

- **Benchmark operator**
- **LTM service**
- **Dataset sources**

## Connections

- Benchmark operator → CLI commands: runs commands (evidence: `README.md`)
- CLI commands → YAML adapter registry: loads adapters (evidence: `ltm100/cli.py`)
- YAML adapter registry → LongMemEval dataset: builds adapter (evidence: `ltm100/config.py`)
- YAML adapter registry → Nebius dataset: builds adapter (evidence: `ltm100/config.py`)
- YAML adapter registry → Synthetic dataset: builds adapter (evidence: `ltm100/config.py`)
- YAML adapter registry → MemMachine REST: builds adapter (evidence: `ltm100/config.py`)
- YAML adapter registry → Mem0 REST: builds adapter (evidence: `ltm100/config.py`)
- YAML adapter registry → Supermemory REST: builds adapter (evidence: `ltm100/config.py`)
- CLI commands → Scenario plans: selects scenario (evidence: `ltm100/cli.py`)
- CLI commands → Load runner: starts run (evidence: `ltm100/cli.py`)
- CLI commands → Chat workload profiles: configures profile (evidence: `ltm100/cli.py`)
- CLI commands → Multi-process generation: starts workers (evidence: `ltm100/cli.py`)
- CLI commands → Memory-growth sweeps: runs sweeps (evidence: `ltm100/cli.py`)
- Scenario plans → Scheduled operations: emits operations (evidence: `ltm100/core/scenarios.py`)
- Scenario plans → Chat workload profiles: uses profiles (evidence: `ltm100/core/scenarios.py`)
- Scenario plans → LongMemEval dataset: reads turn stream (evidence: `ltm100/core/scenarios.py`)
- Load runner → Scheduled operations: executes plans (evidence: `ltm100/core/runner.py`)
- Load runner → Metrics recorder: records results (evidence: `ltm100/core/runner.py`)
- Load runner → LTM service: drives requests (evidence: `README.md`)
- Load runner → LongMemEval dataset: loads user data
- Load runner → Nebius dataset: loads user data
- Load runner → Synthetic dataset: loads user data
- MemMachine REST → REST transport: sends requests (evidence: `ltm100/adapters/backends/memmachine.py`)
- Mem0 REST → REST transport: sends requests (evidence: `ltm100/adapters/backends/mem0.py`)
- Supermemory REST → REST transport: sends requests (evidence: `ltm100/adapters/backends/supermemory.py`)
- MemMachine MCP → MCP transport: uses transport (evidence: `ltm100/adapters/backends/memmachine_mcp.py`)
- MemMachine MCP → REST transport: manages lifecycle (evidence: `ltm100/adapters/backends/memmachine_mcp.py`)
- MemMachine REST → LTM service: calls API (evidence: `ltm100/adapters/backends/memmachine.py`)
- LongMemEval dataset → Dataset sources: loads dataset
- Nebius dataset → Dataset sources: loads trajectories
- Metrics recorder → Result aggregation: aggregates results (evidence: `ltm100/metrics/recorder.py`)
- Result aggregation → Scheduled operations: reads outcomes (evidence: `ltm100/metrics/aggregate.py`)
- CLI commands → Result aggregation: summarizes run (evidence: `ltm100/cli.py`)
- CLI commands → JSON and CSV reports: writes reports (evidence: `ltm100/cli.py`)
- CLI commands → E2E time series: records intervals (evidence: `ltm100/cli.py`)
- CLI commands → Server metrics: captures metrics (evidence: `ltm100/cli.py`)
