wardite 1.2.0 → 1.2.2

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -11
  3. data/benchmark/README.md +13 -5
  4. data/benchmark/call_cost_worker.rb +1 -1
  5. data/benchmark/compare.rb +2 -2
  6. data/benchmark/compare_engines.rb +1 -1
  7. data/benchmark/compare_mir_generation_builds.rb +66 -0
  8. data/benchmark/engine_phases.rb +1 -1
  9. data/benchmark/generate_mir_generation_fixtures.rb +44 -0
  10. data/benchmark/investigate_calls.rb +1 -1
  11. data/benchmark/measure_mir_generation.rb +52 -0
  12. data/benchmark/mir_copy_worker.rb +29 -0
  13. data/benchmark/mir_generation_worker.rb +50 -0
  14. data/benchmark/optimization_worker.rb +1 -1
  15. data/benchmark/prepare_mir_generation_profile.rb +80 -0
  16. data/benchmark/profile_inline_snapshots.rb +63 -0
  17. data/benchmark/profile_mir_generation_allocations.rb +73 -0
  18. data/benchmark/results/mir-generation-adr0014.json +1779 -0
  19. data/benchmark/results/mir-generation-adr0015.json +3132 -0
  20. data/benchmark/results/mir-generation-allocations.json +236 -0
  21. data/benchmark/results/mir-generation-coarse.json +909 -0
  22. data/benchmark/results/mir-generation-control.json +463 -0
  23. data/benchmark/results/mir-generation-detail.json +387 -0
  24. data/benchmark/results/mir-generation-scaling.json +2945 -0
  25. data/benchmark/validate_m4.rb +1 -1
  26. data/docs/adr/0014-efflorescence-mir-build-validation-and-decoding.md +136 -0
  27. data/docs/adr/0015-efflorescence-selective-inline-snapshots.md +150 -0
  28. data/docs/adr/0016-efflorescence-generation-tagged-copy-propagation.md +163 -0
  29. data/docs/efflorescence-ja.md +5 -6
  30. data/docs/efflorescence-mir-build-validation-and-decoding-results.md +93 -0
  31. data/docs/efflorescence-mir-generation-implementation.md +77 -0
  32. data/docs/efflorescence-mir-generation-performance.md +184 -0
  33. data/docs/efflorescence-selective-inline-snapshots-results.md +92 -0
  34. data/docs/efflorescence.md +8 -7
  35. data/lib/wardite/cli/cli.rb +7 -4
  36. data/lib/wardite/efflorescence/ir.rb +119 -37
  37. data/lib/wardite/efflorescence/optimizer.rb +65 -15
  38. data/lib/wardite/efflorescence/register_validation.rb +162 -32
  39. data/lib/wardite/instruction.rb +42 -1
  40. data/lib/wardite/leb128.rb +2 -5
  41. data/lib/wardite/load.rb +152 -74
  42. data/lib/wardite/version.rb +1 -1
  43. data/lib/wardite.rb +1 -1
  44. data/sig/generated/wardite/efflorescence/ir.rbs +29 -1
  45. data/sig/generated/wardite/efflorescence/optimizer.rbs +27 -3
  46. data/sig/generated/wardite/efflorescence/register_validation.rbs +45 -4
  47. data/sig/generated/wardite/instruction.rbs +23 -0
  48. data/sig/generated/wardite/load.rbs +61 -8
  49. metadata +23 -1
