# Shared Vile/Guile benchmarks — suite v3 baseline The latest comparison for both engines is [BUDGET-401.md](../runtime/BUDGET-401.md): all 36 workloads, both collectors and 31 retained rounds versus 400. Their unlimited-step aggregate is essentially unchanged: interpreted GC is 0.1% slower and arenas 0.1% faster. Native estimates are within 0.1% of 400, with intervals including parity. No individual case exceeds 5% elapsed regression in this pass; every measured loss remains included. A separate comparison of the original values workload with the default one-million-step budget improves by 1.396x with GC and 1.250x with arenas. Private forwarding now works when at least two instruction charges remain; near-limit boundaries retain the packet path. This single-case result is kept outside the 36-workload aggregate. Guile still leads interpreted Vile by about 5x overall. Native Vile leads Guile by 1.155x with GC and 1.173x with arenas. The full 1.5x goal remains unmet. Previous comparison: [VALUES-400.md](../runtime/VALUES-400.md), including its known continuation/loop and native regressions. R7RS compatibility and smoke timings remain separate; no full R7RS performance aggregate is claimed. The requested earlier single interpreted pass remains in [INTERPRETED-365.md](../runtime/INTERPRETED-365.md). The tables below preserve the earlier five-configuration baseline. Latest retained string cursor update: [CURSOR-353.md](CURSOR-353.md). Earlier integer/floating-point comparison: [NUMERIC-352.md](NUMERIC-352.md). Retained interpreter dispatch updates: [DISPATCH-355.md](DISPATCH-355.md) and [PRIMITIVE-356.md](PRIMITIVE-356.md). Latest code-cache update: [CACHE-349.md](CACHE-349.md), including first-call and whole-process results. Latest native arithmetic update: [NATIVE-348.md](NATIVE-348.md). The tables below retain the preceding five-configuration baseline. Nine measured process samples per workload/configuration, plus one excluded warm process. All 24 workloads and five configurations are included. This is a baseline for further optimization, not goal completion. In the historical baseline below, Guile is **4.57× faster** than native GC Vile by the equally weighted all-case geometric mean. Native GC Vile wins 6/24 cases; 16/24 have zero measured native entries. The 1.5× overall goal remains unmet. The same idle Intel Mac mini, Guile 3.0.10 (`guild -O2`, default JIT), verified V provider, `-prod` Vile and Clang `-O3` native libraries were used. Jobs ran serially from hash-verified snapshots under the Mac validation lock with VJOBS=1, VFLAGS=-no-parallel and MAKEFLAGS=-j1. Builds, correctness verification, scaling and timing were separate phases. No subagents were used. Each case cycles four inputs that change work size or data range. Independent integer/Python Fraction oracles check every input; successful batches return a fixed marker. All 120 verification pairs passed. All 1,200 measured/excluded process results passed their oracle checks (1,080 measured rows). Ten scaling groups compared 4 and 400 calls with three repeats each: 100× more calls took 82.3–100.1× more time. The fixed-input Fibonacci hoisting artifact is absent. The idle check stopped measurement before workload 19 at 88.24% idle. The first 18 completed groups were preserved, and the final six resumed after the gate passed. No rows were duplicated or discarded. Ratios are Guile/Vile: above 1 favors Vile. Inputs differ from suite v2; its historical data is in [RESULTS-V2.md](RESULTS-V2.md). These component microbenchmarks do not predict arbitrary applications. | Configuration | Geomean Guile/Vile | Wins / 24 | |---|---:|---:| | interpreter-arena | 0.092× | 2 | | interpreter-gc | 0.090× | 2 | | native-arena | 0.220× | 6 | | native-gc | 0.219× | 6 | | Category | Cases | Native GC geomean Guile/Vile | |---|---:|---:| | collections | 5 | 0.206× | | goops | 2 | 0.257× | | integer-kernels | 4 | 4.096× | | numeric | 4 | 0.172× | | procedures-control | 5 | 0.039× | | text-ports | 4 | 0.127× | Prepared microseconds per checked invocation; native GC IQR is inclusive 25th–75th percentile. Setup, first-use compilation and five warmup calls are excluded. Collector variants explicitly collect before timing; collections during the batch count. Arena memory is released at process exit, so equivalent memory use is not established. | Workload | Guile us | Interpreter arena us | Interpreter GC us | Native arena us | Native GC us [IQR] | Guile/native GC | Native entries/call | |---|---:|---:|---:|---:|---:|---:|---:| | tail-sum-10k | 33.680 | 1150.048 | 1187.944 | 5.620 | 5.619 [5.619, 5.620] | 5.994× | 0.01 | | fib-20 | 310.930 | 6331.673 | 6759.293 | 170.591 | 170.564 [170.511, 170.796] | 1.823× | 0.01 | | closure-5k | 15.600 | 840.652 | 877.427 | 4.202 | 4.226 [4.225, 4.228] | 3.691× | 0.01 | | list-3k | 59.840 | 1182.823 | 1236.097 | 8.037 | 8.578 [8.566, 8.590] | 6.976× | 1 | | flonum-sum-2k | 95.917 | 507.454 | 533.943 | 544.221 | 556.109 [555.784, 556.346] | 0.172× | 0 | | bignum-fib-200 | 5.417 | 56.847 | 56.503 | 61.468 | 58.810 [58.696, 58.839] | 0.092× | 0 | | rational-harmonic-80 | 50.875 | 108.111 | 96.415 | 109.950 | 97.920 [97.700, 99.116] | 0.520× | 0 | | integer-divmod-5k | 167.750 | 1468.773 | 1522.037 | 1549.321 | 1586.524 [1586.385, 1586.746] | 0.106× | 0 | | list-map-1k | 48.500 | 138.321 | 143.392 | 138.718 | 136.301 [135.935, 136.716] | 0.356× | 1001.5 | | list-reverse-2k | 60.917 | 618.743 | 657.848 | 652.612 | 664.776 [663.174, 667.495] | 0.092× | 1 | | vector-update-2k | 16.250 | 824.660 | 838.840 | 867.024 | 881.158 [879.490, 889.612] | 0.018× | 0 | | bytevector-fill-4k | 86.083 | 1296.138 | 1337.486 | 1391.596 | 1410.667 [1408.637, 1411.132] | 0.061× | 0 | | hashtable-count-1k | 5946.333 | 591.866 | 578.977 | 610.468 | 593.337 [592.981, 594.050] | 10.022× | 0 | | string-build-1k | 42.583 | 55.633 | 44.785 | 57.877 | 46.809 [46.266, 46.828] | 0.910× | 0 | | string-scan-4k | 43.750 | 987.606 | 1012.831 | 1083.979 | 1102.584 [1102.025, 1103.402] | 0.040× | 0 | | unicode-scan-1k | 11.750 | 1757.921 | 1886.180 | 1932.985 | 2320.381 [2317.447, 2321.745] | 0.005× | 0 | | datum-read-write-200 | 2225.625 | 1321.086 | 1231.484 | 1356.078 | 1556.879 [1545.716, 1574.564] | 1.430× | 0 | | closure-mutate-2k | 8.417 | 411.279 | 427.718 | 486.695 | 476.348 [476.043, 476.519] | 0.018× | 0 | | higher-order-2k | 6.333 | 583.518 | 598.992 | 24.650 | 24.920 [24.872, 24.925] | 0.254× | 1 | | callcc-escape-1k | 6.667 | 119.640 | 121.572 | 139.056 | 139.934 [139.461, 139.985] | 0.048× | 0 | | values-consumer-1k | 4.417 | 573.159 | 672.355 | 657.818 | 764.753 [758.430, 776.755] | 0.006× | 1001.5 | | dynamic-wind-200 | 12.500 | 152.187 | 157.620 | 170.260 | 166.645 [165.753, 167.384] | 0.075× | 0 | | goops-dispatch-1k | 109.250 | 738.493 | 758.745 | 782.584 | 789.593 [788.245, 793.573] | 0.138× | 0 | | goops-allocate-200 | 54.750 | 117.378 | 108.967 | 125.363 | 114.980 [114.609, 115.844] | 0.476× | 0 | First-call and whole-process medians are separate from prepared timing. Whole-process durations include setup, compilation, warmup and the full batch, and are not standalone startup measurements. Native compilation remains a material first-use cost. | Workload | Guile first ms | Native GC first ms | Guile process ms | Native GC process ms | |---|---:|---:|---:|---:| | tail-sum-10k | 0.045 | 390.998 | 39.817 | 405.162 | | fib-20 | 0.147 | 390.861 | 68.735 | 421.377 | | closure-5k | 0.026 | 394.247 | 37.898 | 407.676 | | list-3k | 0.069 | 404.651 | 42.845 | 792.485 | | flonum-sum-2k | 0.141 | 0.644 | 38.015 | 21.648 | | bignum-fib-200 | 0.030 | 0.168 | 35.758 | 13.231 | | rational-harmonic-80 | 0.098 | 0.228 | 36.250 | 13.662 | | integer-divmod-5k | 0.197 | 1.681 | 38.450 | 39.199 | | list-map-1k | 0.136 | 355.614 | 37.341 | 370.936 | | list-reverse-2k | 0.108 | 375.597 | 37.568 | 400.026 | | vector-update-2k | 0.048 | 0.979 | 36.027 | 27.540 | | bytevector-fill-4k | 0.130 | 1.518 | 37.128 | 36.578 | | hashtable-count-1k | 6.149 | 0.732 | 150.666 | 22.733 | | string-build-1k | 0.124 | 0.192 | 36.727 | 13.193 | | string-scan-4k | 0.079 | 1.179 | 36.586 | 31.045 | | unicode-scan-1k | 0.049 | 2.396 | 35.963 | 51.735 | | datum-read-write-200 | 3.645 | 2.089 | 68.150 | 33.736 | | closure-mutate-2k | 0.034 | 0.553 | 35.873 | 20.455 | | higher-order-2k | 0.028 | 383.085 | 36.422 | 396.374 | | callcc-escape-1k | 0.043 | 0.223 | 36.006 | 14.616 | | values-consumer-1k | 0.032 | 357.310 | 36.346 | 382.760 | | dynamic-wind-200 | 0.038 | 0.269 | 35.857 | 15.311 | | goops-dispatch-1k | 0.195 | 1.406 | 50.973 | 24.395 | | goops-allocate-200 | 0.107 | 0.222 | 49.870 | 15.352 | Source/build/verification/timing snapshot: `vile-resume.i_n_pyk2`. Native backend345 is the last verified runtime used here; the arithmetic candidate being developed afterward is not represented by these numbers. Raw data, full ranges, compiler/binary/source hashes, provenance, idle records and logs are archived in the recovery `validation/benchmark347` directory. Reproduce from a verified Mac snapshot using separate serial jobs: `compare.py build`, `verify`, `scaling`, then `measure`; use the same `--samples` value for every phase. The public default is 31 samples. This baseline used 9. The vector-read dispatch comparison is in [DISPATCH-355.md](DISPATCH-355.md), covering both the 24 numeric workloads and the 12 mock-WM workloads. The division/vector-write dispatch comparison is in [PRIMITIVE-356.md](PRIMITIVE-356.md), covering both the 24 numeric workloads and the 12 mock-WM workloads. The native-vector candidate and its regressions are recorded in [VECTOR-357.md](VECTOR-357.md). Further optimization is pending. The retained native-vector and binding-cache comparison is in [GUARDS-358.md](GUARDS-358.md), including both suites and all losses.