Metadata-Version: 2.4
Name: nodebudget-vps-bench
Version: 1.1.0
Summary: Zero-dependency Linux VPS & mini PC benchmark CLI measuring non-cached 4K fsync tail latency (P50/P95/P99/Max) and 12-worker SQLite DELETE vs WAL concurrency for n8n, PostgreSQL, and AI agents.
Author-email: Yuanqiang Leng <hello@lyq705.com>
License-Expression: MIT
Project-URL: Homepage, https://nodebudget.dev/
Project-URL: Documentation, https://nodebudget.dev/benchmarks/
Project-URL: Repository, https://github.com/a895047059/nodebudget-vps-bench
Project-URL: Cost & Break-Even Calculator, https://nodebudget.dev/tools/llm-api-vs-local-vs-gpu/
Project-URL: VRAM & Mini PC Fit Checker, https://nodebudget.dev/tools/local-llm-vram-mini-pc-checker/
Project-URL: Bug Tracker, https://github.com/a895047059/nodebudget-vps-bench/issues
Keywords: vps,benchmark,fsync,sqlite,n8n,self-hosted,ai-agents,postgresql,homelab
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Benchmark
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# nodebudget-vps-bench

Zero-dependency Python 3 benchmark CLI built by [NodeBudget](https://nodebudget.dev/) to measure what **actually** matters for self-hosted **n8n**, **OpenClaw**, **LiteLLM**, **PostgreSQL 16**, and **24/7 AI Agents** on budget KVM VPS nodes and local mini PCs.

> Why? Because cached `dd if=/dev/zero` benchmarks measure RAM page cache, not durable PostgreSQL WAL commits or multi-tenant noisy-neighbor tail spikes.

## Install & Quick Run (Zero Dependencies)

Install via pip (or run directly with Python 3):

```bash
pip install nodebudget-vps-bench
nodebudget-bench --ops 500 --workers 12
```

Or run directly in 15 seconds without installing anything:

```bash
curl -fsSL https://raw.githubusercontent.com/a895047059/nodebudget-vps-bench/main/nb_bench.py | python3 -
```

Machine-readable JSON output for CI or fleet audits:

```bash
nodebudget-bench --ops 500 --workers 12 --json
```

## Reference Measurements (Live 3-vCPU Xeon E5-2680 v4 · Linux 6.8 KVM)

| Metric | Measured Result | Engineering Takeaway |
| --- | --- | --- |
| Non-cached 4K random `pwrite` + `fsync` (500 ops) | **P50 `0.659 ms` · P99 `1.289 ms` · Max `7.692 ms`** | Noisy-neighbor tail spike is 11.7× median; harmless to Postgres WAL, fatal to SQLite locks |
| 12-worker webhook burst — SQLite `DELETE` | **64 / 300 failed (`21.3%` `SQLITE_BUSY`)** | Silent webhook drops under modest concurrency |
| 12-worker webhook burst — SQLite `WAL` | **32 / 300 failed (`10.7%` `SQLITE_BUSY`)** | Even WAL fails >10% of concurrent 4 KB writes |
| Live PostgreSQL 16 (same node) | **0% lock failures · `31 MB` primary idle RSS** | Always use PostgreSQL 16 for self-hosted n8n & LiteLLM |

## Interactive Engineering Tools & Decision Specs (NodeBudget)

- **Claude Max ($100/$200) Worth-It Calculator**: https://nodebudget.dev/tools/claude-max-worth-it-calculator/
- **Local LLM VRAM & Mini PC Fit Checker**: https://nodebudget.dev/tools/local-llm-vram-mini-pc-checker/
- **MCP Token Overhead & LiteLLM VPS Payback Calculator**: https://nodebudget.dev/tools/mcp-token-overhead-calculator/
- **LLM API vs On-Demand GPU Cloud vs Local AI Box Calculator**: https://nodebudget.dev/tools/llm-api-vs-local-vs-gpu/
- **10 Hardware & Agent VPS Decision Spec Sheets**: https://nodebudget.dev/specs/
- **Interactive 6-Way VPS Cost & 1-Click Docker Compose Builder**: https://nodebudget.dev/
- **Full 4K fsync Tail Latency & SQLite Lock Study**: https://nodebudget.dev/guides/why-cheap-vps-benchmarks-lie/
- **First-Party Linux 6.8 Telemetry JSON Dataset**: https://nodebudget.dev/benchmarks/2026-11-telemetry.json

## License

MIT
