wardite 0.9.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +191 -0
  3. data/Makefile +14 -0
  4. data/README.md +107 -2
  5. data/Rakefile +5 -0
  6. data/Steepfile +1 -0
  7. data/assets/wardite.svg +12 -0
  8. data/benchmark/README.md +500 -0
  9. data/benchmark/build_call_profile.rb +42 -0
  10. data/benchmark/call_cost_worker.rb +27 -0
  11. data/benchmark/compare.rb +93 -0
  12. data/benchmark/compare_call_types.rb +212 -0
  13. data/benchmark/compare_dispatch.rb +123 -0
  14. data/benchmark/compare_engines.rb +119 -0
  15. data/benchmark/compare_optimizations.rb +139 -0
  16. data/benchmark/engine_phases.rb +30 -0
  17. data/benchmark/figures/README.md +35 -0
  18. data/benchmark/figures/plot_spinel_comparison.py +137 -0
  19. data/benchmark/figures/spinel_new_vm_candlestick.png +0 -0
  20. data/benchmark/figures/spinel_new_vm_candlestick.svg +7615 -0
  21. data/benchmark/figures/spinel_new_vm_summary.csv +9 -0
  22. data/benchmark/figures/spinel_new_vm_summary.json +82 -0
  23. data/benchmark/float_m5.wat +42 -0
  24. data/benchmark/i32_call_arities.wat +89 -0
  25. data/benchmark/i32_calls.wat +174 -0
  26. data/benchmark/i32_memory.wat +58 -0
  27. data/benchmark/i32_mix.wat +80 -0
  28. data/benchmark/i64_m4.wat +55 -0
  29. data/benchmark/investigate_calls.rb +231 -0
  30. data/benchmark/investigate_generated_guards.rb +218 -0
  31. data/benchmark/m3_call_worker.rb +38 -0
  32. data/benchmark/measure_m1.rb +51 -0
  33. data/benchmark/measure_m2.rb +55 -0
  34. data/benchmark/measure_m3_calls.rb +89 -0
  35. data/benchmark/measure_m4.rb +134 -0
  36. data/benchmark/measure_m5_boundary.rb +41 -0
  37. data/benchmark/measure_mir_cache_verify.rb +58 -0
  38. data/benchmark/measure_ruby_wasm_cache_hit.rb +59 -0
  39. data/benchmark/measure_ruby_wasm_startup.rb +43 -0
  40. data/benchmark/measure_wasi_write.rb +75 -0
  41. data/benchmark/optimization_worker.rb +23 -0
  42. data/benchmark/results/call_arities_exploratory_2026-11-04.json +4320 -0
  43. data/benchmark/results/call_arities_spinel_2026-11-04.json +1200 -0
  44. data/benchmark/results/call_cost_spinel_2026-11-04.json +2392 -0
  45. data/benchmark/results/call_protocol_exploratory_2026-11-04.json +3947 -0
  46. data/benchmark/results/call_protocol_profile_2026-11-04.json +383 -0
  47. data/benchmark/results/call_protocol_ruby_2026-11-04.json +1213 -0
  48. data/benchmark/results/call_protocol_spinel_2026-11-04.json +913 -0
  49. data/benchmark/results/call_types_ruby_2026-11-04.json +1212 -0
  50. data/benchmark/results/call_types_spinel_2026-11-04.json +923 -0
  51. data/benchmark/results/efflorescence-m1-cruby.json +799 -0
  52. data/benchmark/results/efflorescence-m1-spinel.json +799 -0
  53. data/benchmark/results/efflorescence-m2-bulk-loop.json +820 -0
  54. data/benchmark/results/efflorescence-m2-i32-cruby.json +799 -0
  55. data/benchmark/results/efflorescence-m2-i32-spinel.json +799 -0
  56. data/benchmark/results/efflorescence-m2-memory.json +408 -0
  57. data/benchmark/results/efflorescence-mir2-cache-integrity.json +390 -0
  58. data/benchmark/results/efflorescence-unboxed-globals.json +3451 -0
  59. data/benchmark/results/generated_guards_exploratory_2026-11-04.json +1225 -0
  60. data/benchmark/results/generated_guards_profile_2026-11-04.json +592 -0
  61. data/benchmark/results/generated_guards_spinel_2026-11-04.json +1650 -0
  62. data/benchmark/results/generated_guards_validation_2026-11-04.json +256 -0
  63. data/benchmark/results/inlining_engines_2026-11-04.json +241 -0
  64. data/benchmark/results/inlining_ruby_2026-11-04.json +1213 -0
  65. data/benchmark/results/inlining_spinel_2026-11-04.json +893 -0
  66. data/benchmark/results/operand_decode_exploratory_2026-11-04.json +1319 -0
  67. data/benchmark/results/operand_decode_ruby_2026-11-04.json +1213 -0
  68. data/benchmark/results/operand_decode_spinel_2026-11-04.json +924 -0
  69. data/benchmark/results/selective_reset_spinel_2026-11-04.json +454 -0
  70. data/benchmark/results/selective_reset_spinel_2026-11-04_exploratory.json +2679 -0
  71. data/benchmark/results/spinel_fetch_root_patch_2026-11-04.json +4523 -0
  72. data/benchmark/results/while_final_compiler_comparison_2026-11-04.json +324 -0
  73. data/benchmark/results/while_patched_external_2026-11-04.json +220 -0
  74. data/benchmark/results/while_user_unpatched_2026-11-04.json +230 -0
  75. data/benchmark/summarize_call_profile.py +54 -0
  76. data/benchmark/validate_m1_eh.rb +34 -0
  77. data/benchmark/validate_m2.rb +119 -0
  78. data/benchmark/validate_m3.rb +44 -0
  79. data/benchmark/validate_m4.rb +95 -0
  80. data/benchmark/validate_m5.rb +108 -0
  81. data/docs/adr/0001-efflorescence-m1-control-and-eh.md +319 -0
  82. data/docs/adr/0002-efflorescence-m2-memory-and-globals.md +185 -0
  83. data/docs/adr/0003-efflorescence-m3-host-and-indirect-calls.md +228 -0
  84. data/docs/adr/0004-efflorescence-m4-i64.md +202 -0
  85. data/docs/adr/0005-efflorescence-m5-floating-point.md +127 -0
  86. data/docs/adr/0006-efflorescence-m6-coverage-parity.md +101 -0
  87. data/docs/adr/0007-efflorescence-ruby-wasm-phase1.md +75 -0
  88. data/docs/adr/0008-efflorescence-ruby-wasm-phase2.md +75 -0
  89. data/docs/adr/0009-efflorescence-mir2-cache-integrity-modes.md +77 -0
  90. data/docs/adr/0010-efflorescence-mir2-cache-function-restore.md +80 -0
  91. data/docs/adr/0011-efflorescence-unboxed-globals.md +89 -0
  92. data/docs/adr/0012-efflorescence-startup-snapshot.md +173 -0
  93. data/docs/adr/0013-efflorescence-frame-acquisition.md +114 -0
  94. data/docs/efflorescence-call-arities.md +115 -0
  95. data/docs/efflorescence-call-investigation.md +155 -0
  96. data/docs/efflorescence-call-transfer.md +128 -0
  97. data/docs/efflorescence-call-types.md +102 -0
  98. data/docs/efflorescence-coverage-ja.md +351 -0
  99. data/docs/efflorescence-generated-c-guards.md +410 -0
  100. data/docs/efflorescence-inlining.md +165 -0
  101. data/docs/efflorescence-ja.md +155 -0
  102. data/docs/efflorescence-m1.md +160 -0
  103. data/docs/efflorescence-m2.md +233 -0
  104. data/docs/efflorescence-m3.md +131 -0
  105. data/docs/efflorescence-m4.md +88 -0
  106. data/docs/efflorescence-m5.md +82 -0
  107. data/docs/efflorescence-m6.md +95 -0
  108. data/docs/efflorescence-mir2-cache.md +123 -0
  109. data/docs/efflorescence-operand-decoding.md +105 -0
  110. data/docs/efflorescence-phase2-ja.md +225 -0
  111. data/docs/efflorescence-phase2.md +240 -0
  112. data/docs/efflorescence-register-initialization.md +75 -0
  113. data/docs/efflorescence-ruby-wasm-phase1.md +90 -0
  114. data/docs/efflorescence-spinel-linear-memory.md +72 -0
  115. data/docs/efflorescence-startup-snapshot.md +60 -0
  116. data/docs/efflorescence-unboxed-globals.md +61 -0
  117. data/docs/efflorescence.md +144 -0
  118. data/docs/spinel-string-aset-inplace-proposal.md +200 -0
  119. data/lib/wardite/alu_f32.generated.rb +11 -2
  120. data/lib/wardite/alu_f64.generated.rb +11 -2
  121. data/lib/wardite/alu_i32.generated.rb +54 -17
  122. data/lib/wardite/alu_i64.generated.rb +73 -31
  123. data/lib/wardite/cli/cli.rb +112 -29
  124. data/lib/wardite/const.rb +1 -0
  125. data/lib/wardite/efflorescence/float_arithmetic.rb +216 -0
  126. data/lib/wardite/efflorescence/i64_arithmetic.rb +257 -0
  127. data/lib/wardite/efflorescence/inspection.rb +165 -0
  128. data/lib/wardite/efflorescence/ir.rb +1164 -0
  129. data/lib/wardite/efflorescence/mir_cache.rb +657 -0
  130. data/lib/wardite/efflorescence/optimizer.rb +580 -0
  131. data/lib/wardite/efflorescence/register_validation.rb +362 -0
  132. data/lib/wardite/efflorescence/snapshot.rb +229 -0
  133. data/lib/wardite/efflorescence/store_access.rb +366 -0
  134. data/lib/wardite/efflorescence/translator.rb +866 -0
  135. data/lib/wardite/efflorescence/vm.rb +1170 -0
  136. data/lib/wardite/efflorescence/wasi.rb +52 -0
  137. data/lib/wardite/efflorescence.rb +17 -0
  138. data/lib/wardite/errors.rb +20 -0
  139. data/lib/wardite/float_bits.rb +46 -0
  140. data/lib/wardite/instruction.rb +35 -4
  141. data/lib/wardite/leb128.rb +33 -12
  142. data/lib/wardite/load.rb +292 -143
  143. data/lib/wardite/value.rb +169 -175
  144. data/lib/wardite/version.rb +1 -1
  145. data/lib/wardite/wasi/consts.rb +1 -0
  146. data/lib/wardite/wasi/spinel.rb +41 -0
  147. data/lib/wardite/wasi.rb +483 -268
  148. data/lib/wardite/wasm_module.rb +6 -3
  149. data/lib/wardite.rb +360 -98
  150. data/rbs_collection.lock.yaml +36 -96
  151. data/scripts/gen_alu.rb +121 -21
  152. data/scripts/verify_ruby_wasm.rb +70 -0
  153. data/sig/generated/wardite/cli/cli.rbs +23 -6
  154. data/sig/generated/wardite/const.rbs +2 -0
  155. data/sig/generated/wardite/efflorescence/float_arithmetic.rbs +65 -0
  156. data/sig/generated/wardite/efflorescence/i64_arithmetic.rbs +99 -0
  157. data/sig/generated/wardite/efflorescence/inspection.rbs +64 -0
  158. data/sig/generated/wardite/efflorescence/ir.rbs +888 -0
  159. data/sig/generated/wardite/efflorescence/mir_cache.rbs +236 -0
  160. data/sig/generated/wardite/efflorescence/optimizer.rbs +189 -0
  161. data/sig/generated/wardite/efflorescence/register_validation.rbs +104 -0
  162. data/sig/generated/wardite/efflorescence/snapshot.rbs +83 -0
  163. data/sig/generated/wardite/efflorescence/store_access.rbs +145 -0
  164. data/sig/generated/wardite/efflorescence/translator.rbs +218 -0
  165. data/sig/generated/wardite/efflorescence/vm.rbs +240 -0
  166. data/sig/generated/wardite/efflorescence/wasi.rbs +34 -0
  167. data/sig/generated/wardite/errors.rbs +12 -0
  168. data/sig/generated/wardite/float_bits.rbs +30 -0
  169. data/sig/generated/wardite/instruction.rbs +22 -1
  170. data/sig/generated/wardite/leb128.rbs +3 -1
  171. data/sig/generated/wardite/load.rbs +59 -7
  172. data/sig/generated/wardite/value.rbs +70 -11
  173. data/sig/generated/wardite/wasi/consts.rbs +2 -0
  174. data/sig/generated/wardite/wasi/spinel.rbs +15 -0
  175. data/sig/generated/wardite/wasi.rbs +111 -4
  176. data/sig/generated/wardite.rbs +114 -13
  177. data/sig/mir_cache_stdlib.rbs +5 -0
  178. data/sig/vernier.rbs +2 -2
  179. data/spinel/README.md +30 -0
  180. data/spinel/bin/wardite.rb +6 -0
  181. data/spinel/patches/0001-io-buffer-string-view.patch +699 -0
  182. data/spinel/patches/0002-io-buffer-allocation-error.patch +47 -0
  183. data/spinel/spin.toml +7 -0
  184. metadata +154 -3
