1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
;;; Copyright (c) 2026 Nicholas Vermeulen
;;; SPDX-License-Identifier: AGPL-3.0-or-later
;; agent_bench.lisp — Phase 3.3 deliverable benchmark.
;;
;; Three agent workloads, all deterministic (no LLM):
;; 1. orchestration — 4000 message hops through the actor scheduler
;; 2. swarm — proposer/verifier/certifier synthesis (swarm.lisp's
;; flow) driven 30 rounds
;; 3. agent-compute — a dispatcher/worker/collector pipeline where each
;; work item computes fib(20); run once with the
;; worker's tool interpreted ("naive interpretation")
;; and once defrust-compiled
;;
;; Run against an old binary for interpreter-only comparison, and read the
;; naive-vs-compiled pair on the same binary for the compilation speedup.
;; Usage: rusty benchmarks/agent_bench.lisp
;; ── 1. orchestration: ping-pong, 4000 hops ───────────────────────────────
;; ── 2. swarm-style verified synthesis, 30 rounds ─────────────────────────
;; The verifier's brain: static gates then exhaustive checking, same
;; machinery as swarm.lisp, driven repeatedly.
;; ── 3. agent pipeline with a numeric core: 50 × fib(20) ─────────────────
;; same pipeline, worker's numeric core compiled (only available if this
;; binary has defrust — all do since 1.2; kernel caching since 3.3)