vile / bench / native / DISPATCH-355.md
64 lines · 53 sloc · 4.6 KB · 76646891b77a3d5c6af4a1e42b122cd61dc1654b
Raw

Vector-read dispatch results (355)

Retained ordinary-dispatch fast path for valid vector-ref calls. It checks the live primitive identity, VM owner, extension state, operand tags and index bounds. Bounded VMs and rejected operands retain the full dispatcher. It returns all value kinds, including unspecified values, without allocation.

Both sanitizer and Boehm builds passed 22 focused tests, including both frontends, primitive rebinding, saved aliases, vector mutation, scalar/compound identity, errors and exact step-budget boundaries against the bounded VM dispatcher.

Compared on the same idle Intel i3 Mac mini, one locked job at a time, from hash-verified snapshots. Each workload/configuration has nine measured fresh processes plus one excluded process; all 1,800 checked samples passed. Prepared medians include the workload but exclude setup and first-use native compilation. Native persistence was off for both versions. All cases and native fallbacks remain included. Only scheme/machine.v changed in runtime sources; native generated code and ABI remain identical, so existing native scaling checks remain applicable.

Suite GC gain vs before Arena gain vs before Guile/after GC Guile/after arena
wm 1.096× 1.087× 0.155× 0.144×
numeric 1.008× 0.991× 0.349× 0.342×

Ratios above one favor Vile. These results do not establish the requested 1.5× overall advantage over Guile 3.

wm

Workload Before GC ms After GC ms Guile ms GC gain Arena gain Guile/after GC
wm-callback-chain 8.929 8.197 0.639 1.089× 1.073× 0.078×
wm-event-dispatch 6.559 5.571 0.219 1.177× 1.151× 0.039×
wm-focus-cycle 8.090 6.945 0.380 1.165× 1.168× 0.055×
wm-tiling-layout 4.291 3.632 0.113 1.182× 1.156× 0.031×
wm-workspace-move 2.598 2.274 0.178 1.143× 1.134× 0.079×
wm-keybindings 5.033 4.929 0.282 1.021× 1.019× 0.057×
wm-hooks 5.129 4.651 0.361 1.103× 1.081× 0.078×
wm-lifecycle 1.828 1.658 0.128 1.103× 1.101× 0.077×
wm-macro-config 4.870 4.883 5.302 0.997× 1.001× 1.086×
wm-config-load-tree 5.396 5.329 9.005 1.013× 1.010× 1.690×
wm-reload-live 11.011 9.923 8.134 1.110× 1.093× 0.820×
wm-session-replay 9.871 9.202 8.063 1.073× 1.075× 0.876×

numeric

Workload Before GC ms After GC ms Guile ms GC gain Arena gain Guile/after GC
tail-sum-10k 0.006 0.006 0.034 0.999× 0.999× 5.994×
fib-20 0.170 0.170 0.311 1.000× 1.018× 1.826×
closure-5k 0.004 0.004 0.016 1.000× 1.000× 3.683×
list-3k 0.008 0.008 0.060 0.996× 0.992× 7.571×
flonum-sum-2k 0.012 0.012 0.096 0.999× 0.995× 7.926×
bignum-fib-200 0.061 0.061 0.005 1.001× 0.990× 0.090×
rational-harmonic-80 0.098 0.097 0.051 1.007× 0.989× 0.529×
integer-divmod-5k 0.018 0.018 0.168 1.002× 0.998× 9.260×
list-map-1k 0.160 0.146 0.049 1.090× 0.993× 0.335×
list-reverse-2k 0.663 0.661 0.061 1.002× 0.980× 0.092×
vector-update-2k 0.840 0.743 0.016 1.131× 1.096× 0.022×
bytevector-fill-4k 1.330 1.333 0.086 0.998× 0.959× 0.065×
hashtable-count-1k 0.577 0.587 5.985 0.983× 0.994× 10.195×
string-build-1k 0.050 0.050 0.043 1.002× 0.986× 0.849×
string-scan-4k 1.004 1.017 0.044 0.987× 0.976× 0.043×
unicode-scan-1k 0.268 0.270 0.012 0.992× 0.980× 0.043×
datum-read-write-200 1.604 1.579 2.274 1.016× 0.993× 1.441×
closure-mutate-2k 0.435 0.440 0.009 0.988× 0.957× 0.019×
higher-order-2k 0.021 0.021 0.006 0.998× 1.003× 0.304×
callcc-escape-1k 0.125 0.123 0.007 1.015× 0.951× 0.054×
values-consumer-1k 0.737 0.738 0.004 0.999× 0.995× 0.006×
dynamic-wind-200 0.161 0.160 0.013 1.005× 0.988× 0.079×
goops-dispatch-1k 0.790 0.788 0.110 1.002× 0.981× 0.140×
goops-allocate-200 0.113 0.113 0.055 0.999× 0.990× 0.483×

The raw records also retain first-call and whole-process times. This is a nine-sample iteration; the final 31-sample gate remains outstanding.

Build snapshot: vile-resume.3r5bc2_h. Measurement snapshot: vile-resume.eme6x4l7. Raw archive: validation/vector355/ in the recovery directory.