jouledb 0.27.0

Energy-metered multi-model Rust database (0.27.0 pre-1.0 preview) — WorldCommit + In-Process WASI Sandbox & Zero-Daemon NFSv3/WebDAV CoW Mounts, 64-Shard Lock-Free OLTP, ALP+FSST .jcol Analytics, and NVMe Double-Entry Ledger. `cargo binstall jouledb` fetches the binary.
jouledb-0.27.0 is not a library.

JouleDB (v0.27.0 — Pre-1.0 Research Preview)

An experimental energy-metered multi-model database, Post-Git version control engine, and capability sandbox in Rust (Apache-2.0 OR MIT) unifying WorldCommit (Database ≡ Capability OS ≡ Post-Git VCS: 0.133 ms BLAKE3 CoW FORK WORLD, 0.318 ms 4-sort algebraic MERGE WORLD, 2.58 ms 8-candidate counterfactual WORLD TOURNAMENT SNAPSHOT [0.322 ms/candidate, (score, energy_uj) Pareto selection + single-winner 4-sort merge, 7.36× faster & 7.39× less RAPL J than 8-way POSIX /bin/sh] + 7.36 ms 8-way WORLD FANOUT SNAPSHOT + 0.042 ms WORLD DIFF SNAPSHOT + 0.539 ms dual-branch REPLAY WORLD VERIFY SNAPSHOT + 0.140–0.246 ms Wasm snapshot resume [16.0× sparse CoW] + 0.110 ms cached WASI + 0.134 ms transactional jouledb_env .wasm sandbox, 2.85 GiB/s loopback NFSv3 [RFC 1813] + 0.089 ms RFC 4918 WebDAV, & 9 sys_world_* SQL tables), Lossless FastLanes JFL2 + ALP + FSST .jcol Columnar Analytics (7.45× compression [86.6% smaller] scanning at 185.3M–243.0M rows/s, 100M ClickBench in 139.2 MB RSS, 22 / 22 TPC-H SF=1.0 in 894.6 ms [774.9 ms / 3.09× peak, 3.27× geomean, all-time lowest 338.3 MB VmHWM] & SF=10.0 [86.6M rows] in 5.77 s [4.66 s / 4.25× geomean peak, all-time lowest 1.10 GB VmHWM, Q04: 1.40×, Q18: 1.91×, Q22: 2.05×, Q03: 2.93×]), Academic Frontier SQL (SIGMOD'24 RaBitQ USING rabitq [18.29×–32×, 1.000 Precision@10], 271.7×–293.8× faster CSR-Leapfrog WCOJ, 0.089 ms VLDB'23 DBSP ZSet, 0.159 ms .jcol Q15 VIEW pushdown), Core Banking & HOT Sharded SSI OLTP (4 / 4 Banking NVMe sweep vs PostgreSQL 16.16 [9.21× c=1 .. 91.3k–104.7k TPS batch=500] + 6,312–7,117 TPS [4.96×–5.81×] c=1 Simple, 7,893–9,918 TPS [2.82×–3.93×] c=4 Simple, 8,103 TPS [95.7% of PG16] c=16 Simple, 2,837 TPS [1.56×] c=1 Pipeline, 3,910 TPS c=4 Pipeline, & 7,750–9,107 TPS c=16 Pipeline on 100-warehouse NVMe pgwire OLTP), Full-Stack Agentic AI (0.277 ms CoW dry-runs, JouleRoute 2.93 ms live 429 failover + 98k–106k docs/s /v1/rerank, Kinetic Ontology, 83-tool MCP Studio), pgwire 0-xfail, and 5-node WAN elle-verified TCP Raft.

Release Quality Docs crates.io Hugging Face Embedder Website