@@ -0,0 +1,463 @@
1
+ {
2
+ "revision": "1de771dcf6024792e053aa2ed9214df3a9613d8f",
3
+ "ruby": "ruby 4.0.9 (2026-10-23 revision 3e93b23afc) +PRISM [arm64-darwin27]",
4
+ "directory": "/Users/udzura/ghq/github.com/udzura/wardite/build/mir-generation-control",
5
+ "commands": {
6
+ "spinel": [
7
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/mir-generation-control/worker"
8
+ ]
9
+ },
10
+ "runs": 3,
11
+ "warmups": 1,
12
+ "variants": [
13
+ "default",
14
+ "no-inline"
15
+ ],
16
+ "timing": "load_from_buffer only; no cache or export execution; nested detail timers are inclusive",
17
+ "fixtures": {
18
+ "/Users/udzura/ghq/github.com/udzura/wardite/tmp/ruby.wasm": {
19
+ "bytes": 25163662,
20
+ "sha256": "1ac460e944a54c17529aa05e6cad4575aab6d3d2466745f935237f7a46351e98"
21
+ }
22
+ },
23
+ "samples": [
24
+ {
25
+ "fixture": "/Users/udzura/ghq/github.com/udzura/wardite/tmp/ruby.wasm",
26
+ "runtime": "spinel",
27
+ "variant": "no-inline",
28
+ "run": 1,
29
+ "phases": {
30
+ "total": {
31
+ "value": 11.087088000000222,
32
+ "calls": 1
33
+ },
34
+ "sections": {
35
+ "value": 0.0,
36
+ "calls": 0
37
+ },
38
+ "features": {
39
+ "value": 0.0,
40
+ "calls": 0
41
+ },
42
+ "store": {
43
+ "value": 0.0,
44
+ "calls": 0
45
+ },
46
+ "link": {
47
+ "value": 0.0,
48
+ "calls": 0
49
+ },
50
+ "translate": {
51
+ "value": 0.0,
52
+ "calls": 0
53
+ },
54
+ "optimize": {
55
+ "value": 0.0,
56
+ "calls": 0
57
+ },
58
+ "validate": {
59
+ "value": 0.0,
60
+ "calls": 0
61
+ },
62
+ "lower": {
63
+ "value": 0.0,
64
+ "calls": 0
65
+ },
66
+ "functions": {
67
+ "value": 8161.0,
68
+ "calls": 0
69
+ },
70
+ "instructions": {
71
+ "value": 2173080.0,
72
+ "calls": 0
73
+ },
74
+ "optimized_instructions": {
75
+ "value": 2172837.0,
76
+ "calls": 0
77
+ },
78
+ "registers": {
79
+ "value": 1383608.0,
80
+ "calls": 0
81
+ },
82
+ "max_registers": {
83
+ "value": 24568.0,
84
+ "calls": 0
85
+ },
86
+ "eligible_functions": {
87
+ "value": 292.0,
88
+ "calls": 0
89
+ },
90
+ "eligible_instructions": {
91
+ "value": 3374.0,
92
+ "calls": 0
93
+ }
94
+ },
95
+ "peak_rss_bytes": null
96
+ },
97
+ {
98
+ "fixture": "/Users/udzura/ghq/github.com/udzura/wardite/tmp/ruby.wasm",
99
+ "runtime": "spinel",
100
+ "variant": "default",
101
+ "run": 1,
102
+ "phases": {
103
+ "total": {
104
+ "value": 11.421296000000439,
105
+ "calls": 1
106
+ },
107
+ "sections": {
108
+ "value": 0.0,
109
+ "calls": 0
110
+ },
111
+ "features": {
112
+ "value": 0.0,
113
+ "calls": 0
114
+ },
115
+ "store": {
116
+ "value": 0.0,
117
+ "calls": 0
118
+ },
119
+ "link": {
120
+ "value": 0.0,
121
+ "calls": 0
122
+ },
123
+ "translate": {
124
+ "value": 0.0,
125
+ "calls": 0
126
+ },
127
+ "optimize": {
128
+ "value": 0.0,
129
+ "calls": 0
130
+ },
131
+ "validate": {
132
+ "value": 0.0,
133
+ "calls": 0
134
+ },
135
+ "lower": {
136
+ "value": 0.0,
137
+ "calls": 0
138
+ },
139
+ "functions": {
140
+ "value": 8161.0,
141
+ "calls": 0
142
+ },
143
+ "instructions": {
144
+ "value": 2173080.0,
145
+ "calls": 0
146
+ },
147
+ "optimized_instructions": {
148
+ "value": 2172832.0,
149
+ "calls": 0
150
+ },
151
+ "registers": {
152
+ "value": 1383608.0,
153
+ "calls": 0
154
+ },
155
+ "max_registers": {
156
+ "value": 24568.0,
157
+ "calls": 0
158
+ },
159
+ "eligible_functions": {
160
+ "value": 292.0,
161
+ "calls": 0
162
+ },
163
+ "eligible_instructions": {
164
+ "value": 3374.0,
165
+ "calls": 0
166
+ }
167
+ },
168
+ "peak_rss_bytes": null
169
+ },
170
+ {
171
+ "fixture": "/Users/udzura/ghq/github.com/udzura/wardite/tmp/ruby.wasm",
172
+ "runtime": "spinel",
173
+ "variant": "default",
174
+ "run": 2,
175
+ "phases": {
176
+ "total": {
177
+ "value": 11.848216000005777,
178
+ "calls": 1
179
+ },
180
+ "sections": {
181
+ "value": 0.0,
182
+ "calls": 0
183
+ },
184
+ "features": {
185
+ "value": 0.0,
186
+ "calls": 0
187
+ },
188
+ "store": {
189
+ "value": 0.0,
190
+ "calls": 0
191
+ },
192
+ "link": {
193
+ "value": 0.0,
194
+ "calls": 0
195
+ },
196
+ "translate": {
197
+ "value": 0.0,
198
+ "calls": 0
199
+ },
200
+ "optimize": {
201
+ "value": 0.0,
202
+ "calls": 0
203
+ },
204
+ "validate": {
205
+ "value": 0.0,
206
+ "calls": 0
207
+ },
208
+ "lower": {
209
+ "value": 0.0,
210
+ "calls": 0
211
+ },
212
+ "functions": {
213
+ "value": 8161.0,
214
+ "calls": 0
215
+ },
216
+ "instructions": {
217
+ "value": 2173080.0,
218
+ "calls": 0
219
+ },
220
+ "optimized_instructions": {
221
+ "value": 2172832.0,
222
+ "calls": 0
223
+ },
224
+ "registers": {
225
+ "value": 1383608.0,
226
+ "calls": 0
227
+ },
228
+ "max_registers": {
229
+ "value": 24568.0,
230
+ "calls": 0
231
+ },
232
+ "eligible_functions": {
233
+ "value": 292.0,
234
+ "calls": 0
235
+ },
236
+ "eligible_instructions": {
237
+ "value": 3374.0,
238
+ "calls": 0
239
+ }
240
+ },
241
+ "peak_rss_bytes": null
242
+ },
243
+ {
244
+ "fixture": "/Users/udzura/ghq/github.com/udzura/wardite/tmp/ruby.wasm",
245
+ "runtime": "spinel",
246
+ "variant": "no-inline",
247
+ "run": 2,
248
+ "phases": {
249
+ "total": {
250
+ "value": 10.805193000000145,
251
+ "calls": 1
252
+ },
253
+ "sections": {
254
+ "value": 0.0,
255
+ "calls": 0
256
+ },
257
+ "features": {
258
+ "value": 0.0,
259
+ "calls": 0
260
+ },
261
+ "store": {
262
+ "value": 0.0,
263
+ "calls": 0
264
+ },
265
+ "link": {
266
+ "value": 0.0,
267
+ "calls": 0
268
+ },
269
+ "translate": {
270
+ "value": 0.0,
271
+ "calls": 0
272
+ },
273
+ "optimize": {
274
+ "value": 0.0,
275
+ "calls": 0
276
+ },
277
+ "validate": {
278
+ "value": 0.0,
279
+ "calls": 0
280
+ },
281
+ "lower": {
282
+ "value": 0.0,
283
+ "calls": 0
284
+ },
285
+ "functions": {
286
+ "value": 8161.0,
287
+ "calls": 0
288
+ },
289
+ "instructions": {
290
+ "value": 2173080.0,
291
+ "calls": 0
292
+ },
293
+ "optimized_instructions": {
294
+ "value": 2172837.0,
295
+ "calls": 0
296
+ },
297
+ "registers": {
298
+ "value": 1383608.0,
299
+ "calls": 0
300
+ },
301
+ "max_registers": {
302
+ "value": 24568.0,
303
+ "calls": 0
304
+ },
305
+ "eligible_functions": {
306
+ "value": 292.0,
307
+ "calls": 0
308
+ },
309
+ "eligible_instructions": {
310
+ "value": 3374.0,
311
+ "calls": 0
312
+ }
313
+ },
314
+ "peak_rss_bytes": null
315
+ },
316
+ {
317
+ "fixture": "/Users/udzura/ghq/github.com/udzura/wardite/tmp/ruby.wasm",
318
+ "runtime": "spinel",
319
+ "variant": "no-inline",
320
+ "run": 3,
321
+ "phases": {
322
+ "total": {
323
+ "value": 10.716241999994963,
324
+ "calls": 1
325
+ },
326
+ "sections": {
327
+ "value": 0.0,
328
+ "calls": 0
329
+ },
330
+ "features": {
331
+ "value": 0.0,
332
+ "calls": 0
333
+ },
334
+ "store": {
335
+ "value": 0.0,
336
+ "calls": 0
337
+ },
338
+ "link": {
339
+ "value": 0.0,
340
+ "calls": 0
341
+ },
342
+ "translate": {
343
+ "value": 0.0,
344
+ "calls": 0
345
+ },
346
+ "optimize": {
347
+ "value": 0.0,
348
+ "calls": 0
349
+ },
350
+ "validate": {
351
+ "value": 0.0,
352
+ "calls": 0
353
+ },
354
+ "lower": {
355
+ "value": 0.0,
356
+ "calls": 0
357
+ },
358
+ "functions": {
359
+ "value": 8161.0,
360
+ "calls": 0
361
+ },
362
+ "instructions": {
363
+ "value": 2173080.0,
364
+ "calls": 0
365
+ },
366
+ "optimized_instructions": {
367
+ "value": 2172837.0,
368
+ "calls": 0
369
+ },
370
+ "registers": {
371
+ "value": 1383608.0,
372
+ "calls": 0
373
+ },
374
+ "max_registers": {
375
+ "value": 24568.0,
376
+ "calls": 0
377
+ },
378
+ "eligible_functions": {
379
+ "value": 292.0,
380
+ "calls": 0
381
+ },
382
+ "eligible_instructions": {
383
+ "value": 3374.0,
384
+ "calls": 0
385
+ }
386
+ },
387
+ "peak_rss_bytes": null
388
+ },
389
+ {
390
+ "fixture": "/Users/udzura/ghq/github.com/udzura/wardite/tmp/ruby.wasm",
391
+ "runtime": "spinel",
392
+ "variant": "default",
393
+ "run": 3,
394
+ "phases": {
395
+ "total": {
396
+ "value": 11.171658999999636,
397
+ "calls": 1
398
+ },
399
+ "sections": {
400
+ "value": 0.0,
401
+ "calls": 0
402
+ },
403
+ "features": {
404
+ "value": 0.0,
405
+ "calls": 0
406
+ },
407
+ "store": {
408
+ "value": 0.0,
409
+ "calls": 0
410
+ },
411
+ "link": {
412
+ "value": 0.0,
413
+ "calls": 0
414
+ },
415
+ "translate": {
416
+ "value": 0.0,
417
+ "calls": 0
418
+ },
419
+ "optimize": {
420
+ "value": 0.0,
421
+ "calls": 0
422
+ },
423
+ "validate": {
424
+ "value": 0.0,
425
+ "calls": 0
426
+ },
427
+ "lower": {
428
+ "value": 0.0,
429
+ "calls": 0
430
+ },
431
+ "functions": {
432
+ "value": 8161.0,
433
+ "calls": 0
434
+ },
435
+ "instructions": {
436
+ "value": 2173080.0,
437
+ "calls": 0
438
+ },
439
+ "optimized_instructions": {
440
+ "value": 2172832.0,
441
+ "calls": 0
442
+ },
443
+ "registers": {
444
+ "value": 1383608.0,
445
+ "calls": 0
446
+ },
447
+ "max_registers": {
448
+ "value": 24568.0,
449
+ "calls": 0
450
+ },
451
+ "eligible_functions": {
452
+ "value": 292.0,
453
+ "calls": 0
454
+ },
455
+ "eligible_instructions": {
456
+ "value": 3374.0,
457
+ "calls": 0
458
+ }
459
+ },
460
+ "peak_rss_bytes": null
461
+ }
462
+ ]
463
+ }