Agentra LabsAgentra Labs DocsPublic Documentation

AgenticTime

Benchmarks

Performance characteristics of AgenticTime operations.

Performance characteristics of AgenticTime operations.

Test Environment

ComponentValue
HardwareApple M2, 16 GB RAM
OSmacOS 14
Rust1.77 (stable, release build)
File format.atime (MessagePack encoded)
Date/time librarychrono (UTC throughout)

Core Operations

Operation100 entities1,000 entities10,000 entities
Open file0.3 ms1.2 ms8.5 ms
Add deadline0.02 ms0.02 ms0.03 ms
List deadlines (all)0.05 ms0.4 ms3.8 ms
List deadlines (filtered)0.03 ms0.2 ms1.5 ms
Update deadline0.02 ms0.02 ms0.03 ms
Remove deadline0.01 ms0.01 ms0.02 ms
Save file0.5 ms3.2 ms28 ms
Conflict detection0.1 ms0.8 ms7.2 ms
Decay query0.001 ms0.001 ms0.001 ms

Performance Tiers

Operations fall into three latency categories:

TierLatencyOperations
Constant-time<0.01 msSingle decay calculation, individual entity lookup by ID
Linear-scan0.1-8 msFiltered list queries, conflict detection, overdue checks
I/O-bound0.5-28 msFile open, file save (scales with entity count and payload size)

Decay calculations are O(1) regardless of entity count because they are pure mathematical functions evaluated at a single point in time. List operations scale linearly with entity count. File I/O scales with the total serialized payload size.

MCP Tool Latency

End-to-end latency for MCP tool calls (including JSON-RPC overhead):

Toolp50p99
time_deadline_add0.3 ms1.2 ms
time_deadline_list0.5 ms4.5 ms
time_schedule_conflicts0.9 ms8.0 ms
time_stats0.1 ms0.3 ms
time_decay_query0.05 ms0.1 ms

File Size

Entity CountFile Size
10012 KB
1,00098 KB
10,000920 KB
100,0009.1 MB

File sizes are compact due to MessagePack encoding. Each entity contributes roughly 80-100 bytes on average depending on tag count and label length.

Memory Usage

Entity CountRSS
1004 MB
1,0006 MB
10,00018 MB
100,000142 MB

Concurrent Access

ScenarioThroughput
Sequential reads50,000 ops/sec
Sequential writes12,000 ops/sec
4 concurrent readers180,000 ops/sec
2 readers + 1 writer35,000 ops/sec

Write throughput is limited by file locking and save operations. Read throughput scales well with concurrent readers since all queries operate on in-memory data structures.

Comparison

AgenticTime vs. common alternatives for temporal data:

FeatureAgenticTimeSQLite + schemaJSON file
Structured temporal typesNativeManualManual
Conflict detectionBuilt-inQuery-basedManual
Decay curvesBuilt-in (5 types)Not availableManual
File portabilitySingle fileSingle fileSingle file
Concurrent accessLock + mergeWALNo safety
MCP integrationNativeManualManual
Typical query latency< 1 ms1-5 ms10-100 ms

Reproducing Benchmarks

To reproduce these numbers on your own hardware:

# Clone and build
git clone https://github.com/agentralabs/agentic-time
cd agentic-time

# Run the benchmark suite
cargo bench --package agentic-time

# Run the stress tests
cargo test --package agentic-time --test stress_tests -- --nocapture

# Quick validation
cargo test --workspace
cargo build --release
agentic-time-mcp info

Results depend on hardware, background load, and entity count. Numbers above reflect a quiet system with release builds and LTO enabled.