Pre-1.0 Status & v0.27.0 Release Summary (2026-11-30): Building on our v0.6.0 external-audit remediation (v1.0.0 GA tag retracted/yanked, unrelated 1.11M-LOC joule-web crate and synthetic frontier_exam_routes.rs deleted, 81 unverified low-BPW causal LLM exports pruned from Hugging Face) and v0.7.0–v0.26.0 upgrades, v0.27.0 ships in-database counterfactual branch tournaments (WORLD TOURNAMENT SNAPSHOT + sys_world_tournaments: 8-candidate parallel Wasm snapshot resume + isolated SCORE SQL + (score, energy_uj) Pareto selection + single-winner 4-sort MERGE WORLD ... STRICT + 7-loser evaporation in 2.5771 ms p50 [0.322 ms/candidate, 7.36× faster & 7.39× less RAPL J than 8-way POSIX /bin/sh], 83 SOTA MCP tools), non-recursive stack bytecode FlatVColF64Prog + dictionary-mask CASE WHEN JoinFlatNumProg + bounded par_chunks driving TPC-H SF=10.0 (86.6M rows) & SF=1.0 (8.66M rows) to all-time lowest peak VmHWM (1,103.7 MB [1.10 GB] & 338.3 MB) and all-time best query ratios (Q04: 1.40×, Q18: 1.91×, Q03: 2.93×; 1M-row Q14 promo join in 4.12 ms [243.0M rows/s]), and PostgreSQL HOT-style deferred secondary index maintenance (DeferredSecOp) + chronological u64::MAX - pid WAL recovery fix delivering 6,312.0 TPS (4.96× vs PG16, 4.31× less J/txn) c=1 Simple, 7,892.9 TPS (2.82× vs PG16, 2.57× less J/txn) c=4 Simple, 7,749.5 TPS (+125% over v0.26.0, 0 errors) c=16 Pipeline, & 5,390.3 TPS c=16 high-skew HOT contention:

  • Counterfactual Branch Tournaments, Speculative Fan-Out, Diff & Replay Attestation (world_commit.rs, world_mount.rs, v027_sota_triad_bench.json, v026_sota_triad_bench.json): Evaluates K=8 counterfactual Wasm strategies mutating the same PRIMARY KEY, computes (score, energy_uj) Pareto non-dominance (pareto_count = 3), merges only the winning branch via 4-sort MERGE WORLD ... STRICT, and evaporates all 7 losers in 2.5771 ms p50 (0.3221 ms/candidate, 35.92 mJ/candidate — 7.36× faster & 7.39× lower RAPL J than 8-way POSIX /bin/sh, and 2.86× faster than 8-way blind merge fan-out) across 83 SOTA MCP tools and 9 sys_world_* SQL virtual tables (sys_world_tournaments).
  • Bytecode FlatVColF64Prog + Dictionary-Mask CASE WHEN Joins + Bounded par_chunks -> All-Time Lowest 1.10 GB SF=10.0 & 338.3 MB SF=1.0 VmHWM (columnar_exec.rs, columnar_join.rs, tpch_sf10_v027.json, tpch_sf1_v027.json): Cuts 86.6M-row TPC-H SF=10.0 to all-time lowest 665.1 MB post-load RSS & 1,103.7 MB (1.10 GB) peak VmHWM in 5,771.3 ms (5.77 s — 3.18× faster wall-clock than v0.26.0; 4.66 s / 4.25× geomean peak; Q04: 1.40×, Q18: 1.91×, Q03: 2.93× all-time bests!), SF=1.0 to 894.6 ms sub-second total (3.27× geomean, 774.9 ms / 3.09× peak, all-time lowest 111.7 MB RSS & 338.3 MB VmHWM), and 1M-row Q14 dictionary-mask joins to 4.115 ms p50 (243.0M rows/s).
  • PostgreSQL HOT-Style Deferred Secondary Indexes (DeferredSecOp) + Pre-Lock rewrite_uncommitted (oltp_pgwire_v027.json, v027_sota_triad_bench.json): Coalesces hot-row secondary index mutations outside commit_lock & write_ram_only() with linearizable HoloLock::read_with_sec_settled catch-up, delivering 6,312.0 TPS (4.96× faster & 4.31× less J/txn than PG16) at c=1 Simple, 7,892.9 TPS (2.82× faster & 2.57× less J/txn) at c=4 Simple, 7,749.5 TPS (+125.0% over v0.26.0, 0 Pipeline errors across c=1..16) at c=16 Pipeline, and 5,390.3 TPS (6.39 ms linearizable post-burst settle) on c=16 hot-branch skew alongside 8,102.5 TPS c=16 Simple, 9,107.2 TPS c=16 Pipeline, 2,837.0 TPS c=1 Pipeline, & 3,910.3 TPS c=4 Pipeline records.
  • JouleRoute 4-Tier Quota Waterfall (93.0% RTK Log Compression, LSN LangCache) & Orthogonal Rank-96 Harness Super-Adapters (joule_route.rs, harness_super_adapter.rs): Combines BLAKE3+HMAC-SHA256 encrypted multi-tier routing (LangCache -> OAuth Sub -> Local .jsyn -> Free-Tier Pool -> Metered BYOK under ThermoCap budgets) with exact factorized $O((rows + cols) \cdot r_1 r_2)$ subspace orthogonality verification (cos = 0.0058 across Pi + OpenCode + Hermes Rank-32 adapters, composed to Rank-96 in 1.75 ms), two-pass O-LoRA Gram-Schmidt de-interference, .jsyn bitplane fusion, and AsyncGRPO TRL JSONL rollout export.
  • Open-Source Kinetic Ontology (OBJECT / LINK / ACTION), 99.18% Kiro Scoped Power Savings, 0.640 ms OpenCode SQL LSP & Lance Blob v2 + In-SQL AI_* (kinetic_ontology.rs, ducklake.rs, functions.rs): Wraps domain mutations in RBAC + compiled EARS (WHEN ... THE SYSTEM SHALL ...) preconditions with isolated CREATE BRANCH dry-runs (34.12 ms full 5-step simulation + DIFF BRANCH + teardown) and atomic FinancialLedger transfers (8.64 ms), adds 0.401 ms Seek+SHA-256 Lance Blob v2 multimodal slicing (4,089× I/O amplification avoided), and executes AI_EMBED, AI_SIMILARITY, AI_FILTER, AI_RANK, and AI_COMPLETE directly inside SQL.
  • 4 / 4 Regime Clean Sweep vs PostgreSQL 16.16 on Durable NVMe Core Banking LEDGER (financial_ledger.rs, pgwire.rs): Adaptive target_wave Condvar coalescing (0 ns wait at c=1) + pgwire block_in_place + 32 MiB pre-allocated JWL1 WAL extents beat PostgreSQL 16.16 (fsync=on) across every regime: c=1 3,424.5 TPS (9.21× faster, 4.81× less J/tx), c=4 1,412.7 TPS pgwire / 1,250.0 TPS HTTP (1.82× / 1.61× faster — flipping v0.15.0's c=4 loss), c=16 3,919.0 TPS pgwire (1.37× faster over identical psycopg3 TCP), and batch=500 91,316.1 TPS (1.69× faster; 104,721 TPS peak) with 930k+ SHA-256 chain entries verified valid = true.
  • 2.18× Faster TPC-H SF=10.0 (Q10 13.57× Faster!) & 42.4× Lower 100M ClickBench Post-Load RSS (columnar_join.rs, columnar_exec.rs): Primary-Key Functional-Dependency (PK-FD) group-by compression + 3-hop semi-join pushdown slash TPC-H SF=1.0 to 927.5 ms (3.61× geomean, Q10: 49.8 ms [8.02× faster]) and SF=10.0 to 7.44 s (6.41× geomean, Q10: 342.8 ms [13.57× faster], Q21: 573.2 ms [3.75× faster]), while zero-Arc<str> .jcol filters & inline HKey::K4/K5 cut 100M ClickBench post-load RSS to 139.2 MB (9.45 GB VmHWM), win 8 / 43 queries vs DuckDB 2.0.1, and slash Q39 3.05× (297.0 ms) & Q32 4.04× (1,467.5 ms).
  • Decoupled Lock-Free WalManager OLTP (3.25× Faster c=1, 1.94× Faster c=4, 6,365 TPS c=16) + LTCB Joules-per-Bit Pareto Suite (wal.rs, ltcb_energy_pareto.py): Moving WAL serialization & fdatasync outside AmorphicStore's write lock lifts 100-warehouse NVMe pgwire OLTP to 3,698.0 TPS (c=1 Simple, 3.25× vs PG16), 5,069.3 TPS (c=4 Simple, 1.94× vs PG16), 2,486.1 TPS (c=4 Pipelined, 1.04× vs PG16), and 6,364.8 TPS (c=16 Pipelined), alongside 0.553 ms CREATE BRANCH and live RAPL enwik8/enwik9 Joules-per-Bit measurements (2.83 nJ/bit & 5.41 ms SQL seekability vs tufazip v2's ~157.5M nJ/bit & 7.29-day sequential decode). See CHANGELOG.md.