@@ -0,0 +1,820 @@
1
+ {
2
+ "before_revision": "5ac5dc1",
3
+ "note": "before: String range assignment; after: byte loops. Same compiler and Ruby, measured back to back.",
4
+ "before": {
5
+ "ruby": "ruby 4.0.9 (2026-10-23 revision 3e93b23afc) +PRISM [arm64-darwin25]",
6
+ "spinel": "spinel 2026.10.25+1968 (6f1a2c259) [apple clang 21.0.0 (cc)]",
7
+ "compiler_flags": [
8
+ "-O2"
9
+ ],
10
+ "runs": 7,
11
+ "warmups": 2,
12
+ "rounds": 1000,
13
+ "seed": 123,
14
+ "disabled": [
15
+ "inline"
16
+ ],
17
+ "samples": [
18
+ {
19
+ "runtime": "CRuby",
20
+ "export": "array_scan",
21
+ "load": 0.0009850002825260162,
22
+ "execution": 0.3782739997841418,
23
+ "checksum": 64128000
24
+ },
25
+ {
26
+ "runtime": "Spinel",
27
+ "export": "array_scan",
28
+ "load": 0.0004059998318552971,
29
+ "execution": 0.025725000072270632,
30
+ "checksum": 64128000
31
+ },
32
+ {
33
+ "runtime": "Spinel",
34
+ "export": "array_scan",
35
+ "load": 0.00037499982863664627,
36
+ "execution": 0.02591500012204051,
37
+ "checksum": 64128000
38
+ },
39
+ {
40
+ "runtime": "CRuby",
41
+ "export": "array_scan",
42
+ "load": 0.0009880000725388527,
43
+ "execution": 0.37454700004309416,
44
+ "checksum": 64128000
45
+ },
46
+ {
47
+ "runtime": "CRuby",
48
+ "export": "array_scan",
49
+ "load": 0.000986000057309866,
50
+ "execution": 0.35883900010958314,
51
+ "checksum": 64128000
52
+ },
53
+ {
54
+ "runtime": "Spinel",
55
+ "export": "array_scan",
56
+ "load": 0.00041399989277124405,
57
+ "execution": 0.02688799984753132,
58
+ "checksum": 64128000
59
+ },
60
+ {
61
+ "runtime": "Spinel",
62
+ "export": "array_scan",
63
+ "load": 0.00037499982863664627,
64
+ "execution": 0.02742200018838048,
65
+ "checksum": 64128000
66
+ },
67
+ {
68
+ "runtime": "CRuby",
69
+ "export": "array_scan",
70
+ "load": 0.000984999816864729,
71
+ "execution": 0.3734030001796782,
72
+ "checksum": 64128000
73
+ },
74
+ {
75
+ "runtime": "CRuby",
76
+ "export": "array_scan",
77
+ "load": 0.0009850002825260162,
78
+ "execution": 0.37517499970272183,
79
+ "checksum": 64128000
80
+ },
81
+ {
82
+ "runtime": "Spinel",
83
+ "export": "array_scan",
84
+ "load": 0.00040900008752942085,
85
+ "execution": 0.025544000323861837,
86
+ "checksum": 64128000
87
+ },
88
+ {
89
+ "runtime": "Spinel",
90
+ "export": "array_scan",
91
+ "load": 0.0003760000690817833,
92
+ "execution": 0.02614900004118681,
93
+ "checksum": 64128000
94
+ },
95
+ {
96
+ "runtime": "CRuby",
97
+ "export": "array_scan",
98
+ "load": 0.000984999816864729,
99
+ "execution": 0.37949700001627207,
100
+ "checksum": 64128000
101
+ },
102
+ {
103
+ "runtime": "CRuby",
104
+ "export": "array_scan",
105
+ "load": 0.0009889998473227024,
106
+ "execution": 0.37519600009545684,
107
+ "checksum": 64128000
108
+ },
109
+ {
110
+ "runtime": "Spinel",
111
+ "export": "array_scan",
112
+ "load": 0.00042799999937415123,
113
+ "execution": 0.025749000255018473,
114
+ "checksum": 64128000
115
+ },
116
+ {
117
+ "runtime": "CRuby",
118
+ "export": "copy_fill",
119
+ "load": 0.0009960001334547997,
120
+ "execution": 0.0027009998448193073,
121
+ "checksum": 127908
122
+ },
123
+ {
124
+ "runtime": "Spinel",
125
+ "export": "copy_fill",
126
+ "load": 0.00043499981984496117,
127
+ "execution": 0.16790100000798702,
128
+ "checksum": 127908
129
+ },
130
+ {
131
+ "runtime": "Spinel",
132
+ "export": "copy_fill",
133
+ "load": 0.00038299988955259323,
134
+ "execution": 0.16800300031900406,
135
+ "checksum": 127908
136
+ },
137
+ {
138
+ "runtime": "CRuby",
139
+ "export": "copy_fill",
140
+ "load": 0.0010020001791417599,
141
+ "execution": 0.0026850001886487007,
142
+ "checksum": 127908
143
+ },
144
+ {
145
+ "runtime": "CRuby",
146
+ "export": "copy_fill",
147
+ "load": 0.0009949998930096626,
148
+ "execution": 0.002662000246345997,
149
+ "checksum": 127908
150
+ },
151
+ {
152
+ "runtime": "Spinel",
153
+ "export": "copy_fill",
154
+ "load": 0.00043000001460313797,
155
+ "execution": 0.16799299977719784,
156
+ "checksum": 127908
157
+ },
158
+ {
159
+ "runtime": "Spinel",
160
+ "export": "copy_fill",
161
+ "load": 0.0003919997252523899,
162
+ "execution": 0.16766700008884072,
163
+ "checksum": 127908
164
+ },
165
+ {
166
+ "runtime": "CRuby",
167
+ "export": "copy_fill",
168
+ "load": 0.0009920001029968262,
169
+ "execution": 0.0026699998416006565,
170
+ "checksum": 127908
171
+ },
172
+ {
173
+ "runtime": "CRuby",
174
+ "export": "copy_fill",
175
+ "load": 0.0009949998930096626,
176
+ "execution": 0.0026699998416006565,
177
+ "checksum": 127908
178
+ },
179
+ {
180
+ "runtime": "Spinel",
181
+ "export": "copy_fill",
182
+ "load": 0.00039799977093935013,
183
+ "execution": 0.16804999997839332,
184
+ "checksum": 127908
185
+ },
186
+ {
187
+ "runtime": "Spinel",
188
+ "export": "copy_fill",
189
+ "load": 0.00041799992322921753,
190
+ "execution": 0.16801200015470386,
191
+ "checksum": 127908
192
+ },
193
+ {
194
+ "runtime": "CRuby",
195
+ "export": "copy_fill",
196
+ "load": 0.0009929998777806759,
197
+ "execution": 0.0026839999482035637,
198
+ "checksum": 127908
199
+ },
200
+ {
201
+ "runtime": "CRuby",
202
+ "export": "copy_fill",
203
+ "load": 0.0009920001029968262,
204
+ "execution": 0.002731999848037958,
205
+ "checksum": 127908
206
+ },
207
+ {
208
+ "runtime": "Spinel",
209
+ "export": "copy_fill",
210
+ "load": 0.0004210001789033413,
211
+ "execution": 0.16816399991512299,
212
+ "checksum": 127908
213
+ },
214
+ {
215
+ "runtime": "CRuby",
216
+ "export": "global_update",
217
+ "load": 0.0010039997287094593,
218
+ "execution": 0.001039000228047371,
219
+ "checksum": 1664525123
220
+ },
221
+ {
222
+ "runtime": "Spinel",
223
+ "export": "global_update",
224
+ "load": 0.000421999953687191,
225
+ "execution": 0.00005499972030520439,
226
+ "checksum": 1664525123
227
+ },
228
+ {
229
+ "runtime": "Spinel",
230
+ "export": "global_update",
231
+ "load": 0.00039799977093935013,
232
+ "execution": 0.0000550001859664917,
233
+ "checksum": 1664525123
234
+ },
235
+ {
236
+ "runtime": "CRuby",
237
+ "export": "global_update",
238
+ "load": 0.0016709999181330204,
239
+ "execution": 0.0009960001334547997,
240
+ "checksum": 1664525123
241
+ },
242
+ {
243
+ "runtime": "CRuby",
244
+ "export": "global_update",
245
+ "load": 0.0009909998625516891,
246
+ "execution": 0.0010270001366734505,
247
+ "checksum": 1664525123
248
+ },
249
+ {
250
+ "runtime": "Spinel",
251
+ "export": "global_update",
252
+ "load": 0.0004360000602900982,
253
+ "execution": 0.000057999975979328156,
254
+ "checksum": 1664525123
255
+ },
256
+ {
257
+ "runtime": "Spinel",
258
+ "export": "global_update",
259
+ "load": 0.0003809998743236065,
260
+ "execution": 0.000053999945521354675,
261
+ "checksum": 1664525123
262
+ },
263
+ {
264
+ "runtime": "CRuby",
265
+ "export": "global_update",
266
+ "load": 0.001694999635219574,
267
+ "execution": 0.0009850002825260162,
268
+ "checksum": 1664525123
269
+ },
270
+ {
271
+ "runtime": "CRuby",
272
+ "export": "global_update",
273
+ "load": 0.0009910003282129765,
274
+ "execution": 0.0009999996982514858,
275
+ "checksum": 1664525123
276
+ },
277
+ {
278
+ "runtime": "Spinel",
279
+ "export": "global_update",
280
+ "load": 0.0004070000723004341,
281
+ "execution": 0.000053999945521354675,
282
+ "checksum": 1664525123
283
+ },
284
+ {
285
+ "runtime": "Spinel",
286
+ "export": "global_update",
287
+ "load": 0.00036399997770786285,
288
+ "execution": 0.00005300017073750496,
289
+ "checksum": 1664525123
290
+ },
291
+ {
292
+ "runtime": "CRuby",
293
+ "export": "global_update",
294
+ "load": 0.0009880000725388527,
295
+ "execution": 0.0010149995796382427,
296
+ "checksum": 1664525123
297
+ },
298
+ {
299
+ "runtime": "CRuby",
300
+ "export": "global_update",
301
+ "load": 0.0009889998473227024,
302
+ "execution": 0.001031000167131424,
303
+ "checksum": 1664525123
304
+ },
305
+ {
306
+ "runtime": "Spinel",
307
+ "export": "global_update",
308
+ "load": 0.0004070000723004341,
309
+ "execution": 0.000055999960750341415,
310
+ "checksum": 1664525123
311
+ },
312
+ {
313
+ "runtime": "CRuby",
314
+ "export": "segment_init",
315
+ "load": 0.0009999996982514858,
316
+ "execution": 0.0024790000170469284,
317
+ "checksum": 70099
318
+ },
319
+ {
320
+ "runtime": "Spinel",
321
+ "export": "segment_init",
322
+ "load": 0.00043899985030293465,
323
+ "execution": 0.08425600035116076,
324
+ "checksum": 70099
325
+ },
326
+ {
327
+ "runtime": "Spinel",
328
+ "export": "segment_init",
329
+ "load": 0.00037400005385279655,
330
+ "execution": 0.08419499965384603,
331
+ "checksum": 70099
332
+ },
333
+ {
334
+ "runtime": "CRuby",
335
+ "export": "segment_init",
336
+ "load": 0.0016800002194941044,
337
+ "execution": 0.0024329996667802334,
338
+ "checksum": 70099
339
+ },
340
+ {
341
+ "runtime": "CRuby",
342
+ "export": "segment_init",
343
+ "load": 0.0016739997081458569,
344
+ "execution": 0.002461000345647335,
345
+ "checksum": 70099
346
+ },
347
+ {
348
+ "runtime": "Spinel",
349
+ "export": "segment_init",
350
+ "load": 0.0004229997284710407,
351
+ "execution": 0.08412400027737021,
352
+ "checksum": 70099
353
+ },
354
+ {
355
+ "runtime": "Spinel",
356
+ "export": "segment_init",
357
+ "load": 0.0003869999200105667,
358
+ "execution": 0.08431999990716577,
359
+ "checksum": 70099
360
+ },
361
+ {
362
+ "runtime": "CRuby",
363
+ "export": "segment_init",
364
+ "load": 0.000994000118225813,
365
+ "execution": 0.0024999999441206455,
366
+ "checksum": 70099
367
+ },
368
+ {
369
+ "runtime": "CRuby",
370
+ "export": "segment_init",
371
+ "load": 0.000994000118225813,
372
+ "execution": 0.00242799986153841,
373
+ "checksum": 70099
374
+ },
375
+ {
376
+ "runtime": "Spinel",
377
+ "export": "segment_init",
378
+ "load": 0.00042499974370002747,
379
+ "execution": 0.084500000346452,
380
+ "checksum": 70099
381
+ },
382
+ {
383
+ "runtime": "Spinel",
384
+ "export": "segment_init",
385
+ "load": 0.0003760000690817833,
386
+ "execution": 0.08409899985417724,
387
+ "checksum": 70099
388
+ },
389
+ {
390
+ "runtime": "CRuby",
391
+ "export": "segment_init",
392
+ "load": 0.001006999984383583,
393
+ "execution": 0.002497000154107809,
394
+ "checksum": 70099
395
+ },
396
+ {
397
+ "runtime": "CRuby",
398
+ "export": "segment_init",
399
+ "load": 0.000997999683022499,
400
+ "execution": 0.0024730004370212555,
401
+ "checksum": 70099
402
+ },
403
+ {
404
+ "runtime": "Spinel",
405
+ "export": "segment_init",
406
+ "load": 0.00042300019413232803,
407
+ "execution": 0.08424999983981252,
408
+ "checksum": 70099
409
+ }
410
+ ]
411
+ },
412
+ "after": {
413
+ "ruby": "ruby 4.0.9 (2026-10-23 revision 3e93b23afc) +PRISM [arm64-darwin25]",
414
+ "spinel": "spinel 2026.10.25+1968 (6f1a2c259) [apple clang 21.0.0 (cc)]",
415
+ "compiler_flags": [
416
+ "-O2"
417
+ ],
418
+ "runs": 7,
419
+ "warmups": 2,
420
+ "rounds": 1000,
421
+ "seed": 123,
422
+ "disabled": [
423
+ "inline"
424
+ ],
425
+ "samples": [
426
+ {
427
+ "runtime": "CRuby",
428
+ "export": "array_scan",
429
+ "load": 0.00099500035867095,
430
+ "execution": 0.38049899972975254,
431
+ "checksum": 64128000
432
+ },
433
+ {
434
+ "runtime": "Spinel",
435
+ "export": "array_scan",
436
+ "load": 0.0004019998013973236,
437
+ "execution": 0.027354000136256218,
438
+ "checksum": 64128000
439
+ },
440
+ {
441
+ "runtime": "Spinel",
442
+ "export": "array_scan",
443
+ "load": 0.00036800000816583633,
444
+ "execution": 0.026247000321745872,
445
+ "checksum": 64128000
446
+ },
447
+ {
448
+ "runtime": "CRuby",
449
+ "export": "array_scan",
450
+ "load": 0.0009960001334547997,
451
+ "execution": 0.3712459998205304,
452
+ "checksum": 64128000
453
+ },
454
+ {
455
+ "runtime": "CRuby",
456
+ "export": "array_scan",
457
+ "load": 0.0009969999082386494,
458
+ "execution": 0.3787680002860725,
459
+ "checksum": 64128000
460
+ },
461
+ {
462
+ "runtime": "Spinel",
463
+ "export": "array_scan",
464
+ "load": 0.0004109996370971203,
465
+ "execution": 0.027377000078558922,
466
+ "checksum": 64128000
467
+ },
468
+ {
469
+ "runtime": "Spinel",
470
+ "export": "array_scan",
471
+ "load": 0.0003820001147687435,
472
+ "execution": 0.025230000261217356,
473
+ "checksum": 64128000
474
+ },
475
+ {
476
+ "runtime": "CRuby",
477
+ "export": "array_scan",
478
+ "load": 0.0016609998419880867,
479
+ "execution": 0.37302799988538027,
480
+ "checksum": 64128000
481
+ },
482
+ {
483
+ "runtime": "CRuby",
484
+ "export": "array_scan",
485
+ "load": 0.0009949998930096626,
486
+ "execution": 0.37535900017246604,
487
+ "checksum": 64128000
488
+ },
489
+ {
490
+ "runtime": "Spinel",
491
+ "export": "array_scan",
492
+ "load": 0.00043899985030293465,
493
+ "execution": 0.02592100016772747,
494
+ "checksum": 64128000
495
+ },
496
+ {
497
+ "runtime": "Spinel",
498
+ "export": "array_scan",
499
+ "load": 0.0003810003399848938,
500
+ "execution": 0.027395999990403652,
501
+ "checksum": 64128000
502
+ },
503
+ {
504
+ "runtime": "CRuby",
505
+ "export": "array_scan",
506
+ "load": 0.001016000285744667,
507
+ "execution": 0.38339099986478686,
508
+ "checksum": 64128000
509
+ },
510
+ {
511
+ "runtime": "CRuby",
512
+ "export": "array_scan",
513
+ "load": 0.0010100002400577068,
514
+ "execution": 0.387703999876976,
515
+ "checksum": 64128000
516
+ },
517
+ {
518
+ "runtime": "Spinel",
519
+ "export": "array_scan",
520
+ "load": 0.00041799992322921753,
521
+ "execution": 0.025274000130593777,
522
+ "checksum": 64128000
523
+ },
524
+ {
525
+ "runtime": "CRuby",
526
+ "export": "copy_fill",
527
+ "load": 0.0010009999386966228,
528
+ "execution": 0.021518999710679054,
529
+ "checksum": 127908
530
+ },
531
+ {
532
+ "runtime": "Spinel",
533
+ "export": "copy_fill",
534
+ "load": 0.00039499998092651367,
535
+ "execution": 0.0011240001767873764,
536
+ "checksum": 127908
537
+ },
538
+ {
539
+ "runtime": "Spinel",
540
+ "export": "copy_fill",
541
+ "load": 0.0003609997220337391,
542
+ "execution": 0.0010720002464950085,
543
+ "checksum": 127908
544
+ },
545
+ {
546
+ "runtime": "CRuby",
547
+ "export": "copy_fill",
548
+ "load": 0.0009960001334547997,
549
+ "execution": 0.02146399999037385,
550
+ "checksum": 127908
551
+ },
552
+ {
553
+ "runtime": "CRuby",
554
+ "export": "copy_fill",
555
+ "load": 0.0016599996015429497,
556
+ "execution": 0.020942000206559896,
557
+ "checksum": 127908
558
+ },
559
+ {
560
+ "runtime": "Spinel",
561
+ "export": "copy_fill",
562
+ "load": 0.00039499998092651367,
563
+ "execution": 0.0010839998722076416,
564
+ "checksum": 127908
565
+ },
566
+ {
567
+ "runtime": "Spinel",
568
+ "export": "copy_fill",
569
+ "load": 0.0003659999929368496,
570
+ "execution": 0.0011620000004768372,
571
+ "checksum": 127908
572
+ },
573
+ {
574
+ "runtime": "CRuby",
575
+ "export": "copy_fill",
576
+ "load": 0.0009930003434419632,
577
+ "execution": 0.021410999819636345,
578
+ "checksum": 127908
579
+ },
580
+ {
581
+ "runtime": "CRuby",
582
+ "export": "copy_fill",
583
+ "load": 0.0017459997907280922,
584
+ "execution": 0.02136899996548891,
585
+ "checksum": 127908
586
+ },
587
+ {
588
+ "runtime": "Spinel",
589
+ "export": "copy_fill",
590
+ "load": 0.0004000002518296242,
591
+ "execution": 0.001066999975591898,
592
+ "checksum": 127908
593
+ },
594
+ {
595
+ "runtime": "Spinel",
596
+ "export": "copy_fill",
597
+ "load": 0.0003700000233948231,
598
+ "execution": 0.0011220001615583897,
599
+ "checksum": 127908
600
+ },
601
+ {
602
+ "runtime": "CRuby",
603
+ "export": "copy_fill",
604
+ "load": 0.0016619996167719364,
605
+ "execution": 0.0209650001488626,
606
+ "checksum": 127908
607
+ },
608
+ {
609
+ "runtime": "CRuby",
610
+ "export": "copy_fill",
611
+ "load": 0.0010049999691545963,
612
+ "execution": 0.020210999995470047,
613
+ "checksum": 127908
614
+ },
615
+ {
616
+ "runtime": "Spinel",
617
+ "export": "copy_fill",
618
+ "load": 0.00040400028228759766,
619
+ "execution": 0.0010770000517368317,
620
+ "checksum": 127908
621
+ },
622
+ {
623
+ "runtime": "CRuby",
624
+ "export": "global_update",
625
+ "load": 0.0010100002400577068,
626
+ "execution": 0.0010379999876022339,
627
+ "checksum": 1664525123
628
+ },
629
+ {
630
+ "runtime": "Spinel",
631
+ "export": "global_update",
632
+ "load": 0.00039299996569752693,
633
+ "execution": 0.000055999960750341415,
634
+ "checksum": 1664525123
635
+ },
636
+ {
637
+ "runtime": "Spinel",
638
+ "export": "global_update",
639
+ "load": 0.00037400005385279655,
640
+ "execution": 0.000053999945521354675,
641
+ "checksum": 1664525123
642
+ },
643
+ {
644
+ "runtime": "CRuby",
645
+ "export": "global_update",
646
+ "load": 0.0009920001029968262,
647
+ "execution": 0.00102199986577034,
648
+ "checksum": 1664525123
649
+ },
650
+ {
651
+ "runtime": "CRuby",
652
+ "export": "global_update",
653
+ "load": 0.0009900000877678394,
654
+ "execution": 0.001023000106215477,
655
+ "checksum": 1664525123
656
+ },
657
+ {
658
+ "runtime": "Spinel",
659
+ "export": "global_update",
660
+ "load": 0.0003969999961555004,
661
+ "execution": 0.000055999960750341415,
662
+ "checksum": 1664525123
663
+ },
664
+ {
665
+ "runtime": "Spinel",
666
+ "export": "global_update",
667
+ "load": 0.0003670002333819866,
668
+ "execution": 0.000053999945521354675,
669
+ "checksum": 1664525123
670
+ },
671
+ {
672
+ "runtime": "CRuby",
673
+ "export": "global_update",
674
+ "load": 0.0009879996068775654,
675
+ "execution": 0.0010060002095997334,
676
+ "checksum": 1664525123
677
+ },
678
+ {
679
+ "runtime": "CRuby",
680
+ "export": "global_update",
681
+ "load": 0.0009969999082386494,
682
+ "execution": 0.0009850002825260162,
683
+ "checksum": 1664525123
684
+ },
685
+ {
686
+ "runtime": "Spinel",
687
+ "export": "global_update",
688
+ "load": 0.00040500005707144737,
689
+ "execution": 0.0000550001859664917,
690
+ "checksum": 1664525123
691
+ },
692
+ {
693
+ "runtime": "Spinel",
694
+ "export": "global_update",
695
+ "load": 0.00035899970680475235,
696
+ "execution": 0.0000550001859664917,
697
+ "checksum": 1664525123
698
+ },
699
+ {
700
+ "runtime": "CRuby",
701
+ "export": "global_update",
702
+ "load": 0.0010060002095997334,
703
+ "execution": 0.0010199998505413532,
704
+ "checksum": 1664525123
705
+ },
706
+ {
707
+ "runtime": "CRuby",
708
+ "export": "global_update",
709
+ "load": 0.0009969999082386494,
710
+ "execution": 0.0010369997471570969,
711
+ "checksum": 1664525123
712
+ },
713
+ {
714
+ "runtime": "Spinel",
715
+ "export": "global_update",
716
+ "load": 0.0003959997557103634,
717
+ "execution": 0.0000550001859664917,
718
+ "checksum": 1664525123
719
+ },
720
+ {
721
+ "runtime": "CRuby",
722
+ "export": "segment_init",
723
+ "load": 0.0009949998930096626,
724
+ "execution": 0.0033370000310242176,
725
+ "checksum": 70099
726
+ },
727
+ {
728
+ "runtime": "Spinel",
729
+ "export": "segment_init",
730
+ "load": 0.00039900001138448715,
731
+ "execution": 0.00015399977564811707,
732
+ "checksum": 70099
733
+ },
734
+ {
735
+ "runtime": "Spinel",
736
+ "export": "segment_init",
737
+ "load": 0.0003669997677206993,
738
+ "execution": 0.00015200022608041763,
739
+ "checksum": 70099
740
+ },
741
+ {
742
+ "runtime": "CRuby",
743
+ "export": "segment_init",
744
+ "load": 0.0009989999234676361,
745
+ "execution": 0.003383999690413475,
746
+ "checksum": 70099
747
+ },
748
+ {
749
+ "runtime": "CRuby",
750
+ "export": "segment_init",
751
+ "load": 0.001029999926686287,
752
+ "execution": 0.0033909999765455723,
753
+ "checksum": 70099
754
+ },
755
+ {
756
+ "runtime": "Spinel",
757
+ "export": "segment_init",
758
+ "load": 0.00041899969801306725,
759
+ "execution": 0.0001560002565383911,
760
+ "checksum": 70099
761
+ },
762
+ {
763
+ "runtime": "Spinel",
764
+ "export": "segment_init",
765
+ "load": 0.0003800000995397568,
766
+ "execution": 0.00015300000086426735,
767
+ "checksum": 70099
768
+ },
769
+ {
770
+ "runtime": "CRuby",
771
+ "export": "segment_init",
772
+ "load": 0.0010029999539256096,
773
+ "execution": 0.003409000113606453,
774
+ "checksum": 70099
775
+ },
776
+ {
777
+ "runtime": "CRuby",
778
+ "export": "segment_init",
779
+ "load": 0.0009960001334547997,
780
+ "execution": 0.0033740000799298286,
781
+ "checksum": 70099
782
+ },
783
+ {
784
+ "runtime": "Spinel",
785
+ "export": "segment_init",
786
+ "load": 0.0004059998318552971,
787
+ "execution": 0.00015400024130940437,
788
+ "checksum": 70099
789
+ },
790
+ {
791
+ "runtime": "Spinel",
792
+ "export": "segment_init",
793
+ "load": 0.0003609997220337391,
794
+ "execution": 0.00015300000086426735,
795
+ "checksum": 70099
796
+ },
797
+ {
798
+ "runtime": "CRuby",
799
+ "export": "segment_init",
800
+ "load": 0.0009910003282129765,
801
+ "execution": 0.0033959997817873955,
802
+ "checksum": 70099
803
+ },
804
+ {
805
+ "runtime": "CRuby",
806
+ "export": "segment_init",
807
+ "load": 0.00099500035867095,
808
+ "execution": 0.003420999739319086,
809
+ "checksum": 70099
810
+ },
811
+ {
812
+ "runtime": "Spinel",
813
+ "export": "segment_init",
814
+ "load": 0.00041400035843253136,
815
+ "execution": 0.0001559997908771038,
816
+ "checksum": 70099
817
+ }
818
+ ]
819
+ }
820
+ }