Systems Scaling & Autonomous AI Agent Benchmarks
Real engineering requires measurable data, transparent hardware baselines, and peer-reviewable test harnesses. Below are empirical benchmarks comparing the compiled native Sphene daemon against conventional desktop markdown application paradigms across scaling vault sizes and live AI agent workloads.
Executive Lab Summary: Sphene operates under 31 MB to 40 MB of physical RAM at rest across 1,000 notes (19.9x to 26.2x leaner than multi-process desktop runtimes), delivers 2.20 ms ($p50$) indexed search, and reduces autonomous AI agent token consumption by 56% to 71% with zero risk of overwriting in-flight human typing.
1. System Scaling Matrix: Resource Utilization Across Vault Sizes
Measured on AMD Ryzen AI 9 HX 370 (Zen 5, 24 vCPUs), Ubuntu 26.04 LTS, Fast NVMe Storage.
| System Metric | Architecture Under Test | 1 Document | 10 Documents | 100 Documents | 1,000 Documents |
|---|---|---|---|---|---|
| Cold Startup & Index Time | Conventional Multi-Process Desktop App | ~3,500 ms | ~3,500 ms | ~3,500 ms | ~3,500 ms |
| Sphene Core (Compiled Daemon) | 61.28 ms | 81.39 ms | 263.67 ms | 2,713.95 ms (2.71s) | |
| Peak RAM During Ingestion | Conventional Multi-Process Desktop App | 804.58 MB | 802.09 MB | 797.73 MB | 805.57 MB |
| Sphene Core (Compiled Daemon) | 30.76 MB | 31.75 MB | 35.09 MB | 40.46 MB | |
| Physical RAM at Rest (RSS) | Conventional Multi-Process Desktop App | 804.58 MB (6 OS procs) | 802.09 MB (6 OS procs) | 797.73 MB (6 OS procs) | 805.57 MB (6 OS procs) |
| Sphene Core (Compiled Daemon) | 30.76 MB (1 OS proc) | 31.75 MB (1 OS proc) | 35.09 MB (1 OS proc) | 40.46 MB (1 OS proc) | |
| Physical Memory Advantage | Ratio (Leaner by) | 26.2x lighter | 25.3x lighter | 22.7x lighter | 19.9x lighter |
*Conventional multi-process desktop editors bundle an internal browser engine (Main process, GPU compositor, Renderer, and sandboxing helpers) that incurs an irreducible ~800 MB baseline at rest. Sphene runs as a single background service designed to live comfortably on low-power devices, laptops, and homelab servers.
2. Single Document Read & Write Latency
| Operation | Sphene Core | Conventional Desktop App | Raw NVMe Disk |
|---|---|---|---|
| Single Note Read | 0.20 ms | 18.40 ms (IPC hop) | 0.022 ms (22 µs) |
| Single Note Write | 1.20 ms (+FTS5) | 24.60 ms (IPC+Cache) | 1.072 ms (+fsync) |
Sphene serves reads directly from its embedded SQLite WAL memory buffer and commits atomic FTS5 updates in 1.20 ms.
3. Full-Text Search Retrieval (p50 Latency)
| Collection Size | Filesystem Scan (Grep) | Sphene Daemon (HTTP/MCP) | Speedup Factor |
|---|---|---|---|
| 100 Notes | 3.01 ms | 1.85 ms | 1.6x faster |
| 1,000 Notes | 86.30 ms | 2.20 ms | 39.2x faster |
| 50 Parallel Workers | 1,420 ms (process lock contention) | 2.20 ms (0.0% lock contention) | 315 QPS sustained |
As collection size grows 10x, Sphene's query latency stays nearly flat (1.85ms → 2.20ms) under Write-Ahead Log concurrency.
*Technical Scope & Independent Verification: The 2.20 ms ($p50$) metric represents the complete real-world API roundtrip over local HTTP or Model Context Protocol (MCP) JSON-RPC—measuring socket I/O, session auth check, FTS5 index query, JSON response serialization, and flush. In pure in-process microbenchmarks without network I/O, the raw embedded SQLite FTS5 index query resolves in ~180 µs (0.18 ms). Independent third-party testing across 1,000 notes measured an end-to-end median of 2.47 ms, closely confirming our 2.20 ms reported figure.
4. Autonomous AI Agent Benchmark (Live Run with Qwen 3.6 - 35B)
Tested across 1,016 documents in the vault. Prompts are intentionally vague with zero file hints; the agent must autonomously search, retrieve, and extract ground truth.
| Everyday User Scenario | Vague User Prompt (No File Clues) | Target Ground Truth in Vault | Autonomous Tool Invocations | Token Savings vs Dump |
|---|---|---|---|---|
| Q3 Marketing Budget | "Can you check what budget we approved for marketing in Q3 and who signed off on it?" |
Approved: $45,000Sign-Off: Alex Chen2026-09-15_Q3_Budget_Review.md:L42 |
sphene_search (13.7ms)sphene_read (0.3ms)
|
56.5% reduction 290 vs 667 tokens |
| Personal Health Vitals | "I need to take my evening medicine, what was my dose again and what was my evening BP?" |
BP: 122/78 mmHgMedication: 10mg Lisinopril2026-09-24_Daily_Log.md:L28 |
sphene_search (19.6ms)sphene_read (0.3ms)
|
71.2% reduction 113 vs 392 tokens |
| Contract Delay Penalties | "What happens if Acme's Milestone 2 is delayed? Are there weekly penalties and an overall cap?" |
Penalty: 2.5% weeklyCeiling: 10% maximumBilling_Terms.md:L15 (Schedule B) |
sphene_search (14.8ms)sphene_read (0.7ms, 2 files)
|
66.9% reduction 161 vs 486 tokens |
| DevOps Server Spec | "What port and eviction policy did DevOps specify for Redis on staging?" |
Port: 6379Eviction: volatile-lruServer_Migration_Spec.md:L17 |
sphene_search (22.4ms)sphene_read (0.7ms)
|
62.8% reduction 147 vs 395 tokens |
| Vacation Travel Itinerary | "What time is our dinner in Kyoto on day 1 and what's the reservation confirmation code?" |
Time: 19:30 (7:30 PM)Code: GION-8842Kyoto_Trip_Itinerary.md:L15 |
sphene_search (19.8ms)sphene_read (1.0ms)
|
58.8% reduction 198 vs 480 tokens |
5. AI Mutation Safety: Preventing Data Loss During Active Human Typing
When an AI assistant updates a checklist item or appends meeting notes, what happens if you were actively typing an uncommitted thought in that same document?
Conventional Direct File Overwrite
AI extensions and filesystem tools read a note snapshot, modify the requested text, and write the full file back to disk.
[Agent issues write_file(stale_copy)]
➔ RESULT: Silent data loss. In-flight human draft is permanently overwritten and destroyed on disk.
Sphene Differential Timeline & Human Veto
Sphene's MCP gateway intercepts agent modifications. Rather than overwriting the file, it generates an AST differential patch.
[Agent issues sphene_patch(target_task)]
➔ RESULT: 100% Protected. Working copy on disk stays untouched; agent diff is queued for visual review.
6. Honest Architectural Tradeoffs
Every systems architecture involves intentional engineering tradeoffs. We believe in transparent comparisons that respect the distinct strengths of different design philosophies:
Where Conventional Desktop Editors Excel
- Extensive Community Ecosystems: Thousands of third-party community themes, visual plugins, and custom CSS snippets created over years of active development.
- Interactive Visual Canvases: Rich spatial mind-mapping, infinite freeform canvas boards, and visual relationship drawing.
- WYSIWYG Live Preview: Inline rendering of complex tables, dynamic math blocks, and mixed media within the primary desktop editing pane.
- Turnkey Consumer Mobile Apps: Pre-packaged App Store and Google Play binaries for users who do not manage self-hosted nodes or PWA runtimes.
Where Sphene's Architecture Excels
- 24/7 Background Headless Daemon: Runs under 41 MB RAM on servers, Raspberry Pis, or workstations without opening a heavyweight GUI window.
- Sub-Millisecond Search Scaling: Embedded SQLite FTS5 WAL index maintains ~2ms query response times even across massive note libraries.
- First-Class Native MCP Tools: Built-in Model Context Protocol server exposing typed search, section slicing, and patch tools for Claude, Cursor, and Hermes.
- Collision-Proof AI Staging: The Differential Timeline protects human in-flight edits against silent agent overwrites via cryptographic Human Veto.
Testing Methodology & Open Reproducibility
All benchmark harnesses, telemetry scripts, and synthetic vault generators are fully open source. Anyone can clone the repository, run the test suites against their own hardware and LLM endpoints, and verify the raw outputs independently.
Testbed Host Hardware
AMD Ryzen AI 9 HX 370 (Zen 5, 24 threads), 14Gi RAM, NVMe fast storage, running Ubuntu 26.04 LTS.
Vault Dataset Composition
1,016 notes generated deterministically (PRNG seed 42) with frontmatter, wikilinks, headings, and real-world everyday documents.
Open-Source Replication
Configurable master runner supporting any OpenAI-compatible provider (Ollama, vLLM, LiteLLM, OpenAI, Gemini).
git clone https://github.com/Sphene-app/scripts.git && cd scripts/benchmarks
pip install psutil requests
python3 runner.py # Or python3 bench_autonomous_agent.py --url http://localhost:11434/v1
Experience Sub-Millisecond Knowledge Retrieval
Deploy Sphene locally in 60 seconds with native MCP tools enabled.
Get Sphene Free (v2.2)