What Is Real & Verified Today (41 Workspace Crates · 798.7k LOC · 12,360 Tests · 41 / 41 deny(unwrap_used) · 83 MCP Tools)

  1. Core Storage, Exact Decimal128, Adaptive Group-Committed JWL1 Banking Ledger & 64-Shard SSI (joule-db-core, joule-db-local, joule-db-amorphic, joule-db-server):
    • Copy-on-Write B-tree pages, Cahill Serializable Snapshot Isolation (SSI), 64-shard MvccStore + MvccTableStorage (JMVR\x01, zero-clone single-row JWB1, JWU1 delta NVMe WAL with WalManager::log_atomic_tx_fast decoupled outside RwLockWriteGuard), exact 128-bit fixed-point NUMERIC(38, s) (Decimal128), SQL-native double-entry FinancialLedger (32 MiB pre-allocated JWL1 binary CRC-32 WAL, adaptive target_wave Condvar coalescer, pgwire ledger_transfer() / ledger_transfer_batch(), i128 minor units, multi-leg conservation, two-phase holds, idempotency_key, SHA-256 financial_ledger.jwal, virtual tables jouledb_ledger_*), SELECT ... FOR UPDATE [NOWAIT | SKIP LOCKED], ALP + FSST codecs, and RaBitQ 1-bit POPCNT vectors.
  2. Sub-Millisecond (0.553 ms) Lazy CoW SQL Branching, Native pgvector HNSW SQL, Durable WORKFLOW Checkpoints & 59-Tool Claude/MCP Apps Host (sql_branch_sandbox.rs, mcp_app_ui.rs, mcp_transport.rs):
    • Sub-millisecond (0.553 ms Linux / 0.432 ms macOS) session-isolated SQL branches (CREATE/USE/DIFF/MERGE BRANCH with demand-driven table materialization & 3-way 40001 conflict checks), PostgreSQL pgvector SQL (VECTOR(dim), <->/<=>/<#>, USING hnsw), strict agent blast-radius guardrails (42501 DDL/unbounded-write blocks + 53200 microjoule caps), crash-proof WORKFLOW CHECKPOINT/RESUME, and native SEP-1865 JouleDB Studio (ui://jouledb/studio.html) over jouledb mcp (stdio) and POST /mcp (59 tools).
  3. Out-of-Core .jcol Columnar Analytics, PK-FD Multi-Table TPC-H Joins & pgwire (joule-db-query, joule-db-server):
    • PostgreSQL v3 wire listener (block_in_place, psql, psycopg3 12/12, SQLAlchemy 2 4/4, node-pg 5/5, JDBC 7/7), owned-batch streaming Parquet COPY spilling 262,144-row .jcol disk segments (139.2 MB post-load RSS at 100M ClickBench rows; 754.9 MB post-load RSS & 4.26 GB peak VmHWM at 86.6M TPC-H rows), execute_segmented (43 / 43 Official ClickBench at 100M rows with zero-Arc<str> eval_raw_text_filter & inline HKey::K4/K5), columnar_join (22 / 22 Official TPC-H at SF=0.1, 1.0 [0.93 s], & 10.0 [7.44 s] with PK-FD group-by key compression, 3-hop KeyIn semi-join pushdown, 64-shard NeqExists, and CompactNumAgg), and DBSP ZSet<T> incremental views.
  4. 5-Node Multi-Host WAN & Local TCP Raft Consensus (raft.rs, raft_transport.rs, examples/raft_wan_node.rs):
    • Quorum write commit via RaftNode::propose_and_commit (§5.4.2), quorum linearizable reads via RaftNode::read_linearizable (§6.4 ReadIndex heartbeat quorum, zero WAL growth), CRC-32 raft.wal crash recovery, and both multi-host Tailscale WAN (27.58 ms RTT + SIGKILL) and local 20-link fault-injection suites verified {:valid? true} by official Clojure elle/elle 0.2.8.
  5. Energy Telemetry & .jsyn Sub-1-Bit Sentence Embeddings (joule-db-energy, joule-db-weights):
    • Bare-metal hardware counter readers (reported_j via Linux intel-rapl and macOS IOKit SMC) segregated from analytical cost models (est_j), plus pure-Rust dcharlot65-openie/all-MiniLM-L6-v2-LittleBit (1.95 MB, 0.4378 BPW, 0.9441 cosine vs FP32).

Reproducible External Evaluations (bench/)

1. Full Official ClickBench (hits.parquet, 99,997,497 Rows, 105 Columns, 43 Queries) vs. DuckDB 2.0.1

Executed via bench/clickbench_official.py over real pgwire (psycopg 3.3.9, --data-parent-dir /var/tmp physical NVMe on 100M) on framework-128gb-0000 (AMD Ryzen AI Max+ 395, 128 GB RAM, Linux rapl-package reported_j):

Official hits.parquet Scale Parquet Load (DuckDB vs JouleDB) JouleDB Post-Load RSS (VmHWM Peak) Queries Succeeded SQL-Valid Match (Exact) Faster (JouleDB / DuckDB) Geomean Latency (JouleDB / DuckDB) Geomean Energy (reported_j)
100,000 rows (JSON) 0.179 s vs 0.265 s 918 MB (2,652 MB) 43 / 43 (0 err) 43 / 43 (34 exact) 20 / 23 1.47× slower (median 1.19×) 1.97× more J
1,000,000 rows (JSON) 0.158 s vs 0.871 s 1,283 MB (1,923 MB) 43 / 43 (0 err) 43 / 43 (29 exact) 11 / 32 2.34× slower (median 2.95×) 2.50× more J
10,000,000 rows (JSON) 2.422 s vs 13.340 s 2,385 MB (3,448 MB) 43 / 43 (0 err) 43 / 43 (31 exact) 9 / 34 2.28× slower (median 2.63×) 2.22× more J
99,997,497 rows — FULL 14.78 GB NVMe (JSON) 18.208 s vs 161.403 s 139.2 MB (9,454 MB) 43 / 43 (0 err) 43 / 43 (30 exact) 8 / 35 2.35× slower NVMe (2.11× tmpfs, median 3.36×) 2.09× more J
  • Candid Full-100M Summary: Out-of-core .jcol segments on physical NVMe slash post-load RSS 42.4× (5,901.8 MB -> 139.2 MB) & peak VmHWM 1.74× (16,469.7 MB -> 9,454.5 MB), beat DuckDB 2.0.1 on 8 / 43 queries at 100M rows (Q0 1.40 ms [1.84×], Q2 1.16 ms [7.48×], Q3 1.56 ms [25.7×], Q6 1.35 ms [5.05×], Q29 1.81 ms [7.82×], Q37 30.48 ms [1.07×], Q41 11.86 ms [2.06×], Q42 11.31 ms [3.21×]), and slash tail latencies 3.05× on Q39 (906.85 -> 297.01 ms), 4.04× on Q32 (5,933.5 -> 1,467.5 ms), 2.47× on Q30 (668.5 -> 270.9 ms), and 4.73× on Q7 (34.95 -> 7.40 ms). DuckDB 2.0.1 wins 35 / 43 queries (2.35× geomean on NVMe / 2.11× on tmpfs).

2. Official 22-Query TPC-H Relational Suite (tpch_queries(), 8 Tables, SF = 0.1, 1.0 & 10.0) vs. DuckDB 2.0.1

Executed via bench/tpch_official.py over real TCP pgwire (psycopg 3.3.9, physical NVMe --work-dir /var/tmp, Linux rapl-package reported_j) across all 22 official TPC-H SQL queries (Q01..Q22):

Official TPC-H Scale 8-Table Parquet Load (DuckDB vs JouleDB) Post-Load RSS (VmHWM Peak) Exact Verified (Faster) Total 22-Query Time (DuckDB vs JouleDB) Geomean Latency (JouleDB / DuckDB)
SF = 0.1 (866,602 rows) (JSON) 0.430 s (12.2 J) vs 1.380 s (54.5 J) 780.8 MB (939.3 MB) 22 / 22 (5 faster: Q02,Q11,Q16,Q20,Q22) 88.2 ms vs 253.0 ms (196.0× vs v0.10.0) 1.99× slower (median 2.16×, down from 125.5×)
SF = 1.0 (8,661,245 rows) (JSON) 1.618 s vs 9.731 s (JFL2+ALP+FSST) 111.7 MB (338.3 MB) 22 / 22 (0 err, 0 timeouts) 270.9 ms vs 894.6 ms (774.9 ms peak) 3.27× (3.09× peak) (median 3.56×)
SF = 10.0 (86,586,082 rows, 60M lineitem) (JSON) 7.320 s vs 93.335 s (JFL2+ALP+FSST) 665.1 MB (1,103.7 MB) 22 / 22 (0 err, 0 timeouts) 1,337.6 ms vs 5,771.3 ms (4,655.5 ms peak) 4.48× (4.25× all-time best!)
  • Candid TPC-H Summary: Non-recursive stack bytecode FlatVColF64Prog (Q01 33.05M rows/s), dictionary-mask CASE WHEN JoinFlatNumProg + flat ungrouped unique-branch joins (1M Q14 promo join in 4.12 ms [243.0M rows/s]; SF=10.0 all-time best ratios Q04: 1.40×, Q18: 1.91×, Q03: 2.93×, plus Q22: 2.05×, Q21: 3.45×), bounded par_chunks, and 8-lane FastLanes JFL2 + ALP + FSST .jcol segments drive SF=10.0 (86.6M rows) to all-time lowest 665.1 MB RSS & 1,103.7 MB (1.10 GB) VmHWM (5.77 s total; 4.66 s / 4.25× geomean peak) and SF=1.0 to 894.6 ms sub-second total (3.27× geomean, 774.9 ms / 3.09× peak, all-time lowest 111.7 MB RSS & 338.3 MB VmHWM). DuckDB 2.0.1 remains faster at SF=1.0..10.0 (3.09×–4.48× geomean).

3. Head-to-Head 100-Warehouse Physical-NVMe TCP pgwire OLTP vs. PostgreSQL 16.16 & SQLite 3.53.1

Executed via bench/oltp_pgwire.py (oltp_pgwire_v027.json, oltp_pgwire_v026.json, oltp_pgwire_v025.json, oltp_pgwire_v024.json, physical NVMe --work-dir /var/tmp, rapl-package reported_j, 100,000 accounts across 100 warehouses, 50% indexed point read, 30% durable BEGIN; UPDATE accounts ...; INSERT INTO history ...; COMMIT [fsync=on, synchronous_commit=on], 20% warehouse COUNT/SUM, invariant_verified = true across all 5 runs):

Engine & Wire Protocol (v0.27.0 HOT Deferred Secondary Indexes + GroupSync + SSI) c = 1 TPS (p50, mJ/txn) c = 4 TPS (p50, mJ/txn) c = 8 TPS (p50, mJ/txn) c = 16 TPS (p50, mJ/txn) Committed Writes
JouleDB 0.27.0 (pgwire Simple Query, 4-RTT + NVMe fdatasync) 6,312.0 / 7,117.2 pk (0.027 ms, 17.31 mJ) 7,892.9 / 9,917.5 pk (0.095 ms, 13.83 mJ) 3,069.8 / 6,215.5 pk (0.294 ms) 4,715.4 / 8,102.5 pk (0.339 ms pk) 32,835 (44,436 pk)
JouleDB 0.27.0 (pgwire Extended Pipeline, 1-RTT + NVMe fdatasync) 1,214.7 / 2,837.0 pk (0.057 ms) 2,955.8 / 3,910.3 pk (0.090 ms) 4,267.4 / 5,636.4 pk (0.272 ms) 7,749.5 / 9,107.2 pk (0 err, 17.00 mJ) 24,230 (27,430 pk)
PostgreSQL 16.16 (pgwire Simple Query, 4-RTT + NVMe fsync) 1,272.6 (0.100 ms, 74.64 mJ) 2,798.3 (0.100 ms, 35.60 mJ) 5,284.8 (0.154 ms, 15.63 mJ) 11,706.1 (0.277 ms, 7.48 mJ) 31,467
PostgreSQL 16.16 (pgwire Extended Pipeline, 1-RTT + NVMe fsync) 1,327.3 (0.083 ms, 59.46 mJ) 3,010.3 (0.109 ms, 32.33 mJ) 5,476.0 (0.205 ms, 24.35 mJ) 10,364.6 (0.393 ms, 13.37 mJ) 30,087
SQLite 3.53.1 (Embedded in-proc C API, NVMe WAL, NORMAL) 41,539.8 (0.005 ms, 2.82 mJ) 66,187.9 (0.008 ms, 2.09 mJ) 75,343.9 (0.008 ms, 1.28 mJ) 81,757.8 (0.009 ms, 1.06 mJ) 407,539 (in-proc)
  • Candid Physical-NVMe OLTP Summary: PostgreSQL HOT-style deferred secondary index maintenance (DeferredSecOp + linearizable HoloLock::read_with_sec_settled) + pre-lock rewrite_uncommitted beat PostgreSQL 16.16 4.96× at c=1 Simple (6,312.0 vs 1,272.6 TPS, 0.027 vs 0.100 ms p50, 4.31× less RAPL J/txn, +76.2% over v0.26.0) and 2.82× at c=4 Simple (7,892.9 vs 2,798.3 TPS, 2.57× less RAPL J/txn, +102.7% over v0.26.0), beat PG16 p50 at c=1..4 Pipeline (0.057 vs 0.083 ms & 0.090 vs 0.109 ms, 98.2% TPS parity at c=4), and surge +125.0% over v0.26.0 at c=16 Pipeline to 7,749.5 TPS (0 errors across all c=1..16 Pipeline runs) while candidly noting moderate host load (idle_watts = 88.18 W), where PG16 leads c=8..16 raw TPS alongside JouleDB's peaks of 8,102.5 TPS (95.7% of PG16) c=16 Simple, 9,107.2 TPS c=16 Pipeline, 2,837.0 TPS c=1 Pipeline, & 3,910.3 TPS c=4 Pipeline.

4. 5-Node Multi-Host Cross-Machine WAN/Tailscale TCP Raft (ReadIndex) + Official Clojure elle 0.2.8

Executed via bench/raft_multihost_wan.py, examples/raft_wan_node.rs, and bench/elle_check.clj:

  • Cross-Machine WAN Topology & Nemeses: 5 real OS raft_wan_node processes with durable raft.wal across 2 distinct physical Linux hosts (framework-128gb-0000 bare-metal + openie-core-1 Cloud Debian 12 VM, 27.58 ms median Tailscale WAN TCP RTT), cross-WAN 2/5 minority split isolating n1, 3/5 majority election (n3), real OS SIGKILL (kill -9) on n5, and raft.wal convergence (commit=68, applied=68, x=68, y=39) -> {:valid? true} (270 WAN events, :strict-serializable).

5. .jsyn (JSYN-v1) Fidelity vs. Compression Curve

Model / Layer BPW Shrink vs FP16 Measured Fidelity vs Upstream Guidance
all-MiniLM-L6-v2-LittleBit (6L Encoder) 0.438 22.2× (1.95 MB) 0.9441 embedding cosine vs FP32 Recommended for semantic search & TriModal RRF
Gemma-4-E2B q_proj (r = 8..128) 0.028–0.166 564×–96.6× 0.271–0.455 output cos (KL 3.87–2.72) Experimental only — not a drop-in causal LLM (retracted from HF)
Inkling-2-Mini w13 (128-Exp MoE, r = 8..128) 0.023–0.134 701×–120× 0.113–0.350 output cos (KL 2.91–2.59) Experimental only — not a drop-in causal LLM (retracted from HF)

6. Head-to-Head Core Banking Double-Entry Ledger (4 / 4 Regime Sweep vs PostgreSQL 16.16) & Unified Suite

Executed via bench/ledger_banking_head_to_head.py (ledger_banking_nvme_rapl_v016.json, physical NVMe --work-dir /var/tmp, Linux rapl-package reported_j, 1,000 NO_OVERDRAFT customer wallets, 5% duplicate idempotency_key retries, SHA-256 digest per transfer, fsync=on & synchronous_commit=on, 493,941 HTTP & 436,801 pgwire SHA-256 chain entries verified valid = true):

Core Banking Regime (1,000 NO_OVERDRAFT Wallets, fsync=on) JouleDB 0.16.0 HTTP (JWL1 + SHA-256) JouleDB 0.16.0 pgwire (psycopg3 SQL) PostgreSQL 16.16 (FOR UPDATE / UNNEST) Speedup & RAPL Energy (reported_j)
c = 1 Serial Durable Transfer 3,424.5 TPS (p50 0.242 ms, 26.96 mJ/tx) 400.6 TPS (p50 2.601 ms, 201.89 mJ/tx) 371.9 TPS (p50 2.781 ms, 129.73 mJ/tx) JouleDB 9.21× HTTP (1.08× pgwire) · 4.81× less J/tx
c = 4 Concurrent Group Commit 1,250.0 TPS (p50 2.993 ms, 62.58 mJ/tx) 1,412.7 TPS (p50 2.761 ms, 56.08 mJ/tx) 777.6 TPS (p50 5.271 ms, 61.57 mJ/tx) JouleDB 1.82× pgwire (1.61× HTTP) · 1.10× less J/tx
c = 16 High-Contention Concurrent 2,636.9 TPS (p50 5.129 ms, 44.07 mJ/tx) 3,919.0 TPS (p50 3.595 ms, 22.56 mJ/tx) 2,861.0 TPS (p50 5.658 ms, 20.51 mJ/tx) JouleDB 1.37× pgwire win + global SHA-256 chain
batch = 500 Clearing Batch (1 fdatasync / 500 tx) 91,316.1 TPS (p50 4.290 ms, 1.06 mJ/tx) 81,453.5 TPS (104,721 TPS peak) 53,956.4 TPS (p50 8.556 ms, 1.03 mJ/tx) JouleDB 1.69× faster (>100k TPS peak)
  • Unified Banking, 0.553 ms Lazy CoW Branching, pgvector HNSW & Human ORM Verification (unified_banking_agentic_v016.json): Verifies 0.10 + 0.20 = 0.30 & 1,000 × 0.01 = 10 exact Decimal128, multi-leg split settlements, two-phase HOLD/POST, SQL JOIN (kyc_customers ⋈ jouledb_ledger_accounts), 500-op hot-wallet contention (0 overdrafts, 879.0 ops/s), 0.553 ms median pure CREATE BRANCH (0.432 ms on Apple Silicon — 69× faster than v0.14.0), 42501/40001/53200 guardrails, native pgvector HNSW cosine <=> top-K recall, WORKFLOW CHECKPOINT replay, SELECT ... FOR UPDATE [NOWAIT | SKIP LOCKED], and 0-xfail SQLAlchemy 2 (4/4) + psycopg3 (12/12) + node-pg (5/5) + pgJDBC (7/7).

7. Large Text Compression Benchmark (LTCB enwik8/enwik9) — Joules-per-Bit & Seekable Database Pareto (bench/ltcb_energy_pareto.py)

Executed via bench/ltcb_energy_pareto.py (ltcb_energy_pareto_v016.json) on Matt Mahoney's official enwik8 (100,000,000 B = 12,346 English Wikipedia XML articles, Linux RAPL reported_j) alongside published primary-source enwik9 (1,000,000,000 B) neural compressors from mattmahoney.net/dc/text.html (analytical_est clearly segregated):

System / Storage Format Corpus Ratio (bpb) Decode / Scan Speed O(1) Article Lookup Decode / Scan Energy (nJ/bit)
cmix-lex-transformer (published LTCB #1) enwik9 (1 GB) 10.43× (0.767 bpb) 0.0047 MB/s (2.47 d) None (full replay) ~668,250 nJ/bit (analytical_est 25W)
zmix 1.0 (fx2-cmix Zig) (published LTCB #2) enwik9 (1 GB) 10.41× (0.769 bpb) 0.0076 MB/s (1.52 d) None (full replay) ~245,970 nJ/bit (analytical_est 15W)
tufazip v2 (Tufa Labs 163M) (published LTCB #3) enwik9 (1 GB) 9.49× (0.843 bpb) 0.0016 MB/s (7.29 d) None (630,136 s) ~157,534,000 nJ/bit (analytical_est 2kW B200)
zstd -19 (stream) (live RAPL) enwik8 (100 MB) 3.71× (2.156 bpb) 177.7 MB/s (0.56 s) None (stream) 90.54 nJ/bit (reported_j 72.43 J)
zstd -3 (stream) (live RAPL) enwik8 (100 MB) 2.82× (2.836 bpb) 577.0 MB/s (0.17 s) None (stream) 27.97 nJ/bit (reported_j 22.37 J)
Seekable Parquet Zstd (Ontology+SimHash sorted) enwik8 (12.3k docs) 2.79× (2.870 bpb) Row-group seekable O(row_group) 1.46% smaller than stream order
JouleDB v0.16.0 .jcol SQL (pgwire) (live RAPL) enwik8 (12.3k docs) Raw mmap .jcol 3,374 MB/s (28.36 ms LIKE) 5.41 ms (116.4M× vs tufazip) 2.83 nJ/bit (reported_j 2.16 J — 55.7M× less J/bit)

8. v0.19.0 Sub-Millisecond Lazy CoW Dry-Runs, Live 429 Failover, /v1/rerank, Orthogonal Super-Adapters & SQL Kinetic Ontology (v019_sota_agentic_bench.json)

Executed via bench/v019_agentic_ai_inside_bench.py (energy_measurement_class: "analytical_est") against the single-binary jouledb 0.19.0 release server on framework-128gb-0000:

  • JouleRoute Live HTTP 429 Failover + RTK + LangCache: 93.01% deterministic RTK log token compression (1,169 -> 82 tokens in 683.1 µs), 2.928 ms live over-the-wire HTTP 429 upstream catch + circuit-breaker trip + backup failover, and 2.175 ms Tier 0 LSN-consistent LangCache hit.
  • Voyage AI / Cohere v2 POST /v1/rerank: 98,381.6–106,154.0 docs/sec (0.603–0.651 ms HTTP round-trip / 314–336 µs engine across 64 candidate docs, exact top1_index = 19 hit).
  • Orthogonal Harness Super-Adapters: Pi (r=32) + OpenCode (r=32) + Hermes (r=32) factorized subspace audit (max_cos = 0.005805, all_pairs_orthogonal = true) + Rank-96 concatenation in 1.962 ms.
  • Sub-Millisecond Lazy CoW Branch Dry-Runs + SQL Kinetic Ontology + jouledb mcp --power: 0.564 ms Keep-Alive HTTP / 0.626 ms SQL / 0.954 ms fresh-TCP urllib isolated CoW branch dry-run (27.39×–46.34× faster than v0.18.0's 26.14 ms & 35.76×–60.50× faster than v0.17.0!), 0.985 ms live SQL EXECUTE ACTION + SHA-256 FinancialLedger commit, 97.73%–99.18% MCP prompt-bloat reduction (59 -> 5 scoped tools), and 0.672 ms OpenCode SQL/Ontology LSP diagnostic round-trip (42501 + ONT001).
  • Durable DuckLake + Lance Blob v2 + In-SQL AI_*: 0.442 ms Seek+SHA-256 byte-range slice (4.1 KB frame from 16.78 MB container — 4,089× I/O amplification avoided) and 0.781 ms SELECT ... AI_RANK(...) WHERE AI_FILTER(...) ORDER BY r DESC LIMIT 5.

9. v0.20.0 WorldCommit (Database ≡ Capability OS ≡ Post-Git VCS) & Academic Frontier SQL (v020_academic_sota_swot_bench.json)

Executed via bench/v020_academic_sota_bench.py (energy_tag: "reported_j", rapl-package) against the single-binary jouledb 0.20.0 release server on framework-128gb-0000:

  • WorldCommit vs. POSIX git worktree (16 Parallel Agents): 0.133 ms median FORK WORLD (p95 0.388 ms) vs 2.799 ms git worktree add (21.11× faster & 3.45× lower RAPL reported_j [1.4394 J vs 4.9692 J]) and 0.318 ms median 4-sort algebraic MERGE WORLD (16 disjoint SQL (pk, col) cell writes + 16 commutative $\mathbb{Z}_{128}$ FinancialLedger transfers + 16 KineticOutbox releases in 1.5039 J), plus 0.277 ms Keep-Alive KineticAction CoW branch dry-runs (2.04× faster than v0.19.0).
  • Academic Frontier SQL (SIGMOD'24 RaBitQ, CSR-Leapfrog WCOJ, VLDB'23 DBSP): CREATE INDEX ... USING rabitq achieves 18.29× quantized compression (32× asymptotic) at 1.000 Precision@10 (13.72 ms build, 2.60 ms query); automatic CSR-Leapfrog WCOJ cyclic SQL joins run in 0.817 ms vs 221.82 ms binary join (271.66× faster; 0.732 ms / 293.79× peak); and DBSP ZSet REFRESH MATERIALIZED VIEW completes in 0.089 ms watermark No-Op / 1.672 ms symmetric delta.

10. v0.22.0 In-Process Fuel-Metered WASI VM & Lossless ALP + FSST .jcol Segments (v022_sota_triad_bench.json)

Executed via bench/v022_sota_triad_bench.py (energy_evidence: "reported_j", rapl-package) against the single-binary jouledb 0.22.0 release server on framework-128gb-0000:

  • In-Process WASI (wasi_snapshot_preview1) Sandbox vs. Zero-Ambient POSIX /bin/sh (202-File WorldCommit Repo): Executes .wasm binaries in-process over WorldCommit CoW VFS in 0.1205 ms p50 (0.1384 ms p95, 8,399.16 execs/sec, 6.41 mJ/exec reported_j, WASI_ERRNO_ACCES = 2 verified) vs 3.5568 ms p50 (282.29 execs/sec, 169.31 mJ/exec) for POSIX /bin/sh — 29.52× faster p50 (87.3× faster than git worktree) and 26.43× lower hardware RAPL energy per execution.
  • Lossless ALP (f64) + FSST (Text) .jcol Disk Compression (1,000,000 Telemetry Rows): Shrinks 104.00 MB raw uncompressed columnar data to 19.22 MB on disk (5.412× lossless compression, 81.52% space reduction), sustaining 597,984.2 rows/sec COPY ingest, 4.842 ms p50 (206.53 Million rows/sec) vectorized ALP scans, and 10.178 ms p50 FSST COUNT(DISTINCT) over 50,000 unique URIs.

11. v0.23.0 BLAKE3-Cached WASI + Transactional jouledb_env Host ABI & 7.45× FastLanes JFL1 + ALP + FSST .jcol (v023_sota_triad_bench.json)

Executed via bench/v023_sota_triad_bench.py (energy_evidence: "reported_j", rapl-package) against the single-binary jouledb 0.23.0 release server on framework-128gb-0000:

  • Warm BLAKE3-Cached WASI + Transactional jouledb_env Host ABI (200-File WorldCommit Repo): Pure cached WASI executes in 0.1097 ms p50 (0.1383 ms p95, 8,474.86 execs/sec, 10.03 mJ/exec, 200 / 200 wasm_cache_hit — 22.65× faster & 23.21× lower RAPL J than POSIX /bin/sh), while transactional jouledb_env host-SQL WASI (jdb_energy_remaining_uj + jdb_sql_query on <world>'s CoW SQL branch) executes in 0.1338 ms p50 (7,074.28 execs/sec, 13.69 mJ/exec — 18.57× faster than /bin/sh).
  • Lossless FastLanes JFL1 (0..=56-Bit FOR) + ALP + FSST .jcol & Q15 VIEW Cache (1,000,000 Telemetry Rows): Shrinks 104.00 MB raw uncompressed columnar data to 13.96 MB on disk (7.447× lossless compression, 86.57% space reduction — 27.3% smaller than v0.22.0's 19.22 MB), sustaining 542,061.8 rows/sec COPY ingest, 5.185 ms p50 (192.86 Million rows/sec) vectorized scans, and 0.510 ms p50 Q15 dual-reference VIEW queries.

12. v0.24.0 Content-Addressed BLAKE3 Wasm Agent Snapshots & 8-Lane FastLanes JFL2 .jcol (v024_sota_triad_bench.json)

Executed via bench/v024_sota_triad_bench.py (energy_evidence: "reported_j", rapl-package) against the single-binary jouledb 0.24.0 release server on framework-128gb-0000:

  • Content-Addressed BLAKE3 Wasm Snapshots (WORLD SNAPSHOT / WORLD RESUME SNAPSHOT vs. POSIX /bin/sh): Compresses 128 KiB linear memory into 2 sparse 4 KiB chunks (8,192 B = 16.0× sparse CoW compression, 200 / 200 deterministic snap-c33e5befd216d7fd7ff481101581d051), captures snapshots in 0.3442 ms p50 (0.1864 ms peak, 11.98×–12.47× faster than /bin/sh), and resumes into a forked WorldCommit branch with live transactional jdb_sql_query (200 / 200) in 0.2464 ms p50 (0.1403 ms peak, 4,015.7–6,961.4 resumes/s — 16.73× faster & 17.19× lower hardware RAPL energy than POSIX /bin/sh).
  • 8-Lane SIMD-Interleaved FastLanes JFL2 + ALP + FSST .jcol (1,000,000 Telemetry Rows): Shrinks 104.00 MB -> 13.96 MB (7.447× lossless compression, 86.57% disk savings, 4 / 4 JFL2 segments verified), sustaining 578,088.3 rows/sec (610,911.3 rows/sec peak) COPY ingest and 5.397 ms p50 (185.28 Million rows/sec, 16.36 J / 30 runs) vectorized scans.

13. v0.27.0 Counterfactual WORLD TOURNAMENT SNAPSHOT, Dictionary-Mask CASE Joins, & HOT OLTP (v027_sota_triad_bench.json)

Executed via bench/v027_sota_triad_bench.py (energy_evidence: "reported_j", rapl-package) against the single-binary jouledb 0.27.0 release server on framework-128gb-0000:

  • 8-Candidate Counterfactual WORLD TOURNAMENT SNAPSHOT vs. 8-Way POSIX /bin/sh: Resumes K=8 isolated CoW Wasm snapshots concurrently (UPDATE strategy_eval SET score = ... WHERE id = 1 on the same PK), runs isolated SCORE SQL, computes (score, energy_uj) Pareto non-dominance (pareto_count = 3), merges only the winner via 4-sort MERGE WORLD ... STRICT, and evaporates 7 losers in 2.5771 ms p50 (0.3221 ms/candidate, 35.92 mJ/candidate — 7.36× faster & 7.39× lower RAPL J than 8-way POSIX /bin/sh, and 2.86× faster than 8-way blind fan-out).
  • Bytecode FlatVColF64Prog & Dictionary-Mask CASE WHEN Joins (1,000,000 Rows) + High-Skew HOT OLTP: Executes Q14 p_type LIKE 'PROMO%' dictionary-mask joins in 4.1151 ms p50 (243.0M rows/s), Q12 integer CASE WHEN mask joins in 16.9321 ms p50 (59.1M rows/s), Q01 8-aggregate FlatVColF64Prog GROUP BY in 30.2583 ms p50 (33.05M rows/s), and c=16 high-skew HOT branches+accounts contention at 5,390.3 TPS (21.98 mJ/tx, 6.39 ms linearizable post-burst secondary settle).

Quickstart (v0.27.0)

# 1. Install prebuilt v0.27.0 binary (macOS ARM64/x86_64; Linux x86_64 GLIBC <= 2.35, Ubuntu 22.04/24.04 & Debian 12 ready)
cargo binstall jouledb

# 2. Launch JouleDB server (HTTP :8080, TCP :8081, PgWire :8082, JWP :8083, FlightSQL :8084, MCP HTTP /mcp)
jouledb --port 8080 --data ./joule-data

# 3. Run Claude Desktop / Kiro / OpenCode / Antigravity MCP stdio server (83 tools, or scoped to one Ontology Power!)
jouledb mcp --data ./joule-data --power treasury

# 4. Connect with psql, fork an atomic WorldCommit sandbox, or run smoke/security self-tests
psql -h 127.0.0.1 -p 8082 -U postgres -c "FORK WORLD agent_exp FROM main; SHOW WORLDS;"
jouledb self-check && jouledb trust

Honest Engineering Boundaries (Read Before Adopting)

  • Pre-1.0 research preview (v0.27.0), not a battle-tested production RDBMS: While JouleDB 0.27.0 unifies WorldCommit (0.133 ms FORK WORLD, 0.318 ms 4-sort MERGE WORLD, 2.58 ms 8-candidate counterfactual WORLD TOURNAMENT SNAPSHOT [0.322 ms/candidate, 7.36× faster & 7.39× less RAPL J than 8-way POSIX /bin/sh], 7.36 ms 8-way WORLD FANOUT SNAPSHOT, 0.246 ms [0.140 ms peak] content-addressed BLAKE3 Wasm agent snapshots [16.0× sparse CoW compression], 2.85 GiB/s loopback NFSv3, & 9 sys_world_* SQL tables) + lossless 8-lane FastLanes JFL2 + ALP + FSST .jcol compression (7.447×, 185.3M–243.0M rows/s) + Academic Frontier SQL (USING rabitq 18.29×/1.000 P@10, 271.7× CSR-Leapfrog WCOJ, 0.089 ms DBSP ZSet, 0.159 ms Q15 VIEW pushdown) + exact 128-bit NUMERIC & adaptive group-committed JWL1 SQL LEDGER beating PostgreSQL 16.16 across all 4 / 4 NVMe regimes (9.21× c=1, 1.82× c=4, 1.37× c=16, 1.69×–1.93× batch=500) + HOT 64-shard SSI 100-warehouse pgwire OLTP (6,312–7,117 TPS [4.96×–5.81×] c=1 Simple, 7,893–9,918 TPS [2.82×–3.93×] c=4 Simple, 8,103 TPS c=16 Simple, 7,750–9,107 TPS c=16 Pipeline) + 43 / 43 Official ClickBench on 99,997,497 rows (139.2 MB RSS, 8 / 43 wins) + 22 / 22 Official TPC-H (894.6 ms / 3.27× [774.9 ms / 3.09× peak, 338.3 MB VmHWM] at SF=1.0; 5.77 s / 4.48× [4.66 s / 4.25× peak, 1.10 GB VmHWM, Q04: 1.40×, Q18: 1.91×] at SF=10.0) + 5-node WAN Raft (elle {:valid? true}), mature single-purpose systems (DuckDB 2.11×–2.35× faster on 100M ClickBench & 3.09×–4.48× faster on SF=1..10 TPC-H; PostgreSQL 16.16 READ COMMITTED 1.04×–1.34× higher raw TPS at c=16 general NVMe pgwire OLTP vs JouleDB SSI; non-SQL TigerBeetle on io_uring fixed-struct clusters; offline neural compressors cmix/zmix/tufazip on non-seekable 0.77–0.84 bpb archival ratio) remain ahead on their specialized single axis.
  • No external compliance certifications: jouledb trust exercises technical security primitives in code (external_audit_performed = false). No third-party SOC 2, ISO 27001, HIPAA, PCI-DSS, NIST CMVP, or FedRAMP audit has been conducted.
  • Exact compiler safety lint scope: #![deny(unsafe_code)] is set in joule-db-core with 1 #![allow(unsafe_code)] module (crates/joule-db-core/src/storage/mmap_extent.rs). #![cfg_attr(not(test), deny(clippy::unwrap_used))] is enforced across 41 / 41 workspace crates (100%, 0 #[allow(clippy::unwrap_used)] bypasses) via a blocking CI gate.
  • SDK registry status: Prebuilt cp39-abi3 Python .whl wheels, TypeScript openie-jouledb-0.27.0.tgz (+ GitHub Packages npm), and Claude .mcpb bundles are published on GitHub Releases (v0.27.0) (with OIDC Trusted Publisher & token jobs wired in .github/workflows/release.yml); packages are not yet published on public PyPI, npmjs, NuGet, or Maven Central pending upstream registry OIDC registration.

Documentation & Links

License

Copyright (c) 2026 Open Interface Engineering, Inc. Dual-licensed under either Apache License, Version 2.0 or MIT License, at your option.