wardite 0.9.0 → 1.0.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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +191 -0
  3. data/Makefile +14 -0
  4. data/README.md +80 -1
  5. data/Rakefile +5 -0
  6. data/benchmark/README.md +500 -0
  7. data/benchmark/build_call_profile.rb +42 -0
  8. data/benchmark/call_cost_worker.rb +27 -0
  9. data/benchmark/compare.rb +93 -0
  10. data/benchmark/compare_call_types.rb +212 -0
  11. data/benchmark/compare_dispatch.rb +123 -0
  12. data/benchmark/compare_engines.rb +119 -0
  13. data/benchmark/compare_optimizations.rb +139 -0
  14. data/benchmark/engine_phases.rb +30 -0
  15. data/benchmark/figures/README.md +35 -0
  16. data/benchmark/figures/plot_spinel_comparison.py +137 -0
  17. data/benchmark/figures/spinel_new_vm_candlestick.png +0 -0
  18. data/benchmark/figures/spinel_new_vm_candlestick.svg +7615 -0
  19. data/benchmark/figures/spinel_new_vm_summary.csv +9 -0
  20. data/benchmark/figures/spinel_new_vm_summary.json +82 -0
  21. data/benchmark/float_m5.wat +42 -0
  22. data/benchmark/i32_call_arities.wat +89 -0
  23. data/benchmark/i32_calls.wat +174 -0
  24. data/benchmark/i32_memory.wat +58 -0
  25. data/benchmark/i32_mix.wat +80 -0
  26. data/benchmark/i64_m4.wat +55 -0
  27. data/benchmark/investigate_calls.rb +231 -0
  28. data/benchmark/investigate_generated_guards.rb +218 -0
  29. data/benchmark/m3_call_worker.rb +38 -0
  30. data/benchmark/measure_m1.rb +51 -0
  31. data/benchmark/measure_m2.rb +55 -0
  32. data/benchmark/measure_m3_calls.rb +89 -0
  33. data/benchmark/measure_m4.rb +134 -0
  34. data/benchmark/measure_m5_boundary.rb +41 -0
  35. data/benchmark/measure_wasi_write.rb +75 -0
  36. data/benchmark/optimization_worker.rb +23 -0
  37. data/benchmark/results/call_arities_exploratory_2026-11-04.json +4320 -0
  38. data/benchmark/results/call_arities_spinel_2026-11-04.json +1200 -0
  39. data/benchmark/results/call_cost_spinel_2026-11-04.json +2392 -0
  40. data/benchmark/results/call_protocol_exploratory_2026-11-04.json +3947 -0
  41. data/benchmark/results/call_protocol_profile_2026-11-04.json +383 -0
  42. data/benchmark/results/call_protocol_ruby_2026-11-04.json +1213 -0
  43. data/benchmark/results/call_protocol_spinel_2026-11-04.json +913 -0
  44. data/benchmark/results/call_types_ruby_2026-11-04.json +1212 -0
  45. data/benchmark/results/call_types_spinel_2026-11-04.json +923 -0
  46. data/benchmark/results/efflorescence-m1-cruby.json +799 -0
  47. data/benchmark/results/efflorescence-m1-spinel.json +799 -0
  48. data/benchmark/results/efflorescence-m2-bulk-loop.json +820 -0
  49. data/benchmark/results/efflorescence-m2-i32-cruby.json +799 -0
  50. data/benchmark/results/efflorescence-m2-i32-spinel.json +799 -0
  51. data/benchmark/results/efflorescence-m2-memory.json +408 -0
  52. data/benchmark/results/generated_guards_exploratory_2026-11-04.json +1225 -0
  53. data/benchmark/results/generated_guards_profile_2026-11-04.json +592 -0
  54. data/benchmark/results/generated_guards_spinel_2026-11-04.json +1650 -0
  55. data/benchmark/results/generated_guards_validation_2026-11-04.json +256 -0
  56. data/benchmark/results/inlining_engines_2026-11-04.json +241 -0
  57. data/benchmark/results/inlining_ruby_2026-11-04.json +1213 -0
  58. data/benchmark/results/inlining_spinel_2026-11-04.json +893 -0
  59. data/benchmark/results/operand_decode_exploratory_2026-11-04.json +1319 -0
  60. data/benchmark/results/operand_decode_ruby_2026-11-04.json +1213 -0
  61. data/benchmark/results/operand_decode_spinel_2026-11-04.json +924 -0
  62. data/benchmark/results/selective_reset_spinel_2026-11-04.json +454 -0
  63. data/benchmark/results/selective_reset_spinel_2026-11-04_exploratory.json +2679 -0
  64. data/benchmark/results/spinel_fetch_root_patch_2026-11-04.json +4523 -0
  65. data/benchmark/results/while_final_compiler_comparison_2026-11-04.json +324 -0
  66. data/benchmark/results/while_patched_external_2026-11-04.json +220 -0
  67. data/benchmark/results/while_user_unpatched_2026-11-04.json +230 -0
  68. data/benchmark/summarize_call_profile.py +54 -0
  69. data/benchmark/validate_m1_eh.rb +34 -0
  70. data/benchmark/validate_m2.rb +119 -0
  71. data/benchmark/validate_m3.rb +44 -0
  72. data/benchmark/validate_m4.rb +95 -0
  73. data/benchmark/validate_m5.rb +108 -0
  74. data/docs/adr/0001-efflorescence-m1-control-and-eh.md +319 -0
  75. data/docs/adr/0002-efflorescence-m2-memory-and-globals.md +185 -0
  76. data/docs/adr/0003-efflorescence-m3-host-and-indirect-calls.md +228 -0
  77. data/docs/adr/0004-efflorescence-m4-i64.md +202 -0
  78. data/docs/adr/0005-efflorescence-m5-floating-point.md +127 -0
  79. data/docs/adr/0006-efflorescence-m6-coverage-parity.md +101 -0
  80. data/docs/efflorescence-call-arities.md +115 -0
  81. data/docs/efflorescence-call-investigation.md +155 -0
  82. data/docs/efflorescence-call-transfer.md +128 -0
  83. data/docs/efflorescence-call-types.md +102 -0
  84. data/docs/efflorescence-coverage-ja.md +351 -0
  85. data/docs/efflorescence-generated-c-guards.md +405 -0
  86. data/docs/efflorescence-inlining.md +165 -0
  87. data/docs/efflorescence-ja.md +155 -0
  88. data/docs/efflorescence-m1.md +160 -0
  89. data/docs/efflorescence-m2.md +233 -0
  90. data/docs/efflorescence-m3.md +131 -0
  91. data/docs/efflorescence-m4.md +88 -0
  92. data/docs/efflorescence-m5.md +82 -0
  93. data/docs/efflorescence-m6.md +95 -0
  94. data/docs/efflorescence-operand-decoding.md +105 -0
  95. data/docs/efflorescence-phase2-ja.md +225 -0
  96. data/docs/efflorescence-phase2.md +240 -0
  97. data/docs/efflorescence-register-initialization.md +75 -0
  98. data/docs/efflorescence.md +144 -0
  99. data/docs/spinel-string-aset-inplace-proposal.md +200 -0
  100. data/lib/wardite/alu_f32.generated.rb +1 -0
  101. data/lib/wardite/alu_f64.generated.rb +1 -0
  102. data/lib/wardite/alu_i32.generated.rb +14 -9
  103. data/lib/wardite/alu_i64.generated.rb +18 -20
  104. data/lib/wardite/cli/cli.rb +61 -28
  105. data/lib/wardite/const.rb +1 -0
  106. data/lib/wardite/efflorescence/float_arithmetic.rb +216 -0
  107. data/lib/wardite/efflorescence/i64_arithmetic.rb +257 -0
  108. data/lib/wardite/efflorescence/inspection.rb +165 -0
  109. data/lib/wardite/efflorescence/ir.rb +1151 -0
  110. data/lib/wardite/efflorescence/optimizer.rb +580 -0
  111. data/lib/wardite/efflorescence/register_validation.rb +290 -0
  112. data/lib/wardite/efflorescence/store_access.rb +271 -0
  113. data/lib/wardite/efflorescence/translator.rb +859 -0
  114. data/lib/wardite/efflorescence/vm.rb +1006 -0
  115. data/lib/wardite/efflorescence/wasi.rb +108 -0
  116. data/lib/wardite/efflorescence.rb +11 -0
  117. data/lib/wardite/errors.rb +20 -0
  118. data/lib/wardite/float_bits.rb +46 -0
  119. data/lib/wardite/instruction.rb +35 -4
  120. data/lib/wardite/leb128.rb +33 -12
  121. data/lib/wardite/load.rb +203 -138
  122. data/lib/wardite/value.rb +169 -175
  123. data/lib/wardite/version.rb +1 -1
  124. data/lib/wardite/wasi/consts.rb +1 -0
  125. data/lib/wardite/wasm_module.rb +6 -3
  126. data/lib/wardite.rb +184 -70
  127. data/rbs_collection.lock.yaml +36 -96
  128. data/scripts/gen_alu.rb +66 -10
  129. data/sig/generated/wardite/cli/cli.rbs +8 -6
  130. data/sig/generated/wardite/const.rbs +2 -0
  131. data/sig/generated/wardite/efflorescence/float_arithmetic.rbs +65 -0
  132. data/sig/generated/wardite/efflorescence/i64_arithmetic.rbs +99 -0
  133. data/sig/generated/wardite/efflorescence/inspection.rbs +64 -0
  134. data/sig/generated/wardite/efflorescence/ir.rbs +881 -0
  135. data/sig/generated/wardite/efflorescence/optimizer.rbs +189 -0
  136. data/sig/generated/wardite/efflorescence/register_validation.rbs +76 -0
  137. data/sig/generated/wardite/efflorescence/store_access.rbs +134 -0
  138. data/sig/generated/wardite/efflorescence/translator.rbs +214 -0
  139. data/sig/generated/wardite/efflorescence/vm.rbs +179 -0
  140. data/sig/generated/wardite/efflorescence/wasi.rbs +47 -0
  141. data/sig/generated/wardite/errors.rbs +12 -0
  142. data/sig/generated/wardite/float_bits.rbs +30 -0
  143. data/sig/generated/wardite/instruction.rbs +22 -1
  144. data/sig/generated/wardite/leb128.rbs +3 -1
  145. data/sig/generated/wardite/load.rbs +29 -4
  146. data/sig/generated/wardite/value.rbs +70 -11
  147. data/sig/generated/wardite/wasi/consts.rbs +2 -0
  148. data/sig/generated/wardite.rbs +49 -12
  149. data/sig/vernier.rbs +2 -2
  150. data/spinel/README.md +30 -0
  151. data/spinel/bin/wardite.rb +6 -0
  152. data/spinel/spin.toml +7 -0
  153. metadata +126 -3
@@ -0,0 +1,4523 @@
1
+ {
2
+ "spinel_commit": "6e7fc13556709bf7d7ba4af5bd1d12bebc00733e",
3
+ "spinel_branch": "codex/fetch-root-elision",
4
+ "spinel_patch": "diff --git a/Makefile b/Makefile\nindex 94ec0c111..f3c6f2c20 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -1842,7 +1842,7 @@ test-run: decisions-test\n # would be named by no bisect. A key holds the whole of a long name.\n # Each kind also has its row in the table in tools/README.md.\n DECISION_TESTS = $(shell grep -l '^\\# spinel: decisions$$' test/*.rb test/fixtures/decisions/*.rb)\n-DECISION_KINDS = aon-get case-root fetch-inert gc-save index-sum inline-force masgn-root nn-inb nn-read no-alloc \\\n+DECISION_KINDS = aon-get case-root fetch-inert fetch-slot gc-save index-sum inline-force masgn-root nn-inb nn-read no-alloc \\\n pd-hoist push-slot root-elide root-frame strbuf-raw\n decisions-test: $(SPINEL) $(SPINEL_TIMEOUT)\n \t@ok=1; tmp=$$(mktemp -d /tmp/spinel-decisions.XXXXXX); : > \"$$tmp/none\"; \\\ndiff --git a/src/codegen_call_recv.c b/src/codegen_call_recv.c\nindex 23c578ff7..a5edfa2e8 100644\n--- a/src/codegen_call_recv.c\n+++ b/src/codegen_call_recv.c\n@@ -1386,6 +1386,38 @@ static int fetch_operand_is_inert(Compiler *c, int n) {\n }\n }\n \n+/* A fetch receiver held in an ordinary rooted C local needs no second\n+ root while an inert integer index is evaluated. Keep captures, temporary\n+ receivers, defaults and blocks on the existing path. In particular, a\n+ type alone does not prove `+` inert: a reopened operator can rebind the\n+ local through a closure and collect the old receiver. */\n+static int fetch_recv_in_slot(Compiler *c, int recv, int index, const char *rendered) {\n+ const NodeTable *nt = c->nt;\n+ if (nt_kind(nt, recv) != NK_LocalVariableReadNode) return 0;\n+ const char *nm = nt_str(nt, recv, \"name\");\n+ if (!nm) return 0;\n+ LocalVar *lv = scope_local(comp_scope_of(c, recv), nm);\n+ if (!lv || lv->is_cell || (g_cap_struct && g_cap_names && nameset_has(g_cap_names, nm))) return 0;\n+ char want[300];\n+ snprintf(want, sizeof want, \"lv_%s\", nm);\n+ if (!rendered || !sp_streq(rendered, want)) return 0;\n+\n+ index = nt_paren_single(nt, index);\n+ if (index < 0 || repr_of(c, index).kind != RK_SCALAR || comp_ntype(c, index) != TY_INT) return 0;\n+ NodeKind k = nt_kind(nt, index);\n+ if (k == NK_CallNode) {\n+ const char *op = nt_str(nt, index, \"name\");\n+ int ir = nt_ref(nt, index, \"receiver\"), ac = 0;\n+ const int *av = call_args(nt, index, &ac);\n+ if (!op || !sp_streq(op, \"+\") || nt_ref(nt, index, \"block\") >= 0 || ac != 1 ||\n+ nt_kind(nt, av[0]) != NK_IntegerNode || comp_ntype(c, av[0]) != TY_INT ||\n+ ir < 0 || nt_kind(nt, ir) != NK_LocalVariableReadNode || comp_ntype(c, ir) != TY_INT ||\n+ repr_of(c, ir).kind != RK_SCALAR || cplan_user(c, index)->dispatch != CP_NONE) return 0;\n+ }\n+ else if (k != NK_IntegerNode && k != NK_LocalVariableReadNode) return 0;\n+ return decide_node(nt, recv, \"fetch-slot\", NULL);\n+}\n+\n /* The text argument of String#insert. A splat there (`s.insert(i, *r)`, left\n whole because Array#insert takes any count) has to hold exactly the text. */\n void emit_str_insert_text(Compiler *c, int arg, Buf *b) {\n@@ -2620,7 +2652,9 @@ else {\n return or a chain is held by nothing else, and an index that\n allocates let a collection hand the array's slot on before the\n length and the element were read. */\n- buf_printf(b, \"({ sp_%sArray *_t%d = %s; SP_GC_ROOT(_t%d);\", k, ta, ra.p ? ra.p : \"NULL\", ta); free(ra.p);\n+ int held = argc == 1 && blk < 0 && fetch_recv_in_slot(c, recv, argv[0], ra.p);\n+ buf_printf(b, \"({ sp_%sArray *_t%d = %s;\", k, ta, ra.p ? ra.p : \"NULL\"); free(ra.p);\n+ if (!held) buf_printf(b, \" SP_GC_ROOT(_t%d);\", ta);\n buf_printf(b, \" sp_int _t%d = \", ti); emit_int_expr(c, argv[0], b); buf_puts(b, \";\");\n buf_printf(b, \" sp_int _t%d = sp_%sArray_length(_t%d);\", tn, k, ta);\n buf_printf(b, \" sp_int _t%d = _t%d < 0 ? _t%d + _t%d : _t%d;\", tnorm, ti, ti, tn, ti);\ndiff --git a/tools/README.md b/tools/README.md\nindex 98d9a3b01..9e1f4a397 100644\n--- a/tools/README.md\n+++ b/tools/README.md\n@@ -817,6 +817,7 @@ file, no compiler, a bad option). This is a contract.\n | `case-root` | a `case` subject is not rooted across its `when` tests; denied, it is |\n | `masgn-root` | a multiple assignment's part is not rooted across the others; denied, it is |\n | `fetch-inert` | a Hash#fetch key or default is a local or a scalar literal, so the receiver takes no root and the default is evaluated up front; denied, the receiver is rooted and the default waits for a miss |\n+| `fetch-slot` | a one-argument Array#fetch reads a plain rooted local with an inert integer index (a literal, local or builtin local-plus-literal); denied, the receiver temp is rooted |\n | `push-slot` | the temp holding the receiver of `a << x` (and of unshift, prepend) takes no root, the receiver's own slot keeping it; denied, it is rooted |\n | `aon-get` | an index read whose receiver is proved a poly array or nil skips the dispatch on its type; denied, it dispatches |\n | `index-sum` | an index `x + c` or `x - c` read or stored in a loop that holds the array's header is summed wrapped, its checked sum taken again only where the bounds compare fails (#8782); denied, the sum is checked first |\n",
5
+ "compiler_sha256": {
6
+ "compiler-baseline": "accef97125716f36d9e953411958974907fc7fae6163e3790c9e739b556a4682",
7
+ "compiler-patch": "9efa73d81f09c91f603408ed27875d2b3f2b60add09dcb95394cfa5d6a56a523"
8
+ },
9
+ "fixture": {
10
+ "wat_sha256": "c1d607a759aa03ba265dd81b1b59ad23b00c1c31a4130b5d4ac93a20c4d18e2d",
11
+ "wasm_sha256": "c056fc8b3084432daae83bfac1b1a9bc53f12f12a18a37d85b41f3d031028407"
12
+ },
13
+ "native_flags": [
14
+ "-O2"
15
+ ],
16
+ "seed": 123,
17
+ "runs": 7,
18
+ "warmups": 2,
19
+ "note": "Worker phases and separately built CLI processes. Timings in raw samples are seconds, summaries milliseconds. Build runs verify all eight original acceptance inputs. MIR counters run separately at 10 rounds.",
20
+ "build_reports": {
21
+ "compiler-baseline": {
22
+ "commit": "999fde3d898a3a2ef8a2825ec3567835cb546cd5",
23
+ "spinel": "spinel 2026.10.25+1967 (6e7fc1355) [apple clang 21.0.0 (cc)]",
24
+ "cc": "Apple clang version 21.0.0 (clang-2100.3.34.2)",
25
+ "native_flags": [
26
+ "-O2"
27
+ ],
28
+ "rounds": 10,
29
+ "seed": 123,
30
+ "checksum": 483678737,
31
+ "fixture": {
32
+ "wat_sha256": "c1d607a759aa03ba265dd81b1b59ad23b00c1c31a4130b5d4ac93a20c4d18e2d",
33
+ "wasm_sha256": "c056fc8b3084432daae83bfac1b1a9bc53f12f12a18a37d85b41f3d031028407"
34
+ },
35
+ "runs": 2,
36
+ "warmups": 0,
37
+ "cli": true,
38
+ "snapshots": {
39
+ "baseline": {
40
+ "source_sha256": {
41
+ "benchmark/call_cost_worker.rb": "4e04ed585bc9aa71c3c1f130f4d9954a6a5a7d63a96ece8d3e672203b4b85ae6",
42
+ "exe/wardite": "2f3995ccba16f2dee01d1c6fffbb52fa97050aa37c547aae24f93b04a2520cd0",
43
+ "lib/wardite.rb": "0c692293a62a3e5447ee3218ad2220c58e1442e2dbd0968f8f0d351dfc034f32",
44
+ "lib/wardite/alu_f32.generated.rb": "8f7513a0eedf822d646fee25466ae3299c62755f4df644719c388c757e0a1d0c",
45
+ "lib/wardite/alu_f64.generated.rb": "7ab9da56f49811f84e34d447ba7f6805beb23b5b850ed3910ed05a08f666af15",
46
+ "lib/wardite/alu_i32.generated.rb": "24f11c231a3a516da182a96c18f3567400b4dc50eaea83c47c029199a664406f",
47
+ "lib/wardite/alu_i64.generated.rb": "de661f710e0714436924fac7f5887c2b47870a9bf9644cdb1a1eea7cc4978470",
48
+ "lib/wardite/cli/cli.rb": "500e94432ec07174634bf590dd510e1d9dd6a8be0d1ce79d58af5b52e4b36346",
49
+ "lib/wardite/const.rb": "ca9531b1230ae85ce1d55e0853b09de8446570de5373a99d1803907683fcbe95",
50
+ "lib/wardite/convert.generated.rb": "54d5ebe5074f5bfb80df4ef3f07bc59eb04f61ff6c69212a55aa2e2a6fe9751f",
51
+ "lib/wardite/efflorescence.rb": "afd9614cee6b644c6aecdff42bec4212291acccb3d76881c7b0000bfe66ba0d3",
52
+ "lib/wardite/efflorescence/inspection.rb": "5728baa6b20ec4e729b491e47ba784d3951282a3a8341ffc07328133ad4d7226",
53
+ "lib/wardite/efflorescence/ir.rb": "c2a6600d7b6f987a135e82642b6e1f269d1e3d77b9fc0d6e3fda9582101f3d04",
54
+ "lib/wardite/efflorescence/optimizer.rb": "ae07a5c1a34a303d20abe956d53fc8725c36c5c70c4ed100c873ca0d6f31a471",
55
+ "lib/wardite/efflorescence/register_validation.rb": "818e437bdbacfb86fb12fa2553c756cc78de31acbd8351c7a61584a88c995019",
56
+ "lib/wardite/efflorescence/translator.rb": "654e508ed40c9f622cb3fdd481d44b6cf040b1808dd342165bd4a7d95284fcda",
57
+ "lib/wardite/efflorescence/vm.rb": "675c6c3cfc629f302a3c50ce951c4a161d04b0db3d806a60f8b8ed73ee405b90",
58
+ "lib/wardite/errors.rb": "fd6761677535e9128965899ab57a7a27182dc3c221ac24e33619327fae78d9bf",
59
+ "lib/wardite/instruction.rb": "c2614c735e9b2b3824fb75c90f535612aebe6000f54426aa2f6a753b35f44ac8",
60
+ "lib/wardite/leb128.rb": "b24b179e1e0943768bf2de8f76215482c4d9b6bbf9417f50a6651161fde05fac",
61
+ "lib/wardite/load.rb": "985bf6d88dc7cefed183c10168d0d68e7aec8ee6aaf9c286bcd4db835b055c81",
62
+ "lib/wardite/revisitor.rb": "e5637fb63e919bb451ad95175a1042a178cab66e170a7be56ca8cb19d4dd60da",
63
+ "lib/wardite/value.rb": "82d9f7f2aa75f1e9b767e01e451f10ab732a18c5a4e3fcdf5e61bb84b1257dea",
64
+ "lib/wardite/version.rb": "e5c5254c8f758ec74991d3b53dd33596c943a144fc1b44d9570c1a5eb894d8d9",
65
+ "lib/wardite/wasi.rb": "c2949b28da1ea1dd7ebd119c39988cb174d5e97d23a5e29a94fcd2fc601e56f4",
66
+ "lib/wardite/wasi/consts.rb": "66eb9d398990ec6be7428659b9dfbaf46fbd966bb0e7611067a7257d23ffa154",
67
+ "lib/wardite/wasi/dirent_cache.rb": "ea203f0008b9ad0755f78dd89b43cf8759c8963fb5ad4fa18cfdf6d37b52a762",
68
+ "lib/wardite/wasi/preopens.rb": "74a5d81548b5646b96861a18b8efba90e0ad1e5e5ff1eabd9520a2571cf35970",
69
+ "lib/wardite/wasm_module.rb": "202463cd20fd6d1b2e7f4093c324304d1c665def4724851bd26eea064588b231"
70
+ },
71
+ "vm_source": "# frozen_string_literal: true\n# rbs_inline: enabled\n\nmodule Wardite\n module Efflorescence\n class VM\n attr_reader :instance #: Wardite::Instance\n attr_reader :ir #: Wardite::Efflorescence::IR\n attr_reader :semantic_ir #: Wardite::Efflorescence::IR\n attr_reader :optimized_ir #: Wardite::Efflorescence::IR\n attr_reader :metrics #: Wardite::Efflorescence::Metrics\n\n # @rbs instance: Wardite::Instance\n # @rbs disabled_optimizations: Array[Symbol]\n # @rbs profile: bool\n def initialize(instance, disabled_optimizations: [], profile: false)\n @instance = instance\n configuration = Configuration.new(disabled_optimizations)\n @flat = configuration.enabled?(:flat)\n @reuse_frames = configuration.enabled?(:frames)\n @profiling = profile\n @metrics = Metrics.new\n @semantic_ir = Translator.new(instance).translate\n @optimized_ir = Optimizer.new(configuration).optimize(@semantic_ir)\n @optimized_ir.functions.each { |function| RegisterValidation.new.validate(function) }\n @ir = profile ? Instrumentation.new.instrument(@optimized_ir) : @optimized_ir\n Lowerer.new.compile(@ir) if @flat\n start = instance.start_section\n execute(start.func_index, []) if start\n end\n\n # @rbs name: String|Symbol\n # @rbs return: bool\n def callable?(name)\n export = @instance.export_section.exports[name.to_s]\n !!export && export.kind == 0\n end\n\n # Compatible with Runtime.call: boxing happens once, at the Ruby boundary.\n # @rbs name: String|Symbol\n # @rbs arguments: Array[Object]\n # @rbs return: Wardite::I32?\n def call(name, arguments)\n result = call_unboxed(name, arguments)\n result.nil? ? nil : Wardite::I32.new(result)\n end\n\n # @rbs name: String|Symbol\n # @rbs arguments: Array[Object]\n # @rbs return: Integer?\n def call_unboxed(name, arguments)\n export = @instance.export_section.exports[name.to_s]\n raise ::NoMethodError, \"function #{name} not found\" unless export\n raise ::NoMethodError, \"#{name} is not a function\" unless export.kind == 0\n function = @ir.functions[export.index] || raise(Wardite::EvalError, \"invalid function index\")\n unless arguments.size == function.parameter_count\n raise Wardite::ArgumentError, \"unmatch arg size\"\n end\n values = [] #: Array[Integer]\n arguments.each do |value|\n raise Wardite::ArgumentError, \"type mismatch: i32(#{value})\" unless value.is_a?(Integer)\n values << (value & 0xffffffff)\n end\n result = execute(export.index, values)\n function.result_types.empty? ? nil : result\n end\n\n # @rbs name: Symbol\n # @rbs *arguments: Object\n # @rbs return: Wardite::I32?\n def method_missing(name, *arguments)\n callable?(name) ? call(name, arguments) : super\n end\n\n # @rbs name: String|Symbol\n # @rbs include_private: bool\n # @rbs return: bool\n def respond_to_missing?(name, include_private = false)\n callable?(name) || super\n end\n\n # @rbs return: String\n def dump_mir\n inspection = Inspection.new\n \"Semantic MIR (#{inspection.statistics(@semantic_ir)})\\n#{inspection.disassemble(@semantic_ir)}\\n\" \\\n \"Optimized MIR (#{inspection.statistics(@optimized_ir)})\\n#{inspection.disassemble(@optimized_ir)}\"\n end\n\n private\n\n # A concrete return type breaks the inference cycle between the current\n # frame and the array it is restored from after every internal RETURN.\n # @rbs return: Wardite::Efflorescence::Frame\n def current_frame(frames)\n frames.last || raise(Wardite::EvalError, \"missing MIR caller\")\n end\n\n # No Wasm operand stack, boxed values, or recursive Ruby calls here.\n # Every register array contains only normalized i32 Integers. Void calls\n # use destination -1; execute returns an unused integer for a void entry.\n # @rbs index: Integer\n # @rbs arguments: Array[Integer]\n # @rbs return: Integer\n def execute(index, arguments)\n pools = [] #: Array[Wardite::Efflorescence::FramePool]\n @ir.functions.each { |function| pools << FramePool.new(function, @reuse_frames) }\n function = @ir.functions[index] || raise(Wardite::EvalError, \"invalid function index #{index}\")\n pool = pools[function.index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n frame = pool.acquire(-1)\n arguments.each_with_index { |value, i| frame.registers[i] = value }\n @metrics = Metrics.new if @profiling\n @flat ? execute_flat(frame, pools) : execute_semantic(frame, pools)\n ensure\n if @profiling\n created = 0\n pools.each { |pool| created += pool.created }\n @metrics.frames_created = created\n end\n end\n\n # @rbs frame: Wardite::Efflorescence::Frame\n # @rbs pools: Array[Wardite::Efflorescence::FramePool]\n # @rbs return: Integer\n def execute_semantic(frame, pools)\n frames = [] #: Array[Wardite::Efflorescence::Frame]\n frames << frame\n registers = frame.registers\n instructions = frame.function.instructions\n pc = 0\n loop do\n instruction = instructions[pc] || raise(Wardite::EvalError, \"Efflorescence: invalid MIR PC #{pc}\")\n pc += 1\n # Integer literal labels let Spinel emit a C switch. Keep the\n # Opcode comments in sync; the dispatch contract test checks them.\n case instruction[0]\n when 0 # Opcode::COPY\n registers[instruction[1]] = registers[instruction[2]]\n when 1 # Opcode::I32_ADD\n registers[instruction[1]] = (registers[instruction[2]] + registers[instruction[3]]) & 0xffffffff\n when 2 # Opcode::I32_SUB\n registers[instruction[1]] = (registers[instruction[2]] - registers[instruction[3]]) & 0xffffffff\n when 3 # Opcode::I32_MUL\n # A full unsigned i32 product can overflow Spinel's native signed\n # word. Split into 16-bit limbs; all intermediates fit in 49 bits.\n left = registers[instruction[2]]\n right = registers[instruction[3]]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[instruction[1]] = (low + high) & 0xffffffff\n when 4 # Opcode::I32_XOR\n registers[instruction[1]] = registers[instruction[2]] ^ registers[instruction[3]]\n when 5 # Opcode::I32_SHL\n registers[instruction[1]] = (registers[instruction[2]] << (registers[instruction[3]] & 31)) & 0xffffffff\n when 6 # Opcode::I32_SHR_U\n registers[instruction[1]] = registers[instruction[2]] >> (registers[instruction[3]] & 31)\n when 7 # Opcode::I32_EQZ\n registers[instruction[1]] = registers[instruction[2]] == 0 ? 1 : 0\n when 13 # Opcode::I32_ADD_IMM\n registers[instruction[1]] = (registers[instruction[2]] + instruction[3]) & 0xffffffff\n when 14 # Opcode::I32_SUB_IMM\n registers[instruction[1]] = (registers[instruction[2]] - instruction[3]) & 0xffffffff\n when 15 # Opcode::I32_MUL_IMM\n left = registers[instruction[2]]\n right = instruction[3]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[instruction[1]] = (low + high) & 0xffffffff\n when 16 # Opcode::I32_XOR_IMM\n registers[instruction[1]] = registers[instruction[2]] ^ instruction[3]\n when 17 # Opcode::I32_SHL_IMM\n registers[instruction[1]] = (registers[instruction[2]] << (instruction[3] & 31)) & 0xffffffff\n when 18 # Opcode::I32_SHR_U_IMM\n registers[instruction[1]] = registers[instruction[2]] >> (instruction[3] & 31)\n when 20 # Opcode::I32_XOR_SHR_U_IMM\n value = registers[instruction[2]]\n registers[instruction[1]] = value ^ (value >> instruction[3])\n when 21 # Opcode::I32_XOR_SHL_IMM\n value = registers[instruction[2]]\n registers[instruction[1]] = (value ^ (value << instruction[3])) & 0xffffffff\n when 8 # Opcode::BR\n pc = instruction[1]\n when 9 # Opcode::BR_IF\n pc = instruction[2] if registers[instruction[1]] != 0\n when 19 # Opcode::BR_IF_ZERO\n pc = instruction[2] if registers[instruction[1]] == 0\n when 10 # Opcode::CALL\n frame.pc = pc\n callee = @ir.functions[instruction[2]] || raise(Wardite::EvalError, \"invalid MIR call target\")\n pool = pools[callee.index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n next_frame = pool.acquire(instruction[1])\n argument = 0\n while argument < callee.parameter_count\n next_frame.registers[argument] = registers[instruction[argument + 3]]\n argument += 1\n end\n frames << next_frame\n frame = next_frame\n registers = frame.registers\n instructions = frame.function.instructions\n pc = 0\n when 11 # Opcode::RETURN\n value = instruction[1] < 0 ? 0 : registers[instruction[1]]\n destination = frame.return_register\n frames.pop\n pool = pools[frame.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n pool.release(frame)\n return value if frames.empty?\n frame = current_frame(frames)\n registers = frame.registers\n registers[destination] = value if destination >= 0\n instructions = frame.function.instructions\n pc = frame.pc\n when 12 # Opcode::TRAP\n raise Wardite::Unreachable, \"unreachable op\"\n when 22 # Opcode::PROFILE\n @metrics.record(instruction[1], instruction[2], instruction[3])\n else\n raise Wardite::EvalError, \"Efflorescence: invalid MIR opcode #{instruction[0]}\"\n end\n end\n end\n # @rbs frame: Wardite::Efflorescence::Frame\n # @rbs pools: Array[Wardite::Efflorescence::FramePool]\n # @rbs return: Integer\n def execute_flat(frame, pools)\n frames = [] #: Array[Wardite::Efflorescence::Frame]\n frames << frame\n registers = frame.registers\n instructions = frame.function.bytecode\n pc = 0\n loop do\n opcode = instructions.fetch(pc)\n a = instructions.fetch(pc + 1)\n # PCs still advance by four words, but short instructions do not\n # read their unused b/c padding. Control transfers skip the increment.\n # Integer literal labels let Spinel emit a C switch. Keep the\n # Opcode comments in sync; the dispatch contract test checks them.\n case opcode\n when 0 # Opcode::COPY\n b = instructions.fetch(pc + 2)\n registers[a] = registers[b]\n when 1 # Opcode::I32_ADD\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] + registers[c]) & 0xffffffff\n when 2 # Opcode::I32_SUB\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] - registers[c]) & 0xffffffff\n when 3 # Opcode::I32_MUL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n # A full unsigned i32 product can overflow Spinel's native signed\n # word. Split into 16-bit limbs; all intermediates fit in 49 bits.\n left = registers[b]\n right = registers[c]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[a] = (low + high) & 0xffffffff\n when 4 # Opcode::I32_XOR\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] ^ registers[c]\n when 5 # Opcode::I32_SHL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] << (registers[c] & 31)) & 0xffffffff\n when 6 # Opcode::I32_SHR_U\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] >> (registers[c] & 31)\n when 7 # Opcode::I32_EQZ\n b = instructions.fetch(pc + 2)\n registers[a] = registers[b] == 0 ? 1 : 0\n when 13 # Opcode::I32_ADD_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] + c) & 0xffffffff\n when 14 # Opcode::I32_SUB_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] - c) & 0xffffffff\n when 15 # Opcode::I32_MUL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n left = registers[b]\n right = c\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[a] = (low + high) & 0xffffffff\n when 16 # Opcode::I32_XOR_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] ^ c\n when 17 # Opcode::I32_SHL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] << (c & 31)) & 0xffffffff\n when 18 # Opcode::I32_SHR_U_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] >> (c & 31)\n when 20 # Opcode::I32_XOR_SHR_U_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n value = registers[b]\n registers[a] = value ^ (value >> c)\n when 21 # Opcode::I32_XOR_SHL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n value = registers[b]\n registers[a] = (value ^ (value << c)) & 0xffffffff\n when 8 # Opcode::BR\n pc = a\n next\n when 9 # Opcode::BR_IF\n b = instructions.fetch(pc + 2)\n if registers[a] != 0\n pc = b\n next\n end\n when 19 # Opcode::BR_IF_ZERO\n b = instructions.fetch(pc + 2)\n if registers[a] == 0\n pc = b\n next\n end\n when 10 # Opcode::CALL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n frame.pc = pc + Lowerer::WIDTH\n site = frame.function.call_site(b)\n pool = pools[site.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n next_frame = pool.acquire(a)\n if c >= 0\n next_frame.registers[0] = registers[c]\n else\n site.copy_arguments(next_frame.registers, registers)\n end\n frames << next_frame\n frame = next_frame\n registers = frame.registers\n instructions = frame.function.bytecode\n pc = 0\n next\n when 11 # Opcode::RETURN\n value = a < 0 ? 0 : registers[a]\n destination = frame.return_register\n frames.pop\n pool = pools[frame.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n pool.release(frame)\n return value if frames.empty?\n frame = current_frame(frames)\n registers = frame.registers\n registers[destination] = value if destination >= 0\n instructions = frame.function.bytecode\n pc = frame.pc\n next\n when 12 # Opcode::TRAP\n raise Wardite::Unreachable, \"unreachable op\"\n when 22 # Opcode::PROFILE\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n @metrics.record(a, b, c)\n else\n raise Wardite::EvalError, \"Efflorescence: invalid MIR opcode #{opcode}\"\n end\n pc += Lowerer::WIDTH\n end\n end\n end\n end\nend\n",
72
+ "artifacts": {
73
+ "worker": {
74
+ "before": {
75
+ "bytes": 31088,
76
+ "temporary_roots": 40,
77
+ "instruction_roots": 38,
78
+ "rooted_instructions": true,
79
+ "root_frames": 1,
80
+ "setjmps": 1,
81
+ "volatile_lines": 17,
82
+ "boxed_local_names": [],
83
+ "iteration_resets": 13,
84
+ "generic_array_ops": 0,
85
+ "polymorphic_calls": 0
86
+ },
87
+ "after": {
88
+ "bytes": 31088,
89
+ "temporary_roots": 40,
90
+ "instruction_roots": 38,
91
+ "rooted_instructions": true,
92
+ "root_frames": 1,
93
+ "setjmps": 1,
94
+ "volatile_lines": 17,
95
+ "boxed_local_names": [],
96
+ "iteration_resets": 13,
97
+ "generic_array_ops": 0,
98
+ "polymorphic_calls": 0
99
+ },
100
+ "c_sha256": "4c0d341a0edcdf1af31dee66b47dc07835b97afb033c534bf1cf3877cce296d2",
101
+ "binary_sha256": "49da7000db01f3547f34975763b7622c873e6e995290ac6834c2c0d49dbdf38e",
102
+ "compile_command": [
103
+ "clang",
104
+ "-O2",
105
+ "-ffp-contract=off",
106
+ "-falign-functions=64",
107
+ "-falign-loops=64",
108
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
109
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
110
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
111
+ "-DSP_ONE_STRING",
112
+ "-c",
113
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/baseline/worker.c",
114
+ "-o",
115
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/baseline/worker.o"
116
+ ],
117
+ "link_command": [
118
+ "clang",
119
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/baseline/worker.o",
120
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
121
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
122
+ "-lm",
123
+ "-o",
124
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/baseline/worker"
125
+ ]
126
+ },
127
+ "wardite": {
128
+ "before": {
129
+ "bytes": 31088,
130
+ "temporary_roots": 40,
131
+ "instruction_roots": 38,
132
+ "rooted_instructions": true,
133
+ "root_frames": 1,
134
+ "setjmps": 1,
135
+ "volatile_lines": 17,
136
+ "boxed_local_names": [],
137
+ "iteration_resets": 13,
138
+ "generic_array_ops": 0,
139
+ "polymorphic_calls": 0
140
+ },
141
+ "after": {
142
+ "bytes": 31088,
143
+ "temporary_roots": 40,
144
+ "instruction_roots": 38,
145
+ "rooted_instructions": true,
146
+ "root_frames": 1,
147
+ "setjmps": 1,
148
+ "volatile_lines": 17,
149
+ "boxed_local_names": [],
150
+ "iteration_resets": 13,
151
+ "generic_array_ops": 0,
152
+ "polymorphic_calls": 0
153
+ },
154
+ "c_sha256": "5d2e91ea472ecee35b4cd98c72e5072235e91b1446b8279a59d53caa96c15541",
155
+ "binary_sha256": "c0efb5eff219c139957b1c80fe7c6c900914f3a6f1f47e2b498594e89ca4c8ad",
156
+ "compile_command": [
157
+ "clang",
158
+ "-O2",
159
+ "-ffp-contract=off",
160
+ "-falign-functions=64",
161
+ "-falign-loops=64",
162
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
163
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
164
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
165
+ "-DSP_ONE_STRING",
166
+ "-c",
167
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/baseline/wardite.c",
168
+ "-o",
169
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/baseline/wardite.o"
170
+ ],
171
+ "link_command": [
172
+ "clang",
173
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/baseline/wardite.o",
174
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
175
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
176
+ "-lm",
177
+ "-o",
178
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/baseline/wardite"
179
+ ]
180
+ }
181
+ }
182
+ },
183
+ "while_loop": {
184
+ "source_sha256": {
185
+ "benchmark/call_cost_worker.rb": "4e04ed585bc9aa71c3c1f130f4d9954a6a5a7d63a96ece8d3e672203b4b85ae6",
186
+ "exe/wardite": "2f3995ccba16f2dee01d1c6fffbb52fa97050aa37c547aae24f93b04a2520cd0",
187
+ "lib/wardite.rb": "0c692293a62a3e5447ee3218ad2220c58e1442e2dbd0968f8f0d351dfc034f32",
188
+ "lib/wardite/alu_f32.generated.rb": "8f7513a0eedf822d646fee25466ae3299c62755f4df644719c388c757e0a1d0c",
189
+ "lib/wardite/alu_f64.generated.rb": "7ab9da56f49811f84e34d447ba7f6805beb23b5b850ed3910ed05a08f666af15",
190
+ "lib/wardite/alu_i32.generated.rb": "24f11c231a3a516da182a96c18f3567400b4dc50eaea83c47c029199a664406f",
191
+ "lib/wardite/alu_i64.generated.rb": "de661f710e0714436924fac7f5887c2b47870a9bf9644cdb1a1eea7cc4978470",
192
+ "lib/wardite/cli/cli.rb": "500e94432ec07174634bf590dd510e1d9dd6a8be0d1ce79d58af5b52e4b36346",
193
+ "lib/wardite/const.rb": "ca9531b1230ae85ce1d55e0853b09de8446570de5373a99d1803907683fcbe95",
194
+ "lib/wardite/convert.generated.rb": "54d5ebe5074f5bfb80df4ef3f07bc59eb04f61ff6c69212a55aa2e2a6fe9751f",
195
+ "lib/wardite/efflorescence.rb": "afd9614cee6b644c6aecdff42bec4212291acccb3d76881c7b0000bfe66ba0d3",
196
+ "lib/wardite/efflorescence/inspection.rb": "5728baa6b20ec4e729b491e47ba784d3951282a3a8341ffc07328133ad4d7226",
197
+ "lib/wardite/efflorescence/ir.rb": "c2a6600d7b6f987a135e82642b6e1f269d1e3d77b9fc0d6e3fda9582101f3d04",
198
+ "lib/wardite/efflorescence/optimizer.rb": "ae07a5c1a34a303d20abe956d53fc8725c36c5c70c4ed100c873ca0d6f31a471",
199
+ "lib/wardite/efflorescence/register_validation.rb": "818e437bdbacfb86fb12fa2553c756cc78de31acbd8351c7a61584a88c995019",
200
+ "lib/wardite/efflorescence/translator.rb": "654e508ed40c9f622cb3fdd481d44b6cf040b1808dd342165bd4a7d95284fcda",
201
+ "lib/wardite/efflorescence/vm.rb": "e0049518c51695d75000825c37b299b47fb54b0bb70bf451eb44b19576818cf5",
202
+ "lib/wardite/errors.rb": "fd6761677535e9128965899ab57a7a27182dc3c221ac24e33619327fae78d9bf",
203
+ "lib/wardite/instruction.rb": "c2614c735e9b2b3824fb75c90f535612aebe6000f54426aa2f6a753b35f44ac8",
204
+ "lib/wardite/leb128.rb": "b24b179e1e0943768bf2de8f76215482c4d9b6bbf9417f50a6651161fde05fac",
205
+ "lib/wardite/load.rb": "985bf6d88dc7cefed183c10168d0d68e7aec8ee6aaf9c286bcd4db835b055c81",
206
+ "lib/wardite/revisitor.rb": "e5637fb63e919bb451ad95175a1042a178cab66e170a7be56ca8cb19d4dd60da",
207
+ "lib/wardite/value.rb": "82d9f7f2aa75f1e9b767e01e451f10ab732a18c5a4e3fcdf5e61bb84b1257dea",
208
+ "lib/wardite/version.rb": "e5c5254c8f758ec74991d3b53dd33596c943a144fc1b44d9570c1a5eb894d8d9",
209
+ "lib/wardite/wasi.rb": "c2949b28da1ea1dd7ebd119c39988cb174d5e97d23a5e29a94fcd2fc601e56f4",
210
+ "lib/wardite/wasi/consts.rb": "66eb9d398990ec6be7428659b9dfbaf46fbd966bb0e7611067a7257d23ffa154",
211
+ "lib/wardite/wasi/dirent_cache.rb": "ea203f0008b9ad0755f78dd89b43cf8759c8963fb5ad4fa18cfdf6d37b52a762",
212
+ "lib/wardite/wasi/preopens.rb": "74a5d81548b5646b96861a18b8efba90e0ad1e5e5ff1eabd9520a2571cf35970",
213
+ "lib/wardite/wasm_module.rb": "202463cd20fd6d1b2e7f4093c324304d1c665def4724851bd26eea064588b231"
214
+ },
215
+ "vm_source": "# frozen_string_literal: true\n# rbs_inline: enabled\n\nmodule Wardite\n module Efflorescence\n class VM\n attr_reader :instance #: Wardite::Instance\n attr_reader :ir #: Wardite::Efflorescence::IR\n attr_reader :semantic_ir #: Wardite::Efflorescence::IR\n attr_reader :optimized_ir #: Wardite::Efflorescence::IR\n attr_reader :metrics #: Wardite::Efflorescence::Metrics\n\n # @rbs instance: Wardite::Instance\n # @rbs disabled_optimizations: Array[Symbol]\n # @rbs profile: bool\n def initialize(instance, disabled_optimizations: [], profile: false)\n @instance = instance\n configuration = Configuration.new(disabled_optimizations)\n @flat = configuration.enabled?(:flat)\n @reuse_frames = configuration.enabled?(:frames)\n @profiling = profile\n @metrics = Metrics.new\n @semantic_ir = Translator.new(instance).translate\n @optimized_ir = Optimizer.new(configuration).optimize(@semantic_ir)\n @optimized_ir.functions.each { |function| RegisterValidation.new.validate(function) }\n @ir = profile ? Instrumentation.new.instrument(@optimized_ir) : @optimized_ir\n Lowerer.new.compile(@ir) if @flat\n start = instance.start_section\n execute(start.func_index, []) if start\n end\n\n # @rbs name: String|Symbol\n # @rbs return: bool\n def callable?(name)\n export = @instance.export_section.exports[name.to_s]\n !!export && export.kind == 0\n end\n\n # Compatible with Runtime.call: boxing happens once, at the Ruby boundary.\n # @rbs name: String|Symbol\n # @rbs arguments: Array[Object]\n # @rbs return: Wardite::I32?\n def call(name, arguments)\n result = call_unboxed(name, arguments)\n result.nil? ? nil : Wardite::I32.new(result)\n end\n\n # @rbs name: String|Symbol\n # @rbs arguments: Array[Object]\n # @rbs return: Integer?\n def call_unboxed(name, arguments)\n export = @instance.export_section.exports[name.to_s]\n raise ::NoMethodError, \"function #{name} not found\" unless export\n raise ::NoMethodError, \"#{name} is not a function\" unless export.kind == 0\n function = @ir.functions[export.index] || raise(Wardite::EvalError, \"invalid function index\")\n unless arguments.size == function.parameter_count\n raise Wardite::ArgumentError, \"unmatch arg size\"\n end\n values = [] #: Array[Integer]\n arguments.each do |value|\n raise Wardite::ArgumentError, \"type mismatch: i32(#{value})\" unless value.is_a?(Integer)\n values << (value & 0xffffffff)\n end\n result = execute(export.index, values)\n function.result_types.empty? ? nil : result\n end\n\n # @rbs name: Symbol\n # @rbs *arguments: Object\n # @rbs return: Wardite::I32?\n def method_missing(name, *arguments)\n callable?(name) ? call(name, arguments) : super\n end\n\n # @rbs name: String|Symbol\n # @rbs include_private: bool\n # @rbs return: bool\n def respond_to_missing?(name, include_private = false)\n callable?(name) || super\n end\n\n # @rbs return: String\n def dump_mir\n inspection = Inspection.new\n \"Semantic MIR (#{inspection.statistics(@semantic_ir)})\\n#{inspection.disassemble(@semantic_ir)}\\n\" \\\n \"Optimized MIR (#{inspection.statistics(@optimized_ir)})\\n#{inspection.disassemble(@optimized_ir)}\"\n end\n\n private\n\n # A concrete return type breaks the inference cycle between the current\n # frame and the array it is restored from after every internal RETURN.\n # @rbs return: Wardite::Efflorescence::Frame\n def current_frame(frames)\n frames.last || raise(Wardite::EvalError, \"missing MIR caller\")\n end\n\n # No Wasm operand stack, boxed values, or recursive Ruby calls here.\n # Every register array contains only normalized i32 Integers. Void calls\n # use destination -1; execute returns an unused integer for a void entry.\n # @rbs index: Integer\n # @rbs arguments: Array[Integer]\n # @rbs return: Integer\n def execute(index, arguments)\n pools = [] #: Array[Wardite::Efflorescence::FramePool]\n @ir.functions.each { |function| pools << FramePool.new(function, @reuse_frames) }\n function = @ir.functions[index] || raise(Wardite::EvalError, \"invalid function index #{index}\")\n pool = pools[function.index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n frame = pool.acquire(-1)\n arguments.each_with_index { |value, i| frame.registers[i] = value }\n @metrics = Metrics.new if @profiling\n @flat ? execute_flat(frame, pools) : execute_semantic(frame, pools)\n ensure\n if @profiling\n created = 0\n pools.each { |pool| created += pool.created }\n @metrics.frames_created = created\n end\n end\n\n # @rbs frame: Wardite::Efflorescence::Frame\n # @rbs pools: Array[Wardite::Efflorescence::FramePool]\n # @rbs return: Integer\n def execute_semantic(frame, pools)\n frames = [] #: Array[Wardite::Efflorescence::Frame]\n frames << frame\n registers = frame.registers\n instructions = frame.function.instructions\n pc = 0\n loop do\n instruction = instructions[pc] || raise(Wardite::EvalError, \"Efflorescence: invalid MIR PC #{pc}\")\n pc += 1\n # Integer literal labels let Spinel emit a C switch. Keep the\n # Opcode comments in sync; the dispatch contract test checks them.\n case instruction[0]\n when 0 # Opcode::COPY\n registers[instruction[1]] = registers[instruction[2]]\n when 1 # Opcode::I32_ADD\n registers[instruction[1]] = (registers[instruction[2]] + registers[instruction[3]]) & 0xffffffff\n when 2 # Opcode::I32_SUB\n registers[instruction[1]] = (registers[instruction[2]] - registers[instruction[3]]) & 0xffffffff\n when 3 # Opcode::I32_MUL\n # A full unsigned i32 product can overflow Spinel's native signed\n # word. Split into 16-bit limbs; all intermediates fit in 49 bits.\n left = registers[instruction[2]]\n right = registers[instruction[3]]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[instruction[1]] = (low + high) & 0xffffffff\n when 4 # Opcode::I32_XOR\n registers[instruction[1]] = registers[instruction[2]] ^ registers[instruction[3]]\n when 5 # Opcode::I32_SHL\n registers[instruction[1]] = (registers[instruction[2]] << (registers[instruction[3]] & 31)) & 0xffffffff\n when 6 # Opcode::I32_SHR_U\n registers[instruction[1]] = registers[instruction[2]] >> (registers[instruction[3]] & 31)\n when 7 # Opcode::I32_EQZ\n registers[instruction[1]] = registers[instruction[2]] == 0 ? 1 : 0\n when 13 # Opcode::I32_ADD_IMM\n registers[instruction[1]] = (registers[instruction[2]] + instruction[3]) & 0xffffffff\n when 14 # Opcode::I32_SUB_IMM\n registers[instruction[1]] = (registers[instruction[2]] - instruction[3]) & 0xffffffff\n when 15 # Opcode::I32_MUL_IMM\n left = registers[instruction[2]]\n right = instruction[3]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[instruction[1]] = (low + high) & 0xffffffff\n when 16 # Opcode::I32_XOR_IMM\n registers[instruction[1]] = registers[instruction[2]] ^ instruction[3]\n when 17 # Opcode::I32_SHL_IMM\n registers[instruction[1]] = (registers[instruction[2]] << (instruction[3] & 31)) & 0xffffffff\n when 18 # Opcode::I32_SHR_U_IMM\n registers[instruction[1]] = registers[instruction[2]] >> (instruction[3] & 31)\n when 20 # Opcode::I32_XOR_SHR_U_IMM\n value = registers[instruction[2]]\n registers[instruction[1]] = value ^ (value >> instruction[3])\n when 21 # Opcode::I32_XOR_SHL_IMM\n value = registers[instruction[2]]\n registers[instruction[1]] = (value ^ (value << instruction[3])) & 0xffffffff\n when 8 # Opcode::BR\n pc = instruction[1]\n when 9 # Opcode::BR_IF\n pc = instruction[2] if registers[instruction[1]] != 0\n when 19 # Opcode::BR_IF_ZERO\n pc = instruction[2] if registers[instruction[1]] == 0\n when 10 # Opcode::CALL\n frame.pc = pc\n callee = @ir.functions[instruction[2]] || raise(Wardite::EvalError, \"invalid MIR call target\")\n pool = pools[callee.index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n next_frame = pool.acquire(instruction[1])\n argument = 0\n while argument < callee.parameter_count\n next_frame.registers[argument] = registers[instruction[argument + 3]]\n argument += 1\n end\n frames << next_frame\n frame = next_frame\n registers = frame.registers\n instructions = frame.function.instructions\n pc = 0\n when 11 # Opcode::RETURN\n value = instruction[1] < 0 ? 0 : registers[instruction[1]]\n destination = frame.return_register\n frames.pop\n pool = pools[frame.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n pool.release(frame)\n return value if frames.empty?\n frame = current_frame(frames)\n registers = frame.registers\n registers[destination] = value if destination >= 0\n instructions = frame.function.instructions\n pc = frame.pc\n when 12 # Opcode::TRAP\n raise Wardite::Unreachable, \"unreachable op\"\n when 22 # Opcode::PROFILE\n @metrics.record(instruction[1], instruction[2], instruction[3])\n else\n raise Wardite::EvalError, \"Efflorescence: invalid MIR opcode #{instruction[0]}\"\n end\n end\n end\n # @rbs frame: Wardite::Efflorescence::Frame\n # @rbs pools: Array[Wardite::Efflorescence::FramePool]\n # @rbs return: Integer\n def execute_flat(frame, pools)\n frames = [] #: Array[Wardite::Efflorescence::Frame]\n frames << frame\n registers = frame.registers\n instructions = frame.function.bytecode\n pc = 0\n while true\n opcode = instructions.fetch(pc)\n a = instructions.fetch(pc + 1)\n # PCs still advance by four words, but short instructions do not\n # read their unused b/c padding. Control transfers skip the increment.\n # Integer literal labels let Spinel emit a C switch. Keep the\n # Opcode comments in sync; the dispatch contract test checks them.\n case opcode\n when 0 # Opcode::COPY\n b = instructions.fetch(pc + 2)\n registers[a] = registers[b]\n when 1 # Opcode::I32_ADD\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] + registers[c]) & 0xffffffff\n when 2 # Opcode::I32_SUB\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] - registers[c]) & 0xffffffff\n when 3 # Opcode::I32_MUL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n # A full unsigned i32 product can overflow Spinel's native signed\n # word. Split into 16-bit limbs; all intermediates fit in 49 bits.\n left = registers[b]\n right = registers[c]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[a] = (low + high) & 0xffffffff\n when 4 # Opcode::I32_XOR\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] ^ registers[c]\n when 5 # Opcode::I32_SHL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] << (registers[c] & 31)) & 0xffffffff\n when 6 # Opcode::I32_SHR_U\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] >> (registers[c] & 31)\n when 7 # Opcode::I32_EQZ\n b = instructions.fetch(pc + 2)\n registers[a] = registers[b] == 0 ? 1 : 0\n when 13 # Opcode::I32_ADD_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] + c) & 0xffffffff\n when 14 # Opcode::I32_SUB_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] - c) & 0xffffffff\n when 15 # Opcode::I32_MUL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n left = registers[b]\n right = c\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[a] = (low + high) & 0xffffffff\n when 16 # Opcode::I32_XOR_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] ^ c\n when 17 # Opcode::I32_SHL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] << (c & 31)) & 0xffffffff\n when 18 # Opcode::I32_SHR_U_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] >> (c & 31)\n when 20 # Opcode::I32_XOR_SHR_U_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n value = registers[b]\n registers[a] = value ^ (value >> c)\n when 21 # Opcode::I32_XOR_SHL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n value = registers[b]\n registers[a] = (value ^ (value << c)) & 0xffffffff\n when 8 # Opcode::BR\n pc = a\n next\n when 9 # Opcode::BR_IF\n b = instructions.fetch(pc + 2)\n if registers[a] != 0\n pc = b\n next\n end\n when 19 # Opcode::BR_IF_ZERO\n b = instructions.fetch(pc + 2)\n if registers[a] == 0\n pc = b\n next\n end\n when 10 # Opcode::CALL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n frame.pc = pc + Lowerer::WIDTH\n site = frame.function.call_site(b)\n pool = pools[site.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n next_frame = pool.acquire(a)\n if c >= 0\n next_frame.registers[0] = registers[c]\n else\n site.copy_arguments(next_frame.registers, registers)\n end\n frames << next_frame\n frame = next_frame\n registers = frame.registers\n instructions = frame.function.bytecode\n pc = 0\n next\n when 11 # Opcode::RETURN\n value = a < 0 ? 0 : registers[a]\n destination = frame.return_register\n frames.pop\n pool = pools[frame.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n pool.release(frame)\n return value if frames.empty?\n frame = current_frame(frames)\n registers = frame.registers\n registers[destination] = value if destination >= 0\n instructions = frame.function.bytecode\n pc = frame.pc\n next\n when 12 # Opcode::TRAP\n raise Wardite::Unreachable, \"unreachable op\"\n when 22 # Opcode::PROFILE\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n @metrics.record(a, b, c)\n else\n raise Wardite::EvalError, \"Efflorescence: invalid MIR opcode #{opcode}\"\n end\n pc += Lowerer::WIDTH\n end\n end\n end\n end\nend\n",
216
+ "artifacts": {
217
+ "worker": {
218
+ "before": {
219
+ "bytes": 24493,
220
+ "temporary_roots": 40,
221
+ "instruction_roots": 38,
222
+ "rooted_instructions": true,
223
+ "root_frames": 1,
224
+ "setjmps": 0,
225
+ "volatile_lines": 0,
226
+ "boxed_local_names": [],
227
+ "iteration_resets": 0,
228
+ "generic_array_ops": 0,
229
+ "polymorphic_calls": 0
230
+ },
231
+ "after": {
232
+ "bytes": 24493,
233
+ "temporary_roots": 40,
234
+ "instruction_roots": 38,
235
+ "rooted_instructions": true,
236
+ "root_frames": 1,
237
+ "setjmps": 0,
238
+ "volatile_lines": 0,
239
+ "boxed_local_names": [],
240
+ "iteration_resets": 0,
241
+ "generic_array_ops": 0,
242
+ "polymorphic_calls": 0
243
+ },
244
+ "c_sha256": "f9b219a7c730c79c37b44a26109ace74ab7f637eb1f92bb8e05a4a26f1d543b0",
245
+ "binary_sha256": "d1ba86cddc82a7e97cfee3f1ff073638b8257b44e237c93f37635cde92b89c9c",
246
+ "compile_command": [
247
+ "clang",
248
+ "-O2",
249
+ "-ffp-contract=off",
250
+ "-falign-functions=64",
251
+ "-falign-loops=64",
252
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
253
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
254
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
255
+ "-DSP_ONE_STRING",
256
+ "-c",
257
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/while_loop/worker.c",
258
+ "-o",
259
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/while_loop/worker.o"
260
+ ],
261
+ "link_command": [
262
+ "clang",
263
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/while_loop/worker.o",
264
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
265
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
266
+ "-lm",
267
+ "-o",
268
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/while_loop/worker"
269
+ ]
270
+ },
271
+ "wardite": {
272
+ "before": {
273
+ "bytes": 24493,
274
+ "temporary_roots": 40,
275
+ "instruction_roots": 38,
276
+ "rooted_instructions": true,
277
+ "root_frames": 1,
278
+ "setjmps": 0,
279
+ "volatile_lines": 0,
280
+ "boxed_local_names": [],
281
+ "iteration_resets": 0,
282
+ "generic_array_ops": 0,
283
+ "polymorphic_calls": 0
284
+ },
285
+ "after": {
286
+ "bytes": 24493,
287
+ "temporary_roots": 40,
288
+ "instruction_roots": 38,
289
+ "rooted_instructions": true,
290
+ "root_frames": 1,
291
+ "setjmps": 0,
292
+ "volatile_lines": 0,
293
+ "boxed_local_names": [],
294
+ "iteration_resets": 0,
295
+ "generic_array_ops": 0,
296
+ "polymorphic_calls": 0
297
+ },
298
+ "c_sha256": "82dcd3cdaf4b6d13a509eccef3360e92c5eacbbbc7d2be1580a1c28c1020230c",
299
+ "binary_sha256": "52229363e6d6db98d4a2466127d3c34f62636fa631d6da445be412a0368d9d2a",
300
+ "compile_command": [
301
+ "clang",
302
+ "-O2",
303
+ "-ffp-contract=off",
304
+ "-falign-functions=64",
305
+ "-falign-loops=64",
306
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
307
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
308
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
309
+ "-DSP_ONE_STRING",
310
+ "-c",
311
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/while_loop/wardite.c",
312
+ "-o",
313
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/while_loop/wardite.o"
314
+ ],
315
+ "link_command": [
316
+ "clang",
317
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/while_loop/wardite.o",
318
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
319
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
320
+ "-lm",
321
+ "-o",
322
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-baseline/while_loop/wardite"
323
+ ]
324
+ }
325
+ }
326
+ }
327
+ },
328
+ "results": [
329
+ {
330
+ "export": "inline_mix",
331
+ "disabled": "",
332
+ "variant": "baseline",
333
+ "metrics": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1",
334
+ "samples": [
335
+ {
336
+ "worker_e2e": 0.006188000086694956,
337
+ "load": 0.000160999596118927,
338
+ "translate": 0.00022300006821751595,
339
+ "execute": 8.00006091594696e-06,
340
+ "cli_e2e": 0.3556780000217259
341
+ },
342
+ {
343
+ "worker_e2e": 0.0051470003090798855,
344
+ "load": 0.00018700025975704193,
345
+ "translate": 0.00024899980053305626,
346
+ "execute": 8.00006091594696e-06,
347
+ "cli_e2e": 0.006151000037789345
348
+ }
349
+ ],
350
+ "statistics_ms": {
351
+ "worker_e2e": {
352
+ "mean": 5.667500197887421,
353
+ "sd": 0.7360980019653042,
354
+ "min": 5.1470003090798855,
355
+ "max": 6.188000086694956
356
+ },
357
+ "load": {
358
+ "mean": 0.17399992793798447,
359
+ "sd": 0.018385245573861557,
360
+ "min": 0.160999596118927,
361
+ "max": 0.18700025975704193
362
+ },
363
+ "translate": {
364
+ "mean": 0.2359999343752861,
365
+ "sd": 0.018384587029353573,
366
+ "min": 0.22300006821751595,
367
+ "max": 0.24899980053305626
368
+ },
369
+ "execute": {
370
+ "mean": 0.00800006091594696,
371
+ "sd": 0.0,
372
+ "min": 0.00800006091594696,
373
+ "max": 0.00800006091594696
374
+ },
375
+ "cli_e2e": {
376
+ "mean": 180.91450002975762,
377
+ "sd": 247.15291189643182,
378
+ "min": 6.151000037789345,
379
+ "max": 355.6780000217259
380
+ }
381
+ }
382
+ },
383
+ {
384
+ "export": "inline_mix",
385
+ "disabled": "",
386
+ "variant": "while_loop",
387
+ "metrics": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1",
388
+ "samples": [
389
+ {
390
+ "worker_e2e": 0.009999000001698732,
391
+ "load": 0.00019499985501170158,
392
+ "translate": 0.0003610001876950264,
393
+ "execute": 1.0999850928783417e-05,
394
+ "cli_e2e": 0.27811400033533573
395
+ },
396
+ {
397
+ "worker_e2e": 0.005231000017374754,
398
+ "load": 0.00015799980610609055,
399
+ "translate": 0.0002400004304945469,
400
+ "execute": 7.999595254659653e-06,
401
+ "cli_e2e": 0.005659999791532755
402
+ }
403
+ ],
404
+ "statistics_ms": {
405
+ "worker_e2e": {
406
+ "mean": 7.615000009536743,
407
+ "sd": 3.3714851216128374,
408
+ "min": 5.231000017374754,
409
+ "max": 9.999000001698732
410
+ },
411
+ "load": {
412
+ "mean": 0.17649983055889606,
413
+ "sd": 0.026162985485391463,
414
+ "min": 0.15799980610609055,
415
+ "max": 0.19499985501170158
416
+ },
417
+ "translate": {
418
+ "mean": 0.30050030909478664,
419
+ "sd": 0.08555974883838484,
420
+ "min": 0.2400004304945469,
421
+ "max": 0.3610001876950264
422
+ },
423
+ "execute": {
424
+ "mean": 0.009499723091721535,
425
+ "sd": 0.00212150113246633,
426
+ "min": 0.007999595254659653,
427
+ "max": 0.010999850928783417
428
+ },
429
+ "cli_e2e": {
430
+ "mean": 141.88700006343424,
431
+ "sd": 192.65407134592638,
432
+ "min": 5.659999791532755,
433
+ "max": 278.11400033533573
434
+ }
435
+ }
436
+ },
437
+ {
438
+ "export": "call_mix",
439
+ "disabled": "",
440
+ "variant": "baseline",
441
+ "metrics": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1",
442
+ "samples": [
443
+ {
444
+ "worker_e2e": 0.008432000409811735,
445
+ "load": 0.0001709996722638607,
446
+ "translate": 0.00023300014436244965,
447
+ "execute": 8.00006091594696e-06,
448
+ "cli_e2e": 0.007329000160098076
449
+ },
450
+ {
451
+ "worker_e2e": 0.006163000129163265,
452
+ "load": 0.00015999982133507729,
453
+ "translate": 0.00022500008344650269,
454
+ "execute": 8.999835699796677e-06,
455
+ "cli_e2e": 0.006161999888718128
456
+ }
457
+ ],
458
+ "statistics_ms": {
459
+ "worker_e2e": {
460
+ "mean": 7.2975002694875,
461
+ "sd": 1.6044254849607125,
462
+ "min": 6.163000129163265,
463
+ "max": 8.432000409811735
464
+ },
465
+ "load": {
466
+ "mean": 0.165499746799469,
467
+ "sd": 0.007778069183783897,
468
+ "min": 0.15999982133507729,
469
+ "max": 0.1709996722638607
470
+ },
471
+ "translate": {
472
+ "mean": 0.22900011390447617,
473
+ "sd": 0.005656897323571559,
474
+ "min": 0.22500008344650269,
475
+ "max": 0.23300014436244965
476
+ },
477
+ "execute": {
478
+ "mean": 0.008499948307871819,
479
+ "sd": 0.0007069475293194491,
480
+ "min": 0.00800006091594696,
481
+ "max": 0.008999835699796677
482
+ },
483
+ "cli_e2e": {
484
+ "mean": 6.745500024408102,
485
+ "sd": 0.8251938055393022,
486
+ "min": 6.161999888718128,
487
+ "max": 7.329000160098076
488
+ }
489
+ }
490
+ },
491
+ {
492
+ "export": "call_mix",
493
+ "disabled": "",
494
+ "variant": "while_loop",
495
+ "metrics": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1",
496
+ "samples": [
497
+ {
498
+ "worker_e2e": 0.006668999791145325,
499
+ "load": 0.00016999989748001099,
500
+ "translate": 0.00023700017482042313,
501
+ "execute": 6.00004568696022e-06,
502
+ "cli_e2e": 0.006755999755114317
503
+ },
504
+ {
505
+ "worker_e2e": 0.00546000013127923,
506
+ "load": 0.00016700010746717453,
507
+ "translate": 0.0002410002052783966,
508
+ "execute": 6.9998204708099365e-06,
509
+ "cli_e2e": 0.006192000117152929
510
+ }
511
+ ],
512
+ "statistics_ms": {
513
+ "worker_e2e": {
514
+ "mean": 6.064499961212277,
515
+ "sd": 0.8548918579435449,
516
+ "min": 5.46000013127923,
517
+ "max": 6.668999791145325
518
+ },
519
+ "load": {
520
+ "mean": 0.16850000247359276,
521
+ "sd": 0.0021211718602123387,
522
+ "min": 0.16700010746717453,
523
+ "max": 0.169999897480011
524
+ },
525
+ "translate": {
526
+ "mean": 0.23900019004940987,
527
+ "sd": 0.0028284486617857793,
528
+ "min": 0.23700017482042313,
529
+ "max": 0.2410002052783966
530
+ },
531
+ "execute": {
532
+ "mean": 0.006499933078885078,
533
+ "sd": 0.0007069475293194491,
534
+ "min": 0.00600004568696022,
535
+ "max": 0.0069998204708099365
536
+ },
537
+ "cli_e2e": {
538
+ "mean": 6.473999936133623,
539
+ "sd": 0.39880796858925494,
540
+ "min": 6.192000117152929,
541
+ "max": 6.755999755114317
542
+ }
543
+ }
544
+ },
545
+ {
546
+ "export": "call_mix",
547
+ "disabled": "inline",
548
+ "variant": "baseline",
549
+ "metrics": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2",
550
+ "samples": [
551
+ {
552
+ "worker_e2e": 0.005280000157654285,
553
+ "load": 0.00015900004655122757,
554
+ "translate": 0.00021799979731440544,
555
+ "execute": 1.00000761449337e-05,
556
+ "cli_e2e": 0.005484999623149633
557
+ },
558
+ {
559
+ "worker_e2e": 0.0056859999895095825,
560
+ "load": 0.00015700003132224083,
561
+ "translate": 0.00022500008344650269,
562
+ "execute": 1.0999850928783417e-05,
563
+ "cli_e2e": 0.005688000004738569
564
+ }
565
+ ],
566
+ "statistics_ms": {
567
+ "worker_e2e": {
568
+ "mean": 5.483000073581934,
569
+ "sd": 0.28708523426547866,
570
+ "min": 5.280000157654285,
571
+ "max": 5.6859999895095825
572
+ },
573
+ "load": {
574
+ "mean": 0.1580000389367342,
575
+ "sd": 0.0014142243308928896,
576
+ "min": 0.15700003132224083,
577
+ "max": 0.15900004655122757
578
+ },
579
+ "translate": {
580
+ "mean": 0.22149994038045406,
581
+ "sd": 0.004949949794252109,
582
+ "min": 0.21799979731440544,
583
+ "max": 0.22500008344650269
584
+ },
585
+ "execute": {
586
+ "mean": 0.010499963536858559,
587
+ "sd": 0.0007069475293194491,
588
+ "min": 0.0100000761449337,
589
+ "max": 0.010999850928783417
590
+ },
591
+ "cli_e2e": {
592
+ "mean": 5.586499813944101,
593
+ "sd": 0.14354294640499332,
594
+ "min": 5.484999623149633,
595
+ "max": 5.688000004738569
596
+ }
597
+ }
598
+ },
599
+ {
600
+ "export": "call_mix",
601
+ "disabled": "inline",
602
+ "variant": "while_loop",
603
+ "metrics": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2",
604
+ "samples": [
605
+ {
606
+ "worker_e2e": 0.005175999831408262,
607
+ "load": 0.00015900004655122757,
608
+ "translate": 0.00022800033912062645,
609
+ "execute": 1.2999866157770157e-05,
610
+ "cli_e2e": 0.006268000230193138
611
+ },
612
+ {
613
+ "worker_e2e": 0.00572699960321188,
614
+ "load": 0.00014799972996115685,
615
+ "translate": 0.00020699994638562202,
616
+ "execute": 8.00006091594696e-06,
617
+ "cli_e2e": 0.005892000161111355
618
+ }
619
+ ],
620
+ "statistics_ms": {
621
+ "worker_e2e": {
622
+ "mean": 5.451499717310071,
623
+ "sd": 0.38961567507457817,
624
+ "min": 5.175999831408262,
625
+ "max": 5.72699960321188
626
+ },
627
+ "load": {
628
+ "mean": 0.1534998882561922,
629
+ "sd": 0.007778398456037889,
630
+ "min": 0.14799972996115685,
631
+ "max": 0.15900004655122757
632
+ },
633
+ "translate": {
634
+ "mean": 0.21750014275312424,
635
+ "sd": 0.014849520110502336,
636
+ "min": 0.20699994638562202,
637
+ "max": 0.22800033912062645
638
+ },
639
+ "execute": {
640
+ "mean": 0.010499963536858559,
641
+ "sd": 0.003535396191105228,
642
+ "min": 0.00800006091594696,
643
+ "max": 0.012999866157770157
644
+ },
645
+ "cli_e2e": {
646
+ "mean": 6.0800001956522465,
647
+ "sd": 0.2658721985743393,
648
+ "min": 5.892000161111355,
649
+ "max": 6.268000230193138
650
+ }
651
+ }
652
+ }
653
+ ]
654
+ },
655
+ "compiler-patch": {
656
+ "commit": "999fde3d898a3a2ef8a2825ec3567835cb546cd5",
657
+ "spinel": "spinel 2026.10.25+1967 (6e7fc1355) [apple clang 21.0.0 (cc)]",
658
+ "cc": "Apple clang version 21.0.0 (clang-2100.3.34.2)",
659
+ "native_flags": [
660
+ "-O2"
661
+ ],
662
+ "rounds": 10,
663
+ "seed": 123,
664
+ "checksum": 483678737,
665
+ "fixture": {
666
+ "wat_sha256": "c1d607a759aa03ba265dd81b1b59ad23b00c1c31a4130b5d4ac93a20c4d18e2d",
667
+ "wasm_sha256": "c056fc8b3084432daae83bfac1b1a9bc53f12f12a18a37d85b41f3d031028407"
668
+ },
669
+ "runs": 2,
670
+ "warmups": 0,
671
+ "cli": true,
672
+ "snapshots": {
673
+ "baseline": {
674
+ "source_sha256": {
675
+ "benchmark/call_cost_worker.rb": "4e04ed585bc9aa71c3c1f130f4d9954a6a5a7d63a96ece8d3e672203b4b85ae6",
676
+ "exe/wardite": "2f3995ccba16f2dee01d1c6fffbb52fa97050aa37c547aae24f93b04a2520cd0",
677
+ "lib/wardite.rb": "0c692293a62a3e5447ee3218ad2220c58e1442e2dbd0968f8f0d351dfc034f32",
678
+ "lib/wardite/alu_f32.generated.rb": "8f7513a0eedf822d646fee25466ae3299c62755f4df644719c388c757e0a1d0c",
679
+ "lib/wardite/alu_f64.generated.rb": "7ab9da56f49811f84e34d447ba7f6805beb23b5b850ed3910ed05a08f666af15",
680
+ "lib/wardite/alu_i32.generated.rb": "24f11c231a3a516da182a96c18f3567400b4dc50eaea83c47c029199a664406f",
681
+ "lib/wardite/alu_i64.generated.rb": "de661f710e0714436924fac7f5887c2b47870a9bf9644cdb1a1eea7cc4978470",
682
+ "lib/wardite/cli/cli.rb": "500e94432ec07174634bf590dd510e1d9dd6a8be0d1ce79d58af5b52e4b36346",
683
+ "lib/wardite/const.rb": "ca9531b1230ae85ce1d55e0853b09de8446570de5373a99d1803907683fcbe95",
684
+ "lib/wardite/convert.generated.rb": "54d5ebe5074f5bfb80df4ef3f07bc59eb04f61ff6c69212a55aa2e2a6fe9751f",
685
+ "lib/wardite/efflorescence.rb": "afd9614cee6b644c6aecdff42bec4212291acccb3d76881c7b0000bfe66ba0d3",
686
+ "lib/wardite/efflorescence/inspection.rb": "5728baa6b20ec4e729b491e47ba784d3951282a3a8341ffc07328133ad4d7226",
687
+ "lib/wardite/efflorescence/ir.rb": "c2a6600d7b6f987a135e82642b6e1f269d1e3d77b9fc0d6e3fda9582101f3d04",
688
+ "lib/wardite/efflorescence/optimizer.rb": "ae07a5c1a34a303d20abe956d53fc8725c36c5c70c4ed100c873ca0d6f31a471",
689
+ "lib/wardite/efflorescence/register_validation.rb": "818e437bdbacfb86fb12fa2553c756cc78de31acbd8351c7a61584a88c995019",
690
+ "lib/wardite/efflorescence/translator.rb": "654e508ed40c9f622cb3fdd481d44b6cf040b1808dd342165bd4a7d95284fcda",
691
+ "lib/wardite/efflorescence/vm.rb": "675c6c3cfc629f302a3c50ce951c4a161d04b0db3d806a60f8b8ed73ee405b90",
692
+ "lib/wardite/errors.rb": "fd6761677535e9128965899ab57a7a27182dc3c221ac24e33619327fae78d9bf",
693
+ "lib/wardite/instruction.rb": "c2614c735e9b2b3824fb75c90f535612aebe6000f54426aa2f6a753b35f44ac8",
694
+ "lib/wardite/leb128.rb": "b24b179e1e0943768bf2de8f76215482c4d9b6bbf9417f50a6651161fde05fac",
695
+ "lib/wardite/load.rb": "985bf6d88dc7cefed183c10168d0d68e7aec8ee6aaf9c286bcd4db835b055c81",
696
+ "lib/wardite/revisitor.rb": "e5637fb63e919bb451ad95175a1042a178cab66e170a7be56ca8cb19d4dd60da",
697
+ "lib/wardite/value.rb": "82d9f7f2aa75f1e9b767e01e451f10ab732a18c5a4e3fcdf5e61bb84b1257dea",
698
+ "lib/wardite/version.rb": "e5c5254c8f758ec74991d3b53dd33596c943a144fc1b44d9570c1a5eb894d8d9",
699
+ "lib/wardite/wasi.rb": "c2949b28da1ea1dd7ebd119c39988cb174d5e97d23a5e29a94fcd2fc601e56f4",
700
+ "lib/wardite/wasi/consts.rb": "66eb9d398990ec6be7428659b9dfbaf46fbd966bb0e7611067a7257d23ffa154",
701
+ "lib/wardite/wasi/dirent_cache.rb": "ea203f0008b9ad0755f78dd89b43cf8759c8963fb5ad4fa18cfdf6d37b52a762",
702
+ "lib/wardite/wasi/preopens.rb": "74a5d81548b5646b96861a18b8efba90e0ad1e5e5ff1eabd9520a2571cf35970",
703
+ "lib/wardite/wasm_module.rb": "202463cd20fd6d1b2e7f4093c324304d1c665def4724851bd26eea064588b231"
704
+ },
705
+ "vm_source": "# frozen_string_literal: true\n# rbs_inline: enabled\n\nmodule Wardite\n module Efflorescence\n class VM\n attr_reader :instance #: Wardite::Instance\n attr_reader :ir #: Wardite::Efflorescence::IR\n attr_reader :semantic_ir #: Wardite::Efflorescence::IR\n attr_reader :optimized_ir #: Wardite::Efflorescence::IR\n attr_reader :metrics #: Wardite::Efflorescence::Metrics\n\n # @rbs instance: Wardite::Instance\n # @rbs disabled_optimizations: Array[Symbol]\n # @rbs profile: bool\n def initialize(instance, disabled_optimizations: [], profile: false)\n @instance = instance\n configuration = Configuration.new(disabled_optimizations)\n @flat = configuration.enabled?(:flat)\n @reuse_frames = configuration.enabled?(:frames)\n @profiling = profile\n @metrics = Metrics.new\n @semantic_ir = Translator.new(instance).translate\n @optimized_ir = Optimizer.new(configuration).optimize(@semantic_ir)\n @optimized_ir.functions.each { |function| RegisterValidation.new.validate(function) }\n @ir = profile ? Instrumentation.new.instrument(@optimized_ir) : @optimized_ir\n Lowerer.new.compile(@ir) if @flat\n start = instance.start_section\n execute(start.func_index, []) if start\n end\n\n # @rbs name: String|Symbol\n # @rbs return: bool\n def callable?(name)\n export = @instance.export_section.exports[name.to_s]\n !!export && export.kind == 0\n end\n\n # Compatible with Runtime.call: boxing happens once, at the Ruby boundary.\n # @rbs name: String|Symbol\n # @rbs arguments: Array[Object]\n # @rbs return: Wardite::I32?\n def call(name, arguments)\n result = call_unboxed(name, arguments)\n result.nil? ? nil : Wardite::I32.new(result)\n end\n\n # @rbs name: String|Symbol\n # @rbs arguments: Array[Object]\n # @rbs return: Integer?\n def call_unboxed(name, arguments)\n export = @instance.export_section.exports[name.to_s]\n raise ::NoMethodError, \"function #{name} not found\" unless export\n raise ::NoMethodError, \"#{name} is not a function\" unless export.kind == 0\n function = @ir.functions[export.index] || raise(Wardite::EvalError, \"invalid function index\")\n unless arguments.size == function.parameter_count\n raise Wardite::ArgumentError, \"unmatch arg size\"\n end\n values = [] #: Array[Integer]\n arguments.each do |value|\n raise Wardite::ArgumentError, \"type mismatch: i32(#{value})\" unless value.is_a?(Integer)\n values << (value & 0xffffffff)\n end\n result = execute(export.index, values)\n function.result_types.empty? ? nil : result\n end\n\n # @rbs name: Symbol\n # @rbs *arguments: Object\n # @rbs return: Wardite::I32?\n def method_missing(name, *arguments)\n callable?(name) ? call(name, arguments) : super\n end\n\n # @rbs name: String|Symbol\n # @rbs include_private: bool\n # @rbs return: bool\n def respond_to_missing?(name, include_private = false)\n callable?(name) || super\n end\n\n # @rbs return: String\n def dump_mir\n inspection = Inspection.new\n \"Semantic MIR (#{inspection.statistics(@semantic_ir)})\\n#{inspection.disassemble(@semantic_ir)}\\n\" \\\n \"Optimized MIR (#{inspection.statistics(@optimized_ir)})\\n#{inspection.disassemble(@optimized_ir)}\"\n end\n\n private\n\n # A concrete return type breaks the inference cycle between the current\n # frame and the array it is restored from after every internal RETURN.\n # @rbs return: Wardite::Efflorescence::Frame\n def current_frame(frames)\n frames.last || raise(Wardite::EvalError, \"missing MIR caller\")\n end\n\n # No Wasm operand stack, boxed values, or recursive Ruby calls here.\n # Every register array contains only normalized i32 Integers. Void calls\n # use destination -1; execute returns an unused integer for a void entry.\n # @rbs index: Integer\n # @rbs arguments: Array[Integer]\n # @rbs return: Integer\n def execute(index, arguments)\n pools = [] #: Array[Wardite::Efflorescence::FramePool]\n @ir.functions.each { |function| pools << FramePool.new(function, @reuse_frames) }\n function = @ir.functions[index] || raise(Wardite::EvalError, \"invalid function index #{index}\")\n pool = pools[function.index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n frame = pool.acquire(-1)\n arguments.each_with_index { |value, i| frame.registers[i] = value }\n @metrics = Metrics.new if @profiling\n @flat ? execute_flat(frame, pools) : execute_semantic(frame, pools)\n ensure\n if @profiling\n created = 0\n pools.each { |pool| created += pool.created }\n @metrics.frames_created = created\n end\n end\n\n # @rbs frame: Wardite::Efflorescence::Frame\n # @rbs pools: Array[Wardite::Efflorescence::FramePool]\n # @rbs return: Integer\n def execute_semantic(frame, pools)\n frames = [] #: Array[Wardite::Efflorescence::Frame]\n frames << frame\n registers = frame.registers\n instructions = frame.function.instructions\n pc = 0\n loop do\n instruction = instructions[pc] || raise(Wardite::EvalError, \"Efflorescence: invalid MIR PC #{pc}\")\n pc += 1\n # Integer literal labels let Spinel emit a C switch. Keep the\n # Opcode comments in sync; the dispatch contract test checks them.\n case instruction[0]\n when 0 # Opcode::COPY\n registers[instruction[1]] = registers[instruction[2]]\n when 1 # Opcode::I32_ADD\n registers[instruction[1]] = (registers[instruction[2]] + registers[instruction[3]]) & 0xffffffff\n when 2 # Opcode::I32_SUB\n registers[instruction[1]] = (registers[instruction[2]] - registers[instruction[3]]) & 0xffffffff\n when 3 # Opcode::I32_MUL\n # A full unsigned i32 product can overflow Spinel's native signed\n # word. Split into 16-bit limbs; all intermediates fit in 49 bits.\n left = registers[instruction[2]]\n right = registers[instruction[3]]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[instruction[1]] = (low + high) & 0xffffffff\n when 4 # Opcode::I32_XOR\n registers[instruction[1]] = registers[instruction[2]] ^ registers[instruction[3]]\n when 5 # Opcode::I32_SHL\n registers[instruction[1]] = (registers[instruction[2]] << (registers[instruction[3]] & 31)) & 0xffffffff\n when 6 # Opcode::I32_SHR_U\n registers[instruction[1]] = registers[instruction[2]] >> (registers[instruction[3]] & 31)\n when 7 # Opcode::I32_EQZ\n registers[instruction[1]] = registers[instruction[2]] == 0 ? 1 : 0\n when 13 # Opcode::I32_ADD_IMM\n registers[instruction[1]] = (registers[instruction[2]] + instruction[3]) & 0xffffffff\n when 14 # Opcode::I32_SUB_IMM\n registers[instruction[1]] = (registers[instruction[2]] - instruction[3]) & 0xffffffff\n when 15 # Opcode::I32_MUL_IMM\n left = registers[instruction[2]]\n right = instruction[3]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[instruction[1]] = (low + high) & 0xffffffff\n when 16 # Opcode::I32_XOR_IMM\n registers[instruction[1]] = registers[instruction[2]] ^ instruction[3]\n when 17 # Opcode::I32_SHL_IMM\n registers[instruction[1]] = (registers[instruction[2]] << (instruction[3] & 31)) & 0xffffffff\n when 18 # Opcode::I32_SHR_U_IMM\n registers[instruction[1]] = registers[instruction[2]] >> (instruction[3] & 31)\n when 20 # Opcode::I32_XOR_SHR_U_IMM\n value = registers[instruction[2]]\n registers[instruction[1]] = value ^ (value >> instruction[3])\n when 21 # Opcode::I32_XOR_SHL_IMM\n value = registers[instruction[2]]\n registers[instruction[1]] = (value ^ (value << instruction[3])) & 0xffffffff\n when 8 # Opcode::BR\n pc = instruction[1]\n when 9 # Opcode::BR_IF\n pc = instruction[2] if registers[instruction[1]] != 0\n when 19 # Opcode::BR_IF_ZERO\n pc = instruction[2] if registers[instruction[1]] == 0\n when 10 # Opcode::CALL\n frame.pc = pc\n callee = @ir.functions[instruction[2]] || raise(Wardite::EvalError, \"invalid MIR call target\")\n pool = pools[callee.index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n next_frame = pool.acquire(instruction[1])\n argument = 0\n while argument < callee.parameter_count\n next_frame.registers[argument] = registers[instruction[argument + 3]]\n argument += 1\n end\n frames << next_frame\n frame = next_frame\n registers = frame.registers\n instructions = frame.function.instructions\n pc = 0\n when 11 # Opcode::RETURN\n value = instruction[1] < 0 ? 0 : registers[instruction[1]]\n destination = frame.return_register\n frames.pop\n pool = pools[frame.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n pool.release(frame)\n return value if frames.empty?\n frame = current_frame(frames)\n registers = frame.registers\n registers[destination] = value if destination >= 0\n instructions = frame.function.instructions\n pc = frame.pc\n when 12 # Opcode::TRAP\n raise Wardite::Unreachable, \"unreachable op\"\n when 22 # Opcode::PROFILE\n @metrics.record(instruction[1], instruction[2], instruction[3])\n else\n raise Wardite::EvalError, \"Efflorescence: invalid MIR opcode #{instruction[0]}\"\n end\n end\n end\n # @rbs frame: Wardite::Efflorescence::Frame\n # @rbs pools: Array[Wardite::Efflorescence::FramePool]\n # @rbs return: Integer\n def execute_flat(frame, pools)\n frames = [] #: Array[Wardite::Efflorescence::Frame]\n frames << frame\n registers = frame.registers\n instructions = frame.function.bytecode\n pc = 0\n loop do\n opcode = instructions.fetch(pc)\n a = instructions.fetch(pc + 1)\n # PCs still advance by four words, but short instructions do not\n # read their unused b/c padding. Control transfers skip the increment.\n # Integer literal labels let Spinel emit a C switch. Keep the\n # Opcode comments in sync; the dispatch contract test checks them.\n case opcode\n when 0 # Opcode::COPY\n b = instructions.fetch(pc + 2)\n registers[a] = registers[b]\n when 1 # Opcode::I32_ADD\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] + registers[c]) & 0xffffffff\n when 2 # Opcode::I32_SUB\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] - registers[c]) & 0xffffffff\n when 3 # Opcode::I32_MUL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n # A full unsigned i32 product can overflow Spinel's native signed\n # word. Split into 16-bit limbs; all intermediates fit in 49 bits.\n left = registers[b]\n right = registers[c]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[a] = (low + high) & 0xffffffff\n when 4 # Opcode::I32_XOR\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] ^ registers[c]\n when 5 # Opcode::I32_SHL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] << (registers[c] & 31)) & 0xffffffff\n when 6 # Opcode::I32_SHR_U\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] >> (registers[c] & 31)\n when 7 # Opcode::I32_EQZ\n b = instructions.fetch(pc + 2)\n registers[a] = registers[b] == 0 ? 1 : 0\n when 13 # Opcode::I32_ADD_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] + c) & 0xffffffff\n when 14 # Opcode::I32_SUB_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] - c) & 0xffffffff\n when 15 # Opcode::I32_MUL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n left = registers[b]\n right = c\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[a] = (low + high) & 0xffffffff\n when 16 # Opcode::I32_XOR_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] ^ c\n when 17 # Opcode::I32_SHL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] << (c & 31)) & 0xffffffff\n when 18 # Opcode::I32_SHR_U_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] >> (c & 31)\n when 20 # Opcode::I32_XOR_SHR_U_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n value = registers[b]\n registers[a] = value ^ (value >> c)\n when 21 # Opcode::I32_XOR_SHL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n value = registers[b]\n registers[a] = (value ^ (value << c)) & 0xffffffff\n when 8 # Opcode::BR\n pc = a\n next\n when 9 # Opcode::BR_IF\n b = instructions.fetch(pc + 2)\n if registers[a] != 0\n pc = b\n next\n end\n when 19 # Opcode::BR_IF_ZERO\n b = instructions.fetch(pc + 2)\n if registers[a] == 0\n pc = b\n next\n end\n when 10 # Opcode::CALL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n frame.pc = pc + Lowerer::WIDTH\n site = frame.function.call_site(b)\n pool = pools[site.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n next_frame = pool.acquire(a)\n if c >= 0\n next_frame.registers[0] = registers[c]\n else\n site.copy_arguments(next_frame.registers, registers)\n end\n frames << next_frame\n frame = next_frame\n registers = frame.registers\n instructions = frame.function.bytecode\n pc = 0\n next\n when 11 # Opcode::RETURN\n value = a < 0 ? 0 : registers[a]\n destination = frame.return_register\n frames.pop\n pool = pools[frame.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n pool.release(frame)\n return value if frames.empty?\n frame = current_frame(frames)\n registers = frame.registers\n registers[destination] = value if destination >= 0\n instructions = frame.function.bytecode\n pc = frame.pc\n next\n when 12 # Opcode::TRAP\n raise Wardite::Unreachable, \"unreachable op\"\n when 22 # Opcode::PROFILE\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n @metrics.record(a, b, c)\n else\n raise Wardite::EvalError, \"Efflorescence: invalid MIR opcode #{opcode}\"\n end\n pc += Lowerer::WIDTH\n end\n end\n end\n end\nend\n",
706
+ "artifacts": {
707
+ "worker": {
708
+ "before": {
709
+ "bytes": 30392,
710
+ "temporary_roots": 2,
711
+ "instruction_roots": 0,
712
+ "rooted_instructions": true,
713
+ "root_frames": 1,
714
+ "setjmps": 1,
715
+ "volatile_lines": 17,
716
+ "boxed_local_names": [],
717
+ "iteration_resets": 13,
718
+ "generic_array_ops": 0,
719
+ "polymorphic_calls": 0
720
+ },
721
+ "after": {
722
+ "bytes": 30392,
723
+ "temporary_roots": 2,
724
+ "instruction_roots": 0,
725
+ "rooted_instructions": true,
726
+ "root_frames": 1,
727
+ "setjmps": 1,
728
+ "volatile_lines": 17,
729
+ "boxed_local_names": [],
730
+ "iteration_resets": 13,
731
+ "generic_array_ops": 0,
732
+ "polymorphic_calls": 0
733
+ },
734
+ "c_sha256": "833ebe90ac1a6151da3b0be860bc34284058f6b9521cc87f71ad011a7e095a09",
735
+ "binary_sha256": "db88f94b5fded7adba0b7d9cc1bf982e863b59cdafe777aea6616861e194077c",
736
+ "compile_command": [
737
+ "clang",
738
+ "-O2",
739
+ "-ffp-contract=off",
740
+ "-falign-functions=64",
741
+ "-falign-loops=64",
742
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
743
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
744
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
745
+ "-DSP_ONE_STRING",
746
+ "-c",
747
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/worker.c",
748
+ "-o",
749
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/worker.o"
750
+ ],
751
+ "link_command": [
752
+ "clang",
753
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/worker.o",
754
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
755
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
756
+ "-lm",
757
+ "-o",
758
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/worker"
759
+ ]
760
+ },
761
+ "wardite": {
762
+ "before": {
763
+ "bytes": 30392,
764
+ "temporary_roots": 2,
765
+ "instruction_roots": 0,
766
+ "rooted_instructions": true,
767
+ "root_frames": 1,
768
+ "setjmps": 1,
769
+ "volatile_lines": 17,
770
+ "boxed_local_names": [],
771
+ "iteration_resets": 13,
772
+ "generic_array_ops": 0,
773
+ "polymorphic_calls": 0
774
+ },
775
+ "after": {
776
+ "bytes": 30392,
777
+ "temporary_roots": 2,
778
+ "instruction_roots": 0,
779
+ "rooted_instructions": true,
780
+ "root_frames": 1,
781
+ "setjmps": 1,
782
+ "volatile_lines": 17,
783
+ "boxed_local_names": [],
784
+ "iteration_resets": 13,
785
+ "generic_array_ops": 0,
786
+ "polymorphic_calls": 0
787
+ },
788
+ "c_sha256": "31533d00a9e0a219cdf73dfa982723189f6d0bb677901357688cd266cfdf2498",
789
+ "binary_sha256": "efa7e171e617990a637879d070154a330b8f97e6465863a176bc6f597ee58033",
790
+ "compile_command": [
791
+ "clang",
792
+ "-O2",
793
+ "-ffp-contract=off",
794
+ "-falign-functions=64",
795
+ "-falign-loops=64",
796
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
797
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
798
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
799
+ "-DSP_ONE_STRING",
800
+ "-c",
801
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/wardite.c",
802
+ "-o",
803
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/wardite.o"
804
+ ],
805
+ "link_command": [
806
+ "clang",
807
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/wardite.o",
808
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
809
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
810
+ "-lm",
811
+ "-o",
812
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/wardite"
813
+ ]
814
+ }
815
+ }
816
+ },
817
+ "while_loop": {
818
+ "source_sha256": {
819
+ "benchmark/call_cost_worker.rb": "4e04ed585bc9aa71c3c1f130f4d9954a6a5a7d63a96ece8d3e672203b4b85ae6",
820
+ "exe/wardite": "2f3995ccba16f2dee01d1c6fffbb52fa97050aa37c547aae24f93b04a2520cd0",
821
+ "lib/wardite.rb": "0c692293a62a3e5447ee3218ad2220c58e1442e2dbd0968f8f0d351dfc034f32",
822
+ "lib/wardite/alu_f32.generated.rb": "8f7513a0eedf822d646fee25466ae3299c62755f4df644719c388c757e0a1d0c",
823
+ "lib/wardite/alu_f64.generated.rb": "7ab9da56f49811f84e34d447ba7f6805beb23b5b850ed3910ed05a08f666af15",
824
+ "lib/wardite/alu_i32.generated.rb": "24f11c231a3a516da182a96c18f3567400b4dc50eaea83c47c029199a664406f",
825
+ "lib/wardite/alu_i64.generated.rb": "de661f710e0714436924fac7f5887c2b47870a9bf9644cdb1a1eea7cc4978470",
826
+ "lib/wardite/cli/cli.rb": "500e94432ec07174634bf590dd510e1d9dd6a8be0d1ce79d58af5b52e4b36346",
827
+ "lib/wardite/const.rb": "ca9531b1230ae85ce1d55e0853b09de8446570de5373a99d1803907683fcbe95",
828
+ "lib/wardite/convert.generated.rb": "54d5ebe5074f5bfb80df4ef3f07bc59eb04f61ff6c69212a55aa2e2a6fe9751f",
829
+ "lib/wardite/efflorescence.rb": "afd9614cee6b644c6aecdff42bec4212291acccb3d76881c7b0000bfe66ba0d3",
830
+ "lib/wardite/efflorescence/inspection.rb": "5728baa6b20ec4e729b491e47ba784d3951282a3a8341ffc07328133ad4d7226",
831
+ "lib/wardite/efflorescence/ir.rb": "c2a6600d7b6f987a135e82642b6e1f269d1e3d77b9fc0d6e3fda9582101f3d04",
832
+ "lib/wardite/efflorescence/optimizer.rb": "ae07a5c1a34a303d20abe956d53fc8725c36c5c70c4ed100c873ca0d6f31a471",
833
+ "lib/wardite/efflorescence/register_validation.rb": "818e437bdbacfb86fb12fa2553c756cc78de31acbd8351c7a61584a88c995019",
834
+ "lib/wardite/efflorescence/translator.rb": "654e508ed40c9f622cb3fdd481d44b6cf040b1808dd342165bd4a7d95284fcda",
835
+ "lib/wardite/efflorescence/vm.rb": "e0049518c51695d75000825c37b299b47fb54b0bb70bf451eb44b19576818cf5",
836
+ "lib/wardite/errors.rb": "fd6761677535e9128965899ab57a7a27182dc3c221ac24e33619327fae78d9bf",
837
+ "lib/wardite/instruction.rb": "c2614c735e9b2b3824fb75c90f535612aebe6000f54426aa2f6a753b35f44ac8",
838
+ "lib/wardite/leb128.rb": "b24b179e1e0943768bf2de8f76215482c4d9b6bbf9417f50a6651161fde05fac",
839
+ "lib/wardite/load.rb": "985bf6d88dc7cefed183c10168d0d68e7aec8ee6aaf9c286bcd4db835b055c81",
840
+ "lib/wardite/revisitor.rb": "e5637fb63e919bb451ad95175a1042a178cab66e170a7be56ca8cb19d4dd60da",
841
+ "lib/wardite/value.rb": "82d9f7f2aa75f1e9b767e01e451f10ab732a18c5a4e3fcdf5e61bb84b1257dea",
842
+ "lib/wardite/version.rb": "e5c5254c8f758ec74991d3b53dd33596c943a144fc1b44d9570c1a5eb894d8d9",
843
+ "lib/wardite/wasi.rb": "c2949b28da1ea1dd7ebd119c39988cb174d5e97d23a5e29a94fcd2fc601e56f4",
844
+ "lib/wardite/wasi/consts.rb": "66eb9d398990ec6be7428659b9dfbaf46fbd966bb0e7611067a7257d23ffa154",
845
+ "lib/wardite/wasi/dirent_cache.rb": "ea203f0008b9ad0755f78dd89b43cf8759c8963fb5ad4fa18cfdf6d37b52a762",
846
+ "lib/wardite/wasi/preopens.rb": "74a5d81548b5646b96861a18b8efba90e0ad1e5e5ff1eabd9520a2571cf35970",
847
+ "lib/wardite/wasm_module.rb": "202463cd20fd6d1b2e7f4093c324304d1c665def4724851bd26eea064588b231"
848
+ },
849
+ "vm_source": "# frozen_string_literal: true\n# rbs_inline: enabled\n\nmodule Wardite\n module Efflorescence\n class VM\n attr_reader :instance #: Wardite::Instance\n attr_reader :ir #: Wardite::Efflorescence::IR\n attr_reader :semantic_ir #: Wardite::Efflorescence::IR\n attr_reader :optimized_ir #: Wardite::Efflorescence::IR\n attr_reader :metrics #: Wardite::Efflorescence::Metrics\n\n # @rbs instance: Wardite::Instance\n # @rbs disabled_optimizations: Array[Symbol]\n # @rbs profile: bool\n def initialize(instance, disabled_optimizations: [], profile: false)\n @instance = instance\n configuration = Configuration.new(disabled_optimizations)\n @flat = configuration.enabled?(:flat)\n @reuse_frames = configuration.enabled?(:frames)\n @profiling = profile\n @metrics = Metrics.new\n @semantic_ir = Translator.new(instance).translate\n @optimized_ir = Optimizer.new(configuration).optimize(@semantic_ir)\n @optimized_ir.functions.each { |function| RegisterValidation.new.validate(function) }\n @ir = profile ? Instrumentation.new.instrument(@optimized_ir) : @optimized_ir\n Lowerer.new.compile(@ir) if @flat\n start = instance.start_section\n execute(start.func_index, []) if start\n end\n\n # @rbs name: String|Symbol\n # @rbs return: bool\n def callable?(name)\n export = @instance.export_section.exports[name.to_s]\n !!export && export.kind == 0\n end\n\n # Compatible with Runtime.call: boxing happens once, at the Ruby boundary.\n # @rbs name: String|Symbol\n # @rbs arguments: Array[Object]\n # @rbs return: Wardite::I32?\n def call(name, arguments)\n result = call_unboxed(name, arguments)\n result.nil? ? nil : Wardite::I32.new(result)\n end\n\n # @rbs name: String|Symbol\n # @rbs arguments: Array[Object]\n # @rbs return: Integer?\n def call_unboxed(name, arguments)\n export = @instance.export_section.exports[name.to_s]\n raise ::NoMethodError, \"function #{name} not found\" unless export\n raise ::NoMethodError, \"#{name} is not a function\" unless export.kind == 0\n function = @ir.functions[export.index] || raise(Wardite::EvalError, \"invalid function index\")\n unless arguments.size == function.parameter_count\n raise Wardite::ArgumentError, \"unmatch arg size\"\n end\n values = [] #: Array[Integer]\n arguments.each do |value|\n raise Wardite::ArgumentError, \"type mismatch: i32(#{value})\" unless value.is_a?(Integer)\n values << (value & 0xffffffff)\n end\n result = execute(export.index, values)\n function.result_types.empty? ? nil : result\n end\n\n # @rbs name: Symbol\n # @rbs *arguments: Object\n # @rbs return: Wardite::I32?\n def method_missing(name, *arguments)\n callable?(name) ? call(name, arguments) : super\n end\n\n # @rbs name: String|Symbol\n # @rbs include_private: bool\n # @rbs return: bool\n def respond_to_missing?(name, include_private = false)\n callable?(name) || super\n end\n\n # @rbs return: String\n def dump_mir\n inspection = Inspection.new\n \"Semantic MIR (#{inspection.statistics(@semantic_ir)})\\n#{inspection.disassemble(@semantic_ir)}\\n\" \\\n \"Optimized MIR (#{inspection.statistics(@optimized_ir)})\\n#{inspection.disassemble(@optimized_ir)}\"\n end\n\n private\n\n # A concrete return type breaks the inference cycle between the current\n # frame and the array it is restored from after every internal RETURN.\n # @rbs return: Wardite::Efflorescence::Frame\n def current_frame(frames)\n frames.last || raise(Wardite::EvalError, \"missing MIR caller\")\n end\n\n # No Wasm operand stack, boxed values, or recursive Ruby calls here.\n # Every register array contains only normalized i32 Integers. Void calls\n # use destination -1; execute returns an unused integer for a void entry.\n # @rbs index: Integer\n # @rbs arguments: Array[Integer]\n # @rbs return: Integer\n def execute(index, arguments)\n pools = [] #: Array[Wardite::Efflorescence::FramePool]\n @ir.functions.each { |function| pools << FramePool.new(function, @reuse_frames) }\n function = @ir.functions[index] || raise(Wardite::EvalError, \"invalid function index #{index}\")\n pool = pools[function.index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n frame = pool.acquire(-1)\n arguments.each_with_index { |value, i| frame.registers[i] = value }\n @metrics = Metrics.new if @profiling\n @flat ? execute_flat(frame, pools) : execute_semantic(frame, pools)\n ensure\n if @profiling\n created = 0\n pools.each { |pool| created += pool.created }\n @metrics.frames_created = created\n end\n end\n\n # @rbs frame: Wardite::Efflorescence::Frame\n # @rbs pools: Array[Wardite::Efflorescence::FramePool]\n # @rbs return: Integer\n def execute_semantic(frame, pools)\n frames = [] #: Array[Wardite::Efflorescence::Frame]\n frames << frame\n registers = frame.registers\n instructions = frame.function.instructions\n pc = 0\n loop do\n instruction = instructions[pc] || raise(Wardite::EvalError, \"Efflorescence: invalid MIR PC #{pc}\")\n pc += 1\n # Integer literal labels let Spinel emit a C switch. Keep the\n # Opcode comments in sync; the dispatch contract test checks them.\n case instruction[0]\n when 0 # Opcode::COPY\n registers[instruction[1]] = registers[instruction[2]]\n when 1 # Opcode::I32_ADD\n registers[instruction[1]] = (registers[instruction[2]] + registers[instruction[3]]) & 0xffffffff\n when 2 # Opcode::I32_SUB\n registers[instruction[1]] = (registers[instruction[2]] - registers[instruction[3]]) & 0xffffffff\n when 3 # Opcode::I32_MUL\n # A full unsigned i32 product can overflow Spinel's native signed\n # word. Split into 16-bit limbs; all intermediates fit in 49 bits.\n left = registers[instruction[2]]\n right = registers[instruction[3]]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[instruction[1]] = (low + high) & 0xffffffff\n when 4 # Opcode::I32_XOR\n registers[instruction[1]] = registers[instruction[2]] ^ registers[instruction[3]]\n when 5 # Opcode::I32_SHL\n registers[instruction[1]] = (registers[instruction[2]] << (registers[instruction[3]] & 31)) & 0xffffffff\n when 6 # Opcode::I32_SHR_U\n registers[instruction[1]] = registers[instruction[2]] >> (registers[instruction[3]] & 31)\n when 7 # Opcode::I32_EQZ\n registers[instruction[1]] = registers[instruction[2]] == 0 ? 1 : 0\n when 13 # Opcode::I32_ADD_IMM\n registers[instruction[1]] = (registers[instruction[2]] + instruction[3]) & 0xffffffff\n when 14 # Opcode::I32_SUB_IMM\n registers[instruction[1]] = (registers[instruction[2]] - instruction[3]) & 0xffffffff\n when 15 # Opcode::I32_MUL_IMM\n left = registers[instruction[2]]\n right = instruction[3]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[instruction[1]] = (low + high) & 0xffffffff\n when 16 # Opcode::I32_XOR_IMM\n registers[instruction[1]] = registers[instruction[2]] ^ instruction[3]\n when 17 # Opcode::I32_SHL_IMM\n registers[instruction[1]] = (registers[instruction[2]] << (instruction[3] & 31)) & 0xffffffff\n when 18 # Opcode::I32_SHR_U_IMM\n registers[instruction[1]] = registers[instruction[2]] >> (instruction[3] & 31)\n when 20 # Opcode::I32_XOR_SHR_U_IMM\n value = registers[instruction[2]]\n registers[instruction[1]] = value ^ (value >> instruction[3])\n when 21 # Opcode::I32_XOR_SHL_IMM\n value = registers[instruction[2]]\n registers[instruction[1]] = (value ^ (value << instruction[3])) & 0xffffffff\n when 8 # Opcode::BR\n pc = instruction[1]\n when 9 # Opcode::BR_IF\n pc = instruction[2] if registers[instruction[1]] != 0\n when 19 # Opcode::BR_IF_ZERO\n pc = instruction[2] if registers[instruction[1]] == 0\n when 10 # Opcode::CALL\n frame.pc = pc\n callee = @ir.functions[instruction[2]] || raise(Wardite::EvalError, \"invalid MIR call target\")\n pool = pools[callee.index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n next_frame = pool.acquire(instruction[1])\n argument = 0\n while argument < callee.parameter_count\n next_frame.registers[argument] = registers[instruction[argument + 3]]\n argument += 1\n end\n frames << next_frame\n frame = next_frame\n registers = frame.registers\n instructions = frame.function.instructions\n pc = 0\n when 11 # Opcode::RETURN\n value = instruction[1] < 0 ? 0 : registers[instruction[1]]\n destination = frame.return_register\n frames.pop\n pool = pools[frame.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n pool.release(frame)\n return value if frames.empty?\n frame = current_frame(frames)\n registers = frame.registers\n registers[destination] = value if destination >= 0\n instructions = frame.function.instructions\n pc = frame.pc\n when 12 # Opcode::TRAP\n raise Wardite::Unreachable, \"unreachable op\"\n when 22 # Opcode::PROFILE\n @metrics.record(instruction[1], instruction[2], instruction[3])\n else\n raise Wardite::EvalError, \"Efflorescence: invalid MIR opcode #{instruction[0]}\"\n end\n end\n end\n # @rbs frame: Wardite::Efflorescence::Frame\n # @rbs pools: Array[Wardite::Efflorescence::FramePool]\n # @rbs return: Integer\n def execute_flat(frame, pools)\n frames = [] #: Array[Wardite::Efflorescence::Frame]\n frames << frame\n registers = frame.registers\n instructions = frame.function.bytecode\n pc = 0\n while true\n opcode = instructions.fetch(pc)\n a = instructions.fetch(pc + 1)\n # PCs still advance by four words, but short instructions do not\n # read their unused b/c padding. Control transfers skip the increment.\n # Integer literal labels let Spinel emit a C switch. Keep the\n # Opcode comments in sync; the dispatch contract test checks them.\n case opcode\n when 0 # Opcode::COPY\n b = instructions.fetch(pc + 2)\n registers[a] = registers[b]\n when 1 # Opcode::I32_ADD\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] + registers[c]) & 0xffffffff\n when 2 # Opcode::I32_SUB\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] - registers[c]) & 0xffffffff\n when 3 # Opcode::I32_MUL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n # A full unsigned i32 product can overflow Spinel's native signed\n # word. Split into 16-bit limbs; all intermediates fit in 49 bits.\n left = registers[b]\n right = registers[c]\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[a] = (low + high) & 0xffffffff\n when 4 # Opcode::I32_XOR\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] ^ registers[c]\n when 5 # Opcode::I32_SHL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] << (registers[c] & 31)) & 0xffffffff\n when 6 # Opcode::I32_SHR_U\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] >> (registers[c] & 31)\n when 7 # Opcode::I32_EQZ\n b = instructions.fetch(pc + 2)\n registers[a] = registers[b] == 0 ? 1 : 0\n when 13 # Opcode::I32_ADD_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] + c) & 0xffffffff\n when 14 # Opcode::I32_SUB_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] - c) & 0xffffffff\n when 15 # Opcode::I32_MUL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n left = registers[b]\n right = c\n low = (left & 0xffff) * right\n high = (((left >> 16) * right) & 0xffff) << 16\n registers[a] = (low + high) & 0xffffffff\n when 16 # Opcode::I32_XOR_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] ^ c\n when 17 # Opcode::I32_SHL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = (registers[b] << (c & 31)) & 0xffffffff\n when 18 # Opcode::I32_SHR_U_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n registers[a] = registers[b] >> (c & 31)\n when 20 # Opcode::I32_XOR_SHR_U_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n value = registers[b]\n registers[a] = value ^ (value >> c)\n when 21 # Opcode::I32_XOR_SHL_IMM\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n value = registers[b]\n registers[a] = (value ^ (value << c)) & 0xffffffff\n when 8 # Opcode::BR\n pc = a\n next\n when 9 # Opcode::BR_IF\n b = instructions.fetch(pc + 2)\n if registers[a] != 0\n pc = b\n next\n end\n when 19 # Opcode::BR_IF_ZERO\n b = instructions.fetch(pc + 2)\n if registers[a] == 0\n pc = b\n next\n end\n when 10 # Opcode::CALL\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n frame.pc = pc + Lowerer::WIDTH\n site = frame.function.call_site(b)\n pool = pools[site.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n next_frame = pool.acquire(a)\n if c >= 0\n next_frame.registers[0] = registers[c]\n else\n site.copy_arguments(next_frame.registers, registers)\n end\n frames << next_frame\n frame = next_frame\n registers = frame.registers\n instructions = frame.function.bytecode\n pc = 0\n next\n when 11 # Opcode::RETURN\n value = a < 0 ? 0 : registers[a]\n destination = frame.return_register\n frames.pop\n pool = pools[frame.pool_index]\n raise Wardite::EvalError, \"missing MIR frame pool\" unless pool\n pool.release(frame)\n return value if frames.empty?\n frame = current_frame(frames)\n registers = frame.registers\n registers[destination] = value if destination >= 0\n instructions = frame.function.bytecode\n pc = frame.pc\n next\n when 12 # Opcode::TRAP\n raise Wardite::Unreachable, \"unreachable op\"\n when 22 # Opcode::PROFILE\n b = instructions.fetch(pc + 2)\n c = instructions.fetch(pc + 3)\n @metrics.record(a, b, c)\n else\n raise Wardite::EvalError, \"Efflorescence: invalid MIR opcode #{opcode}\"\n end\n pc += Lowerer::WIDTH\n end\n end\n end\n end\nend\n",
850
+ "artifacts": {
851
+ "worker": {
852
+ "before": {
853
+ "bytes": 23797,
854
+ "temporary_roots": 2,
855
+ "instruction_roots": 0,
856
+ "rooted_instructions": true,
857
+ "root_frames": 1,
858
+ "setjmps": 0,
859
+ "volatile_lines": 0,
860
+ "boxed_local_names": [],
861
+ "iteration_resets": 0,
862
+ "generic_array_ops": 0,
863
+ "polymorphic_calls": 0
864
+ },
865
+ "after": {
866
+ "bytes": 23797,
867
+ "temporary_roots": 2,
868
+ "instruction_roots": 0,
869
+ "rooted_instructions": true,
870
+ "root_frames": 1,
871
+ "setjmps": 0,
872
+ "volatile_lines": 0,
873
+ "boxed_local_names": [],
874
+ "iteration_resets": 0,
875
+ "generic_array_ops": 0,
876
+ "polymorphic_calls": 0
877
+ },
878
+ "c_sha256": "79a07280f1f3fd8f50684e20ff041987758542388b81a13d2326ae447d5e78d9",
879
+ "binary_sha256": "578de73a07b0052d05305907d78b5c7b9269df590aa5fe436c1f447f1d2eda95",
880
+ "compile_command": [
881
+ "clang",
882
+ "-O2",
883
+ "-ffp-contract=off",
884
+ "-falign-functions=64",
885
+ "-falign-loops=64",
886
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
887
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
888
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
889
+ "-DSP_ONE_STRING",
890
+ "-c",
891
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/worker.c",
892
+ "-o",
893
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/worker.o"
894
+ ],
895
+ "link_command": [
896
+ "clang",
897
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/worker.o",
898
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
899
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
900
+ "-lm",
901
+ "-o",
902
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/worker"
903
+ ]
904
+ },
905
+ "wardite": {
906
+ "before": {
907
+ "bytes": 23797,
908
+ "temporary_roots": 2,
909
+ "instruction_roots": 0,
910
+ "rooted_instructions": true,
911
+ "root_frames": 1,
912
+ "setjmps": 0,
913
+ "volatile_lines": 0,
914
+ "boxed_local_names": [],
915
+ "iteration_resets": 0,
916
+ "generic_array_ops": 0,
917
+ "polymorphic_calls": 0
918
+ },
919
+ "after": {
920
+ "bytes": 23797,
921
+ "temporary_roots": 2,
922
+ "instruction_roots": 0,
923
+ "rooted_instructions": true,
924
+ "root_frames": 1,
925
+ "setjmps": 0,
926
+ "volatile_lines": 0,
927
+ "boxed_local_names": [],
928
+ "iteration_resets": 0,
929
+ "generic_array_ops": 0,
930
+ "polymorphic_calls": 0
931
+ },
932
+ "c_sha256": "2023d875d7474f8126b5e0f98ac2e09f49ea49945c242e8035515201772640eb",
933
+ "binary_sha256": "5079065c7a2668377902290df25b6f748c57fb185c3ad61e4dbb73aee823341d",
934
+ "compile_command": [
935
+ "clang",
936
+ "-O2",
937
+ "-ffp-contract=off",
938
+ "-falign-functions=64",
939
+ "-falign-loops=64",
940
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
941
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
942
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
943
+ "-DSP_ONE_STRING",
944
+ "-c",
945
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/wardite.c",
946
+ "-o",
947
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/wardite.o"
948
+ ],
949
+ "link_command": [
950
+ "clang",
951
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/wardite.o",
952
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
953
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
954
+ "-lm",
955
+ "-o",
956
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/wardite"
957
+ ]
958
+ }
959
+ }
960
+ }
961
+ },
962
+ "results": [
963
+ {
964
+ "export": "inline_mix",
965
+ "disabled": "",
966
+ "variant": "baseline",
967
+ "metrics": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1",
968
+ "samples": [
969
+ {
970
+ "worker_e2e": 0.005919999908655882,
971
+ "load": 0.00015899958088994026,
972
+ "translate": 0.00024199998006224632,
973
+ "execute": 8.00006091594696e-06,
974
+ "cli_e2e": 0.2624119999818504
975
+ },
976
+ {
977
+ "worker_e2e": 0.0051380000077188015,
978
+ "load": 0.000160999596118927,
979
+ "translate": 0.00023799994960427284,
980
+ "execute": 8.00006091594696e-06,
981
+ "cli_e2e": 0.00534099992364645
982
+ }
983
+ ],
984
+ "statistics_ms": {
985
+ "worker_e2e": {
986
+ "mean": 5.528999958187342,
987
+ "sd": 0.5529574328398179,
988
+ "min": 5.1380000077188015,
989
+ "max": 5.919999908655882
990
+ },
991
+ "load": {
992
+ "mean": 0.15999958850443363,
993
+ "sd": 0.0014142243308928896,
994
+ "min": 0.15899958088994026,
995
+ "max": 0.160999596118927
996
+ },
997
+ "translate": {
998
+ "mean": 0.23999996483325958,
999
+ "sd": 0.0028284486617857793,
1000
+ "min": 0.23799994960427284,
1001
+ "max": 0.24199998006224632
1002
+ },
1003
+ "execute": {
1004
+ "mean": 0.00800006091594696,
1005
+ "sd": 0.0,
1006
+ "min": 0.00800006091594696,
1007
+ "max": 0.00800006091594696
1008
+ },
1009
+ "cli_e2e": {
1010
+ "mean": 133.87649995274842,
1011
+ "sd": 181.77664738756334,
1012
+ "min": 5.34099992364645,
1013
+ "max": 262.4119999818504
1014
+ }
1015
+ }
1016
+ },
1017
+ {
1018
+ "export": "inline_mix",
1019
+ "disabled": "",
1020
+ "variant": "while_loop",
1021
+ "metrics": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1",
1022
+ "samples": [
1023
+ {
1024
+ "worker_e2e": 0.007479999680072069,
1025
+ "load": 0.00020699994638562202,
1026
+ "translate": 0.00024800002574920654,
1027
+ "execute": 7.000286132097244e-06,
1028
+ "cli_e2e": 0.2870069998316467
1029
+ },
1030
+ {
1031
+ "worker_e2e": 0.006260000169277191,
1032
+ "load": 0.00017300015315413475,
1033
+ "translate": 0.0002409997396171093,
1034
+ "execute": 6.9998204708099365e-06,
1035
+ "cli_e2e": 0.005661000031977892
1036
+ }
1037
+ ],
1038
+ "statistics_ms": {
1039
+ "worker_e2e": {
1040
+ "mean": 6.86999992467463,
1041
+ "sd": 0.8626699271273288,
1042
+ "min": 6.260000169277191,
1043
+ "max": 7.479999680072069
1044
+ },
1045
+ "load": {
1046
+ "mean": 0.1900000497698784,
1047
+ "sd": 0.024041484352925132,
1048
+ "min": 0.17300015315413475,
1049
+ "max": 0.20699994638562202
1050
+ },
1051
+ "translate": {
1052
+ "mean": 0.24449988268315792,
1053
+ "sd": 0.004949949794252109,
1054
+ "min": 0.2409997396171093,
1055
+ "max": 0.24800002574920654
1056
+ },
1057
+ "execute": {
1058
+ "mean": 0.00700005330145359,
1059
+ "sd": 3.2927225399135964e-07,
1060
+ "min": 0.0069998204708099365,
1061
+ "max": 0.007000286132097244
1062
+ },
1063
+ "cli_e2e": {
1064
+ "mean": 146.3339999318123,
1065
+ "sd": 198.94166431805485,
1066
+ "min": 5.661000031977892,
1067
+ "max": 287.0069998316467
1068
+ }
1069
+ }
1070
+ },
1071
+ {
1072
+ "export": "call_mix",
1073
+ "disabled": "",
1074
+ "variant": "baseline",
1075
+ "metrics": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1",
1076
+ "samples": [
1077
+ {
1078
+ "worker_e2e": 0.006723999977111816,
1079
+ "load": 0.00016200030222535133,
1080
+ "translate": 0.00023899972438812256,
1081
+ "execute": 9.000301361083984e-06,
1082
+ "cli_e2e": 0.005907000042498112
1083
+ },
1084
+ {
1085
+ "worker_e2e": 0.005316999740898609,
1086
+ "load": 0.00014299992471933365,
1087
+ "translate": 0.00021299999207258224,
1088
+ "execute": 6.9998204708099365e-06,
1089
+ "cli_e2e": 0.006498999893665314
1090
+ }
1091
+ ],
1092
+ "statistics_ms": {
1093
+ "worker_e2e": {
1094
+ "mean": 6.020499859005213,
1095
+ "sd": 0.994899408157433,
1096
+ "min": 5.316999740898609,
1097
+ "max": 6.723999977111816
1098
+ },
1099
+ "load": {
1100
+ "mean": 0.1525001134723425,
1101
+ "sd": 0.013435295779609446,
1102
+ "min": 0.14299992471933365,
1103
+ "max": 0.16200030222535133
1104
+ },
1105
+ "translate": {
1106
+ "mean": 0.2259998582303524,
1107
+ "sd": 0.018384587029353573,
1108
+ "min": 0.21299999207258224,
1109
+ "max": 0.23899972438812256
1110
+ },
1111
+ "execute": {
1112
+ "mean": 0.00800006091594696,
1113
+ "sd": 0.001414553603146881,
1114
+ "min": 0.0069998204708099365,
1115
+ "max": 0.009000301361083984
1116
+ },
1117
+ "cli_e2e": {
1118
+ "mean": 6.202999968081713,
1119
+ "sd": 0.4186071092217554,
1120
+ "min": 5.907000042498112,
1121
+ "max": 6.498999893665314
1122
+ }
1123
+ }
1124
+ },
1125
+ {
1126
+ "export": "call_mix",
1127
+ "disabled": "",
1128
+ "variant": "while_loop",
1129
+ "metrics": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1",
1130
+ "samples": [
1131
+ {
1132
+ "worker_e2e": 0.005464999936521053,
1133
+ "load": 0.00015699956566095352,
1134
+ "translate": 0.00024200044572353363,
1135
+ "execute": 6.9998204708099365e-06,
1136
+ "cli_e2e": 0.006449999753385782
1137
+ },
1138
+ {
1139
+ "worker_e2e": 0.005080000031739473,
1140
+ "load": 0.00014999974519014359,
1141
+ "translate": 0.00023900019004940987,
1142
+ "execute": 8.00006091594696e-06,
1143
+ "cli_e2e": 0.005520999897271395
1144
+ }
1145
+ ],
1146
+ "statistics_ms": {
1147
+ "worker_e2e": {
1148
+ "mean": 5.272499984130263,
1149
+ "sd": 0.2722360434272303,
1150
+ "min": 5.080000031739473,
1151
+ "max": 5.464999936521053
1152
+ },
1153
+ "load": {
1154
+ "mean": 0.15349965542554855,
1155
+ "sd": 0.0049496205219981175,
1156
+ "min": 0.14999974519014359,
1157
+ "max": 0.15699956566095352
1158
+ },
1159
+ "translate": {
1160
+ "mean": 0.24050031788647175,
1161
+ "sd": 0.00212150113246633,
1162
+ "min": 0.23900019004940987,
1163
+ "max": 0.24200044572353363
1164
+ },
1165
+ "execute": {
1166
+ "mean": 0.0074999406933784485,
1167
+ "sd": 0.0007072768015734405,
1168
+ "min": 0.0069998204708099365,
1169
+ "max": 0.00800006091594696
1170
+ },
1171
+ "cli_e2e": {
1172
+ "mean": 5.9854998253285885,
1173
+ "sd": 0.6569020979798104,
1174
+ "min": 5.520999897271395,
1175
+ "max": 6.449999753385782
1176
+ }
1177
+ }
1178
+ },
1179
+ {
1180
+ "export": "call_mix",
1181
+ "disabled": "inline",
1182
+ "variant": "baseline",
1183
+ "metrics": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2",
1184
+ "samples": [
1185
+ {
1186
+ "worker_e2e": 0.006403000093996525,
1187
+ "load": 0.0001450004056096077,
1188
+ "translate": 0.00021399976685643196,
1189
+ "execute": 6.9998204708099365e-06,
1190
+ "cli_e2e": 0.006426999811083078
1191
+ },
1192
+ {
1193
+ "worker_e2e": 0.0059910002164542675,
1194
+ "load": 0.0001600002869963646,
1195
+ "translate": 0.0002209995873272419,
1196
+ "execute": 9.000301361083984e-06,
1197
+ "cli_e2e": 0.0055970000103116035
1198
+ }
1199
+ ],
1200
+ "statistics_ms": {
1201
+ "worker_e2e": {
1202
+ "mean": 6.197000155225396,
1203
+ "sd": 0.2913279072581573,
1204
+ "min": 5.9910002164542675,
1205
+ "max": 6.403000093996525
1206
+ },
1207
+ "load": {
1208
+ "mean": 0.15250034630298615,
1209
+ "sd": 0.010606517845569676,
1210
+ "min": 0.1450004056096077,
1211
+ "max": 0.1600002869963646
1212
+ },
1213
+ "translate": {
1214
+ "mean": 0.21749967709183693,
1215
+ "sd": 0.0049496205219981175,
1216
+ "min": 0.21399976685643196,
1217
+ "max": 0.2209995873272419
1218
+ },
1219
+ "execute": {
1220
+ "mean": 0.00800006091594696,
1221
+ "sd": 0.001414553603146881,
1222
+ "min": 0.0069998204708099365,
1223
+ "max": 0.009000301361083984
1224
+ },
1225
+ "cli_e2e": {
1226
+ "mean": 6.011999910697341,
1227
+ "sd": 0.5868984875089933,
1228
+ "min": 5.5970000103116035,
1229
+ "max": 6.426999811083078
1230
+ }
1231
+ }
1232
+ },
1233
+ {
1234
+ "export": "call_mix",
1235
+ "disabled": "inline",
1236
+ "variant": "while_loop",
1237
+ "metrics": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2",
1238
+ "samples": [
1239
+ {
1240
+ "worker_e2e": 0.005490999668836594,
1241
+ "load": 0.00015700003132224083,
1242
+ "translate": 0.00030800001695752144,
1243
+ "execute": 6.9998204708099365e-06,
1244
+ "cli_e2e": 0.006275000050663948
1245
+ },
1246
+ {
1247
+ "worker_e2e": 0.005270000081509352,
1248
+ "load": 0.00015700003132224083,
1249
+ "translate": 0.00021500000730156898,
1250
+ "execute": 7.999595254659653e-06,
1251
+ "cli_e2e": 0.006460000295192003
1252
+ }
1253
+ ],
1254
+ "statistics_ms": {
1255
+ "worker_e2e": {
1256
+ "mean": 5.380499875172973,
1257
+ "sd": 0.15627030683852133,
1258
+ "min": 5.270000081509352,
1259
+ "max": 5.490999668836594
1260
+ },
1261
+ "load": {
1262
+ "mean": 0.15700003132224083,
1263
+ "sd": 0.0,
1264
+ "min": 0.15700003132224083,
1265
+ "max": 0.15700003132224083
1266
+ },
1267
+ "translate": {
1268
+ "mean": 0.2615000121295452,
1269
+ "sd": 0.06576093747813838,
1270
+ "min": 0.21500000730156898,
1271
+ "max": 0.30800001695752144
1272
+ },
1273
+ "execute": {
1274
+ "mean": 0.007499707862734795,
1275
+ "sd": 0.0007069475293194491,
1276
+ "min": 0.0069998204708099365,
1277
+ "max": 0.007999595254659653
1278
+ },
1279
+ "cli_e2e": {
1280
+ "mean": 6.367500172927976,
1281
+ "sd": 0.1308149274269573,
1282
+ "min": 6.275000050663948,
1283
+ "max": 6.460000295192003
1284
+ }
1285
+ }
1286
+ }
1287
+ ]
1288
+ }
1289
+ },
1290
+ "measurements": [
1291
+ {
1292
+ "rounds": 5000000,
1293
+ "checksum": 1647235310,
1294
+ "results": [
1295
+ {
1296
+ "compiler": "compiler-baseline",
1297
+ "ruby_source": "baseline",
1298
+ "export": "inline_mix",
1299
+ "disabled": "",
1300
+ "samples": [
1301
+ {
1302
+ "load": 0.0001559997908771038,
1303
+ "translate": 0.0002200002782046795,
1304
+ "execute": 0.3984479997307062,
1305
+ "worker_e2e": 0.40435925009660423,
1306
+ "cli_e2e": 0.40482666599564254
1307
+ },
1308
+ {
1309
+ "load": 0.0001509999856352806,
1310
+ "translate": 0.0002300003543496132,
1311
+ "execute": 0.39884799998253584,
1312
+ "worker_e2e": 0.40468775015324354,
1313
+ "cli_e2e": 0.4038951669353992
1314
+ },
1315
+ {
1316
+ "load": 0.0001509999856352806,
1317
+ "translate": 0.00022500008344650269,
1318
+ "execute": 0.400050999596715,
1319
+ "worker_e2e": 0.4061191249638796,
1320
+ "cli_e2e": 0.40323241683654487
1321
+ },
1322
+ {
1323
+ "load": 0.0001509999856352806,
1324
+ "translate": 0.00021800026297569275,
1325
+ "execute": 0.398282999638468,
1326
+ "worker_e2e": 0.40424929186701775,
1327
+ "cli_e2e": 0.398026708047837
1328
+ },
1329
+ {
1330
+ "load": 0.00014699995517730713,
1331
+ "translate": 0.00022300006821751595,
1332
+ "execute": 0.3990100002847612,
1333
+ "worker_e2e": 0.40501958411186934,
1334
+ "cli_e2e": 0.40500870905816555
1335
+ },
1336
+ {
1337
+ "load": 0.00013900035992264748,
1338
+ "translate": 0.00021199975162744522,
1339
+ "execute": 0.39906400023028255,
1340
+ "worker_e2e": 0.4046249999664724,
1341
+ "cli_e2e": 0.40526908286847174
1342
+ },
1343
+ {
1344
+ "load": 0.0001460001803934574,
1345
+ "translate": 0.000216000247746706,
1346
+ "execute": 0.3993379999883473,
1347
+ "worker_e2e": 0.40522574982605875,
1348
+ "cli_e2e": 0.40456858393736184
1349
+ }
1350
+ ],
1351
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
1352
+ "statistics_ms": {
1353
+ "load": {
1354
+ "mean": 0.14871432046805108,
1355
+ "sd": 0.00537614342913088,
1356
+ "min": 0.13900035992264748,
1357
+ "max": 0.1559997908771038
1358
+ },
1359
+ "translate": {
1360
+ "mean": 0.22057157808116504,
1361
+ "sd": 0.005996142659154127,
1362
+ "min": 0.21199975162744522,
1363
+ "max": 0.2300003543496132
1364
+ },
1365
+ "execute": {
1366
+ "mean": 399.005999921688,
1367
+ "sd": 0.5866125932296928,
1368
+ "min": 398.282999638468,
1369
+ "max": 400.050999596715
1370
+ },
1371
+ "worker_e2e": {
1372
+ "mean": 404.8979644264494,
1373
+ "sd": 0.6381165684869857,
1374
+ "min": 404.24929186701775,
1375
+ "max": 406.1191249638796
1376
+ },
1377
+ "cli_e2e": {
1378
+ "mean": 403.54676195420325,
1379
+ "sd": 2.5323621120795523,
1380
+ "min": 398.026708047837,
1381
+ "max": 405.26908286847174
1382
+ }
1383
+ }
1384
+ },
1385
+ {
1386
+ "compiler": "compiler-baseline",
1387
+ "ruby_source": "baseline",
1388
+ "export": "call_mix",
1389
+ "disabled": "",
1390
+ "samples": [
1391
+ {
1392
+ "load": 0.0001460001803934574,
1393
+ "translate": 0.0002209995873272419,
1394
+ "execute": 0.397516000084579,
1395
+ "worker_e2e": 0.4033112081233412,
1396
+ "cli_e2e": 0.4050799999386072
1397
+ },
1398
+ {
1399
+ "load": 0.00014399969950318336,
1400
+ "translate": 0.00021400023251771927,
1401
+ "execute": 0.3988489997573197,
1402
+ "worker_e2e": 0.4046624999027699,
1403
+ "cli_e2e": 0.4051318750716746
1404
+ },
1405
+ {
1406
+ "load": 0.00014399969950318336,
1407
+ "translate": 0.00021500000730156898,
1408
+ "execute": 0.39762300020083785,
1409
+ "worker_e2e": 0.4032561248168349,
1410
+ "cli_e2e": 0.4053199999034405
1411
+ },
1412
+ {
1413
+ "load": 0.0001550000160932541,
1414
+ "translate": 0.00020799972116947174,
1415
+ "execute": 0.39663599990308285,
1416
+ "worker_e2e": 0.40244554192759097,
1417
+ "cli_e2e": 0.4017728748731315
1418
+ },
1419
+ {
1420
+ "load": 0.00014300039038062096,
1421
+ "translate": 0.00020999973639845848,
1422
+ "execute": 0.397342000156641,
1423
+ "worker_e2e": 0.4032416669651866,
1424
+ "cli_e2e": 0.4033528750296682
1425
+ },
1426
+ {
1427
+ "load": 0.00015300000086426735,
1428
+ "translate": 0.00022199982777237892,
1429
+ "execute": 0.39838000014424324,
1430
+ "worker_e2e": 0.404046667041257,
1431
+ "cli_e2e": 0.39739825017750263
1432
+ },
1433
+ {
1434
+ "load": 0.00014299992471933365,
1435
+ "translate": 0.0002060001716017723,
1436
+ "execute": 0.39778300002217293,
1437
+ "worker_e2e": 0.40364112495444715,
1438
+ "cli_e2e": 0.4053915000986308
1439
+ }
1440
+ ],
1441
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
1442
+ "statistics_ms": {
1443
+ "load": {
1444
+ "mean": 0.14685713020818575,
1445
+ "sd": 0.005014281440181512,
1446
+ "min": 0.14299992471933365,
1447
+ "max": 0.1550000160932541
1448
+ },
1449
+ "translate": {
1450
+ "mean": 0.21371418344123022,
1451
+ "sd": 0.0061836121238155375,
1452
+ "min": 0.2060001716017723,
1453
+ "max": 0.22199982777237892
1454
+ },
1455
+ "execute": {
1456
+ "mean": 397.7327143241252,
1457
+ "sd": 0.7167104349249854,
1458
+ "min": 396.63599990308285,
1459
+ "max": 398.8489997573197
1460
+ },
1461
+ "worker_e2e": {
1462
+ "mean": 403.51497624734685,
1463
+ "sd": 0.7002776087396785,
1464
+ "min": 402.44554192759097,
1465
+ "max": 404.6624999027699
1466
+ },
1467
+ "cli_e2e": {
1468
+ "mean": 403.3496250132365,
1469
+ "sd": 2.9475203626039277,
1470
+ "min": 397.39825017750263,
1471
+ "max": 405.3915000986308
1472
+ }
1473
+ }
1474
+ },
1475
+ {
1476
+ "compiler": "compiler-baseline",
1477
+ "ruby_source": "baseline",
1478
+ "export": "call_mix",
1479
+ "disabled": "inline",
1480
+ "samples": [
1481
+ {
1482
+ "load": 0.00015399977564811707,
1483
+ "translate": 0.00019200006499886513,
1484
+ "execute": 0.6253209998831153,
1485
+ "worker_e2e": 0.631027874769643,
1486
+ "cli_e2e": 0.6457169158384204
1487
+ },
1488
+ {
1489
+ "load": 0.00014699995517730713,
1490
+ "translate": 0.00020499993115663528,
1491
+ "execute": 0.638772000093013,
1492
+ "worker_e2e": 0.6447883329819888,
1493
+ "cli_e2e": 0.6446309578604996
1494
+ },
1495
+ {
1496
+ "load": 0.00013900035992264748,
1497
+ "translate": 0.0001900000497698784,
1498
+ "execute": 0.6385439997538924,
1499
+ "worker_e2e": 0.6441561658866704,
1500
+ "cli_e2e": 0.6372952919919044
1501
+ },
1502
+ {
1503
+ "load": 0.0001509999856352806,
1504
+ "translate": 0.00020699994638562202,
1505
+ "execute": 0.626670999918133,
1506
+ "worker_e2e": 0.6327381660230458,
1507
+ "cli_e2e": 0.6450790001545101
1508
+ },
1509
+ {
1510
+ "load": 0.0001409999094903469,
1511
+ "translate": 0.0001909998245537281,
1512
+ "execute": 0.6274350001476705,
1513
+ "worker_e2e": 0.6330553339794278,
1514
+ "cli_e2e": 0.6424579590093344
1515
+ },
1516
+ {
1517
+ "load": 0.0001449999399483204,
1518
+ "translate": 0.0002109999768435955,
1519
+ "execute": 0.6271659997291863,
1520
+ "worker_e2e": 0.6328655409161001,
1521
+ "cli_e2e": 0.628114917082712
1522
+ },
1523
+ {
1524
+ "load": 0.00014299992471933365,
1525
+ "translate": 0.00018800003454089165,
1526
+ "execute": 0.6380260000005364,
1527
+ "worker_e2e": 0.643829874927178,
1528
+ "cli_e2e": 0.6466096250806004
1529
+ }
1530
+ ],
1531
+ "metrics_at_10": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2\ninstructions=20 copies=2 registers=37",
1532
+ "statistics_ms": {
1533
+ "load": {
1534
+ "mean": 0.14571426436305046,
1535
+ "sd": 0.005376199110649876,
1536
+ "min": 0.13900035992264748,
1537
+ "max": 0.15399977564811707
1538
+ },
1539
+ "translate": {
1540
+ "mean": 0.19771426117845944,
1541
+ "sd": 0.009551842156716771,
1542
+ "min": 0.18800003454089165,
1543
+ "max": 0.2109999768435955
1544
+ },
1545
+ "execute": {
1546
+ "mean": 631.704999932221,
1547
+ "sd": 6.345621659447956,
1548
+ "min": 625.3209998831153,
1549
+ "max": 638.772000093013
1550
+ },
1551
+ "worker_e2e": {
1552
+ "mean": 637.4944699262934,
1553
+ "sd": 6.367733497161047,
1554
+ "min": 631.027874769643,
1555
+ "max": 644.7883329819888
1556
+ },
1557
+ "cli_e2e": {
1558
+ "mean": 641.4149524311403,
1559
+ "sd": 6.635885457867555,
1560
+ "min": 628.114917082712,
1561
+ "max": 646.6096250806004
1562
+ }
1563
+ }
1564
+ },
1565
+ {
1566
+ "compiler": "compiler-baseline",
1567
+ "ruby_source": "while_loop",
1568
+ "export": "inline_mix",
1569
+ "disabled": "",
1570
+ "samples": [
1571
+ {
1572
+ "load": 0.00014899997040629387,
1573
+ "translate": 0.00020799972116947174,
1574
+ "execute": 0.2535999999381602,
1575
+ "worker_e2e": 0.2594924590084702,
1576
+ "cli_e2e": 0.2597267080564052
1577
+ },
1578
+ {
1579
+ "load": 0.0001559997908771038,
1580
+ "translate": 0.000216000247746706,
1581
+ "execute": 0.2538620000705123,
1582
+ "worker_e2e": 0.2597953339572996,
1583
+ "cli_e2e": 0.25933487503789365
1584
+ },
1585
+ {
1586
+ "load": 0.00015200022608041763,
1587
+ "translate": 0.00021399976685643196,
1588
+ "execute": 0.2536310004070401,
1589
+ "worker_e2e": 0.25963516696356237,
1590
+ "cli_e2e": 0.2591544999741018
1591
+ },
1592
+ {
1593
+ "load": 0.00014100037515163422,
1594
+ "translate": 0.0002159997820854187,
1595
+ "execute": 0.25364100001752377,
1596
+ "worker_e2e": 0.25940054119564593,
1597
+ "cli_e2e": 0.2594712919089943
1598
+ },
1599
+ {
1600
+ "load": 0.00014399969950318336,
1601
+ "translate": 0.0002110004425048828,
1602
+ "execute": 0.2531189997680485,
1603
+ "worker_e2e": 0.2588546248152852,
1604
+ "cli_e2e": 0.2586756250821054
1605
+ },
1606
+ {
1607
+ "load": 0.0001400001347064972,
1608
+ "translate": 0.00021399976685643196,
1609
+ "execute": 0.25153200002387166,
1610
+ "worker_e2e": 0.2571073330473155,
1611
+ "cli_e2e": 0.2591285409871489
1612
+ },
1613
+ {
1614
+ "load": 0.00014899997040629387,
1615
+ "translate": 0.00021799979731440544,
1616
+ "execute": 0.25347100012004375,
1617
+ "worker_e2e": 0.25926891597919166,
1618
+ "cli_e2e": 0.26099929213523865
1619
+ }
1620
+ ],
1621
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
1622
+ "statistics_ms": {
1623
+ "load": {
1624
+ "mean": 0.14728573816163198,
1625
+ "sd": 0.005879656330367925,
1626
+ "min": 0.1400001347064972,
1627
+ "max": 0.1559997908771038
1628
+ },
1629
+ "translate": {
1630
+ "mean": 0.21385707493339265,
1631
+ "sd": 0.0033876293650660573,
1632
+ "min": 0.20799972116947174,
1633
+ "max": 0.21799979731440544
1634
+ },
1635
+ "execute": {
1636
+ "mean": 253.26514290645719,
1637
+ "sd": 0.7969741992251462,
1638
+ "min": 251.53200002387166,
1639
+ "max": 253.8620000705123
1640
+ },
1641
+ "worker_e2e": {
1642
+ "mean": 259.0791964238243,
1643
+ "sd": 0.9193000713243196,
1644
+ "min": 257.1073330473155,
1645
+ "max": 259.7953339572996
1646
+ },
1647
+ "cli_e2e": {
1648
+ "mean": 259.4986904545554,
1649
+ "sd": 0.7375972166704673,
1650
+ "min": 258.6756250821054,
1651
+ "max": 260.99929213523865
1652
+ }
1653
+ }
1654
+ },
1655
+ {
1656
+ "compiler": "compiler-baseline",
1657
+ "ruby_source": "while_loop",
1658
+ "export": "call_mix",
1659
+ "disabled": "",
1660
+ "samples": [
1661
+ {
1662
+ "load": 0.0001409999094903469,
1663
+ "translate": 0.00021400023251771927,
1664
+ "execute": 0.253260999917984,
1665
+ "worker_e2e": 0.258928791154176,
1666
+ "cli_e2e": 0.2593229580670595
1667
+ },
1668
+ {
1669
+ "load": 0.00013999966904520988,
1670
+ "translate": 0.0002060001716017723,
1671
+ "execute": 0.2532859998755157,
1672
+ "worker_e2e": 0.25868512503802776,
1673
+ "cli_e2e": 0.25964545807801187
1674
+ },
1675
+ {
1676
+ "load": 0.00014699995517730713,
1677
+ "translate": 0.00020899996161460876,
1678
+ "execute": 0.2522280002012849,
1679
+ "worker_e2e": 0.25799145898781717,
1680
+ "cli_e2e": 0.2593089579604566
1681
+ },
1682
+ {
1683
+ "load": 0.0001750001683831215,
1684
+ "translate": 0.00021799979731440544,
1685
+ "execute": 0.2530359998345375,
1686
+ "worker_e2e": 0.2590376250445843,
1687
+ "cli_e2e": 0.2594515420496464
1688
+ },
1689
+ {
1690
+ "load": 0.00015199976041913033,
1691
+ "translate": 0.000216000247746706,
1692
+ "execute": 0.25345199974253774,
1693
+ "worker_e2e": 0.25946966698393226,
1694
+ "cli_e2e": 0.2593970000743866
1695
+ },
1696
+ {
1697
+ "load": 0.00014699995517730713,
1698
+ "translate": 0.00020400015637278557,
1699
+ "execute": 0.25324999960139394,
1700
+ "worker_e2e": 0.25884987507015467,
1701
+ "cli_e2e": 0.2594006669241935
1702
+ },
1703
+ {
1704
+ "load": 0.0001449999399483204,
1705
+ "translate": 0.00021299999207258224,
1706
+ "execute": 0.2531510000117123,
1707
+ "worker_e2e": 0.2590213338844478,
1708
+ "cli_e2e": 0.25886070914566517
1709
+ }
1710
+ ],
1711
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
1712
+ "statistics_ms": {
1713
+ "load": {
1714
+ "mean": 0.14957133680582047,
1715
+ "sd": 0.01191449105616108,
1716
+ "min": 0.13999966904520988,
1717
+ "max": 0.1750001683831215
1718
+ },
1719
+ "translate": {
1720
+ "mean": 0.2114286513200828,
1721
+ "sd": 0.005223521451133707,
1722
+ "min": 0.20400015637278557,
1723
+ "max": 0.21799979731440544
1724
+ },
1725
+ "execute": {
1726
+ "mean": 253.09485702642374,
1727
+ "sd": 0.40286808149821735,
1728
+ "min": 252.22800020128489,
1729
+ "max": 253.45199974253774
1730
+ },
1731
+ "worker_e2e": {
1732
+ "mean": 258.8548394518771,
1733
+ "sd": 0.45071538885397683,
1734
+ "min": 257.99145898781717,
1735
+ "max": 259.46966698393226
1736
+ },
1737
+ "cli_e2e": {
1738
+ "mean": 259.34104175705994,
1739
+ "sd": 0.2393191426997182,
1740
+ "min": 258.86070914566517,
1741
+ "max": 259.64545807801187
1742
+ }
1743
+ }
1744
+ },
1745
+ {
1746
+ "compiler": "compiler-baseline",
1747
+ "ruby_source": "while_loop",
1748
+ "export": "call_mix",
1749
+ "disabled": "inline",
1750
+ "samples": [
1751
+ {
1752
+ "load": 0.0001459997147321701,
1753
+ "translate": 0.00019699987024068832,
1754
+ "execute": 0.3768240003846586,
1755
+ "worker_e2e": 0.38263616687618196,
1756
+ "cli_e2e": 0.3909170830156654
1757
+ },
1758
+ {
1759
+ "load": 0.0001409999094903469,
1760
+ "translate": 0.0001860000193119049,
1761
+ "execute": 0.38273200020194054,
1762
+ "worker_e2e": 0.3883144580759108,
1763
+ "cli_e2e": 0.3866719580255449
1764
+ },
1765
+ {
1766
+ "load": 0.0001459997147321701,
1767
+ "translate": 0.00019200006499886513,
1768
+ "execute": 0.3765400000847876,
1769
+ "worker_e2e": 0.3825157079845667,
1770
+ "cli_e2e": 0.38857429195195436
1771
+ },
1772
+ {
1773
+ "load": 0.00014699995517730713,
1774
+ "translate": 0.00019400008022785187,
1775
+ "execute": 0.38179400004446507,
1776
+ "worker_e2e": 0.38740712497383356,
1777
+ "cli_e2e": 0.38938720896840096
1778
+ },
1779
+ {
1780
+ "load": 0.00014299992471933365,
1781
+ "translate": 0.0001909998245537281,
1782
+ "execute": 0.3765400000847876,
1783
+ "worker_e2e": 0.3821248330641538,
1784
+ "cli_e2e": 0.3886934579350054
1785
+ },
1786
+ {
1787
+ "load": 0.0001449999399483204,
1788
+ "translate": 0.00019300030544400215,
1789
+ "execute": 0.3804589998908341,
1790
+ "worker_e2e": 0.3860439171548933,
1791
+ "cli_e2e": 0.38658699998632073
1792
+ },
1793
+ {
1794
+ "load": 0.00013899989426136017,
1795
+ "translate": 0.00020200014114379883,
1796
+ "execute": 0.37671800004318357,
1797
+ "worker_e2e": 0.3823772920295596,
1798
+ "cli_e2e": 0.3896490829065442
1799
+ }
1800
+ ],
1801
+ "metrics_at_10": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2\ninstructions=20 copies=2 registers=37",
1802
+ "statistics_ms": {
1803
+ "load": {
1804
+ "mean": 0.14385700758014405,
1805
+ "sd": 0.002968050768656952,
1806
+ "min": 0.13899989426136017,
1807
+ "max": 0.14699995517730713
1808
+ },
1809
+ "translate": {
1810
+ "mean": 0.1935714722744056,
1811
+ "sd": 0.0049952627665160315,
1812
+ "min": 0.1860000193119049,
1813
+ "max": 0.20200014114379883
1814
+ },
1815
+ "execute": {
1816
+ "mean": 378.801000104951,
1817
+ "sd": 2.757759749753669,
1818
+ "min": 376.5400000847876,
1819
+ "max": 382.73200020194054
1820
+ },
1821
+ "worker_e2e": {
1822
+ "mean": 384.48850002272854,
1823
+ "sd": 2.6752824236599437,
1824
+ "min": 382.1248330641538,
1825
+ "max": 388.3144580759108
1826
+ },
1827
+ "cli_e2e": {
1828
+ "mean": 388.64001182706227,
1829
+ "sd": 1.57357608553302,
1830
+ "min": 386.58699998632073,
1831
+ "max": 390.9170830156654
1832
+ }
1833
+ }
1834
+ },
1835
+ {
1836
+ "compiler": "compiler-patch",
1837
+ "ruby_source": "baseline",
1838
+ "export": "inline_mix",
1839
+ "disabled": "",
1840
+ "samples": [
1841
+ {
1842
+ "load": 0.0001349998638033867,
1843
+ "translate": 0.00020299991592764854,
1844
+ "execute": 0.28594400035217404,
1845
+ "worker_e2e": 0.2913190829567611,
1846
+ "cli_e2e": 0.3272059999871999
1847
+ },
1848
+ {
1849
+ "load": 0.00014800019562244415,
1850
+ "translate": 0.00022199982777237892,
1851
+ "execute": 0.2863509999588132,
1852
+ "worker_e2e": 0.2920046669896692,
1853
+ "cli_e2e": 0.294742374913767
1854
+ },
1855
+ {
1856
+ "load": 0.0001409999094903469,
1857
+ "translate": 0.00020499993115663528,
1858
+ "execute": 0.28648999985307455,
1859
+ "worker_e2e": 0.29223662498407066,
1860
+ "cli_e2e": 0.2941129158716649
1861
+ },
1862
+ {
1863
+ "load": 0.00014899997040629387,
1864
+ "translate": 0.0002159997820854187,
1865
+ "execute": 0.28675200045108795,
1866
+ "worker_e2e": 0.2925984999164939,
1867
+ "cli_e2e": 0.2950359999667853
1868
+ },
1869
+ {
1870
+ "load": 0.000135000329464674,
1871
+ "translate": 0.00021500000730156898,
1872
+ "execute": 0.28655399987474084,
1873
+ "worker_e2e": 0.2920605840627104,
1874
+ "cli_e2e": 0.2942518750205636
1875
+ },
1876
+ {
1877
+ "load": 0.0001409999094903469,
1878
+ "translate": 0.00020399969071149826,
1879
+ "execute": 0.28649000031873584,
1880
+ "worker_e2e": 0.2919899160042405,
1881
+ "cli_e2e": 0.29220858309417963
1882
+ },
1883
+ {
1884
+ "load": 0.0001300000585615635,
1885
+ "translate": 0.0002000001259148121,
1886
+ "execute": 0.2864250000566244,
1887
+ "worker_e2e": 0.2917690828908235,
1888
+ "cli_e2e": 0.2947165840305388
1889
+ }
1890
+ ],
1891
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
1892
+ "statistics_ms": {
1893
+ "load": {
1894
+ "mean": 0.13985717669129372,
1895
+ "sd": 0.007033921879309724,
1896
+ "min": 0.1300000585615635,
1897
+ "max": 0.14899997040629387
1898
+ },
1899
+ "translate": {
1900
+ "mean": 0.20928561155285155,
1901
+ "sd": 0.008280739977167344,
1902
+ "min": 0.2000001259148121,
1903
+ "max": 0.22199982777237892
1904
+ },
1905
+ "execute": {
1906
+ "mean": 286.4294286950358,
1907
+ "sd": 0.247897713770772,
1908
+ "min": 285.94400035217404,
1909
+ "max": 286.75200045108795
1910
+ },
1911
+ "worker_e2e": {
1912
+ "mean": 291.99692254353846,
1913
+ "sd": 0.3947344815321837,
1914
+ "min": 291.3190829567611,
1915
+ "max": 292.5984999164939
1916
+ },
1917
+ "cli_e2e": {
1918
+ "mean": 298.89633326924275,
1919
+ "sd": 12.51827433150284,
1920
+ "min": 292.20858309417963,
1921
+ "max": 327.2059999871999
1922
+ }
1923
+ }
1924
+ },
1925
+ {
1926
+ "compiler": "compiler-patch",
1927
+ "ruby_source": "baseline",
1928
+ "export": "call_mix",
1929
+ "disabled": "",
1930
+ "samples": [
1931
+ {
1932
+ "load": 0.0001809997484087944,
1933
+ "translate": 0.00023300014436244965,
1934
+ "execute": 0.286274999845773,
1935
+ "worker_e2e": 0.29205433395691216,
1936
+ "cli_e2e": 0.29313416685909033
1937
+ },
1938
+ {
1939
+ "load": 0.0001349998638033867,
1940
+ "translate": 0.00020400015637278557,
1941
+ "execute": 0.28702899999916553,
1942
+ "worker_e2e": 0.2927128749433905,
1943
+ "cli_e2e": 0.28915699990466237
1944
+ },
1945
+ {
1946
+ "load": 0.0001449999399483204,
1947
+ "translate": 0.00022799987345933914,
1948
+ "execute": 0.28567600017413497,
1949
+ "worker_e2e": 0.2916525839827955,
1950
+ "cli_e2e": 0.2938186249230057
1951
+ },
1952
+ {
1953
+ "load": 0.00015300000086426735,
1954
+ "translate": 0.00021700002253055573,
1955
+ "execute": 0.2864230000413954,
1956
+ "worker_e2e": 0.2923965840600431,
1957
+ "cli_e2e": 0.29352549999020994
1958
+ },
1959
+ {
1960
+ "load": 0.0001509999856352806,
1961
+ "translate": 0.00021400023251771927,
1962
+ "execute": 0.28653999976813793,
1963
+ "worker_e2e": 0.29232520889490843,
1964
+ "cli_e2e": 0.2889896670822054
1965
+ },
1966
+ {
1967
+ "load": 0.0001449999399483204,
1968
+ "translate": 0.00021700002253055573,
1969
+ "execute": 0.28671299992129207,
1970
+ "worker_e2e": 0.2924796249717474,
1971
+ "cli_e2e": 0.2943749171681702
1972
+ },
1973
+ {
1974
+ "load": 0.00015800027176737785,
1975
+ "translate": 0.00021499954164028168,
1976
+ "execute": 0.29013200011104345,
1977
+ "worker_e2e": 0.2958864171523601,
1978
+ "cli_e2e": 0.29426987492479384
1979
+ }
1980
+ ],
1981
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
1982
+ "statistics_ms": {
1983
+ "load": {
1984
+ "mean": 0.15257139291082109,
1985
+ "sd": 0.014512693195164439,
1986
+ "min": 0.1349998638033867,
1987
+ "max": 0.1809997484087944
1988
+ },
1989
+ "translate": {
1990
+ "mean": 0.2182857133448124,
1991
+ "sd": 0.00955184796287487,
1992
+ "min": 0.20400015637278557,
1993
+ "max": 0.23300014436244965
1994
+ },
1995
+ "execute": {
1996
+ "mean": 286.9697142658489,
1997
+ "sd": 1.4554119742600569,
1998
+ "min": 285.67600017413497,
1999
+ "max": 290.13200011104345
2000
+ },
2001
+ "worker_e2e": {
2002
+ "mean": 292.78680399459387,
2003
+ "sd": 1.4080562967631411,
2004
+ "min": 291.6525839827955,
2005
+ "max": 295.8864171523601
2006
+ },
2007
+ "cli_e2e": {
2008
+ "mean": 292.4671072645911,
2009
+ "sd": 2.3569356682797253,
2010
+ "min": 288.9896670822054,
2011
+ "max": 294.3749171681702
2012
+ }
2013
+ }
2014
+ },
2015
+ {
2016
+ "compiler": "compiler-patch",
2017
+ "ruby_source": "baseline",
2018
+ "export": "call_mix",
2019
+ "disabled": "inline",
2020
+ "samples": [
2021
+ {
2022
+ "load": 0.00014899997040629387,
2023
+ "translate": 0.00019499985501170158,
2024
+ "execute": 0.541771000251174,
2025
+ "worker_e2e": 0.5479241251014173,
2026
+ "cli_e2e": 0.5430181669071317
2027
+ },
2028
+ {
2029
+ "load": 0.00015300000086426735,
2030
+ "translate": 0.00019699987024068832,
2031
+ "execute": 0.5624319999478757,
2032
+ "worker_e2e": 0.5683444999158382,
2033
+ "cli_e2e": 0.5665268748998642
2034
+ },
2035
+ {
2036
+ "load": 0.00013999966904520988,
2037
+ "translate": 0.0001960000954568386,
2038
+ "execute": 0.5335160000249743,
2039
+ "worker_e2e": 0.5392670000437647,
2040
+ "cli_e2e": 0.5484440410509706
2041
+ },
2042
+ {
2043
+ "load": 0.0001449999399483204,
2044
+ "translate": 0.0001960000954568386,
2045
+ "execute": 0.5330659998580813,
2046
+ "worker_e2e": 0.5390209581237286,
2047
+ "cli_e2e": 0.5439224590081722
2048
+ },
2049
+ {
2050
+ "load": 0.00015999982133507729,
2051
+ "translate": 0.00019499985501170158,
2052
+ "execute": 0.5387460002675653,
2053
+ "worker_e2e": 0.5443638751748949,
2054
+ "cli_e2e": 0.5431011249311268
2055
+ },
2056
+ {
2057
+ "load": 0.00014699995517730713,
2058
+ "translate": 0.0001959996297955513,
2059
+ "execute": 0.5340360002592206,
2060
+ "worker_e2e": 0.5399895422160625,
2061
+ "cli_e2e": 0.5442203748971224
2062
+ },
2063
+ {
2064
+ "load": 0.00015700003132224083,
2065
+ "translate": 0.00019800011068582535,
2066
+ "execute": 0.5374569999985397,
2067
+ "worker_e2e": 0.5432844588067383,
2068
+ "cli_e2e": 0.5419288331177086
2069
+ }
2070
+ ],
2071
+ "metrics_at_10": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2\ninstructions=20 copies=2 registers=37",
2072
+ "statistics_ms": {
2073
+ "load": {
2074
+ "mean": 0.1501427697283881,
2075
+ "sd": 0.006986436095704857,
2076
+ "min": 0.13999966904520988,
2077
+ "max": 0.15999982133507729
2078
+ },
2079
+ "translate": {
2080
+ "mean": 0.19614278737987792,
2081
+ "sd": 0.001069115347168888,
2082
+ "min": 0.19499985501170158,
2083
+ "max": 0.19800011068582535
2084
+ },
2085
+ "execute": {
2086
+ "mean": 540.1462858010616,
2087
+ "sd": 10.327249857300352,
2088
+ "min": 533.0659998580813,
2089
+ "max": 562.4319999478757
2090
+ },
2091
+ "worker_e2e": {
2092
+ "mean": 546.0277799117778,
2093
+ "sd": 10.353666958617811,
2094
+ "min": 539.0209581237286,
2095
+ "max": 568.3444999158382
2096
+ },
2097
+ "cli_e2e": {
2098
+ "mean": 547.3088392588709,
2099
+ "sd": 8.724362015798201,
2100
+ "min": 541.9288331177086,
2101
+ "max": 566.5268748998642
2102
+ }
2103
+ }
2104
+ },
2105
+ {
2106
+ "compiler": "compiler-patch",
2107
+ "ruby_source": "while_loop",
2108
+ "export": "inline_mix",
2109
+ "disabled": "",
2110
+ "samples": [
2111
+ {
2112
+ "load": 0.00014699995517730713,
2113
+ "translate": 0.0002410002052783966,
2114
+ "execute": 0.14920700015500188,
2115
+ "worker_e2e": 0.1550575839355588,
2116
+ "cli_e2e": 0.15467816591262817
2117
+ },
2118
+ {
2119
+ "load": 0.00015300000086426735,
2120
+ "translate": 0.00022300006821751595,
2121
+ "execute": 0.14826499996706843,
2122
+ "worker_e2e": 0.15430029085837305,
2123
+ "cli_e2e": 0.15438945800997317
2124
+ },
2125
+ {
2126
+ "load": 0.00015799980610609055,
2127
+ "translate": 0.0002210000529885292,
2128
+ "execute": 0.14860800001770258,
2129
+ "worker_e2e": 0.15440795803442597,
2130
+ "cli_e2e": 0.1541642090305686
2131
+ },
2132
+ {
2133
+ "load": 0.0001559997908771038,
2134
+ "translate": 0.00021500000730156898,
2135
+ "execute": 0.14949800027534366,
2136
+ "worker_e2e": 0.15560683282092214,
2137
+ "cli_e2e": 0.15489233401603997
2138
+ },
2139
+ {
2140
+ "load": 0.00014699995517730713,
2141
+ "translate": 0.00021200021728873253,
2142
+ "execute": 0.14840700011700392,
2143
+ "worker_e2e": 0.15427733305841684,
2144
+ "cli_e2e": 0.15389008284546435
2145
+ },
2146
+ {
2147
+ "load": 0.00014399969950318336,
2148
+ "translate": 0.000216000247746706,
2149
+ "execute": 0.14825200010091066,
2150
+ "worker_e2e": 0.15416599996387959,
2151
+ "cli_e2e": 0.15457620820961893
2152
+ },
2153
+ {
2154
+ "load": 0.00015300000086426735,
2155
+ "translate": 0.0002159997820854187,
2156
+ "execute": 0.14821200026199222,
2157
+ "worker_e2e": 0.1540108749177307,
2158
+ "cli_e2e": 0.15457287500612438
2159
+ }
2160
+ ],
2161
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
2162
+ "statistics_ms": {
2163
+ "load": {
2164
+ "mean": 0.15114274408136094,
2165
+ "sd": 0.005209886344813795,
2166
+ "min": 0.14399969950318336,
2167
+ "max": 0.15799980610609055
2168
+ },
2169
+ "translate": {
2170
+ "mean": 0.220571511558124,
2171
+ "sd": 0.009744391298422663,
2172
+ "min": 0.21200021728873253,
2173
+ "max": 0.2410002052783966
2174
+ },
2175
+ "execute": {
2176
+ "mean": 148.6355715564319,
2177
+ "sd": 0.5143251301373578,
2178
+ "min": 148.21200026199222,
2179
+ "max": 149.49800027534366
2180
+ },
2181
+ "worker_e2e": {
2182
+ "mean": 154.54669622704387,
2183
+ "sd": 0.5729238426856667,
2184
+ "min": 154.0108749177307,
2185
+ "max": 155.60683282092214
2186
+ },
2187
+ "cli_e2e": {
2188
+ "mean": 154.45190471863108,
2189
+ "sd": 0.3360479826288646,
2190
+ "min": 153.89008284546435,
2191
+ "max": 154.89233401603997
2192
+ }
2193
+ }
2194
+ },
2195
+ {
2196
+ "compiler": "compiler-patch",
2197
+ "ruby_source": "while_loop",
2198
+ "export": "call_mix",
2199
+ "disabled": "",
2200
+ "samples": [
2201
+ {
2202
+ "load": 0.00014800019562244415,
2203
+ "translate": 0.00021999981254339218,
2204
+ "execute": 0.14790000021457672,
2205
+ "worker_e2e": 0.15385999996215105,
2206
+ "cli_e2e": 0.1536882498767227
2207
+ },
2208
+ {
2209
+ "load": 0.0001459997147321701,
2210
+ "translate": 0.00021900003775954247,
2211
+ "execute": 0.17132500000298023,
2212
+ "worker_e2e": 0.17713416693732142,
2213
+ "cli_e2e": 0.15451529109850526
2214
+ },
2215
+ {
2216
+ "load": 0.0001460001803934574,
2217
+ "translate": 0.00022199982777237892,
2218
+ "execute": 0.14781100023537874,
2219
+ "worker_e2e": 0.1535721670370549,
2220
+ "cli_e2e": 0.15458720782771707
2221
+ },
2222
+ {
2223
+ "load": 0.00014200014993548393,
2224
+ "translate": 0.00021399976685643196,
2225
+ "execute": 0.14774500019848347,
2226
+ "worker_e2e": 0.15351658314466476,
2227
+ "cli_e2e": 0.15380754205398262
2228
+ },
2229
+ {
2230
+ "load": 0.0001500002108514309,
2231
+ "translate": 0.00022199982777237892,
2232
+ "execute": 0.1480140001513064,
2233
+ "worker_e2e": 0.15402987506240606,
2234
+ "cli_e2e": 0.15434816689230502
2235
+ },
2236
+ {
2237
+ "load": 0.0001409999094903469,
2238
+ "translate": 0.00021299999207258224,
2239
+ "execute": 0.1479110000655055,
2240
+ "worker_e2e": 0.15366291580721736,
2241
+ "cli_e2e": 0.1558919169474393
2242
+ },
2243
+ {
2244
+ "load": 0.00015400024130940437,
2245
+ "translate": 0.00021700002253055573,
2246
+ "execute": 0.14798299968242645,
2247
+ "worker_e2e": 0.1538847079500556,
2248
+ "cli_e2e": 0.15454766689799726
2249
+ }
2250
+ ],
2251
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
2252
+ "statistics_ms": {
2253
+ "load": {
2254
+ "mean": 0.1467143717621054,
2255
+ "sd": 0.004498772926188634,
2256
+ "min": 0.1409999094903469,
2257
+ "max": 0.15400024130940437
2258
+ },
2259
+ "translate": {
2260
+ "mean": 0.21814275532960892,
2261
+ "sd": 0.0036252773681062765,
2262
+ "min": 0.21299999207258224,
2263
+ "max": 0.22199982777237892
2264
+ },
2265
+ "execute": {
2266
+ "mean": 151.24128579295106,
2267
+ "sd": 8.85657234081167,
2268
+ "min": 147.74500019848347,
2269
+ "max": 171.32500000298023
2270
+ },
2271
+ "worker_e2e": {
2272
+ "mean": 157.0943451286959,
2273
+ "sd": 8.838636969723977,
2274
+ "min": 153.51658314466476,
2275
+ "max": 177.13416693732142
2276
+ },
2277
+ "cli_e2e": {
2278
+ "mean": 154.4837202278099,
2279
+ "sd": 0.719627020291276,
2280
+ "min": 153.6882498767227,
2281
+ "max": 155.8919169474393
2282
+ }
2283
+ }
2284
+ },
2285
+ {
2286
+ "compiler": "compiler-patch",
2287
+ "ruby_source": "while_loop",
2288
+ "export": "call_mix",
2289
+ "disabled": "inline",
2290
+ "samples": [
2291
+ {
2292
+ "load": 0.00014799972996115685,
2293
+ "translate": 0.00020200014114379883,
2294
+ "execute": 0.31120700016617775,
2295
+ "worker_e2e": 0.31702483305707574,
2296
+ "cli_e2e": 0.3040126250125468
2297
+ },
2298
+ {
2299
+ "load": 0.00014800019562244415,
2300
+ "translate": 0.0001959996297955513,
2301
+ "execute": 0.2993970001116395,
2302
+ "worker_e2e": 0.30523262498900294,
2303
+ "cli_e2e": 0.30814154213294387
2304
+ },
2305
+ {
2306
+ "load": 0.0001460001803934574,
2307
+ "translate": 0.0002000001259148121,
2308
+ "execute": 0.2934649996459484,
2309
+ "worker_e2e": 0.29956079204566777,
2310
+ "cli_e2e": 0.30267045786604285
2311
+ },
2312
+ {
2313
+ "load": 0.00014299992471933365,
2314
+ "translate": 0.00019400008022785187,
2315
+ "execute": 0.3032089998014271,
2316
+ "worker_e2e": 0.3089985840488225,
2317
+ "cli_e2e": 0.3082662080414593
2318
+ },
2319
+ {
2320
+ "load": 0.00015199976041913033,
2321
+ "translate": 0.0002009999006986618,
2322
+ "execute": 0.3090739999897778,
2323
+ "worker_e2e": 0.3152115410193801,
2324
+ "cli_e2e": 0.3085466669872403
2325
+ },
2326
+ {
2327
+ "load": 0.0001449999399483204,
2328
+ "translate": 0.00019700033590197563,
2329
+ "execute": 0.30305999983102083,
2330
+ "worker_e2e": 0.30899170809425414,
2331
+ "cli_e2e": 0.3106821670662612
2332
+ },
2333
+ {
2334
+ "load": 0.00014999974519014359,
2335
+ "translate": 0.00020200014114379883,
2336
+ "execute": 0.30042400024831295,
2337
+ "worker_e2e": 0.30643674987368286,
2338
+ "cli_e2e": 0.3050984588917345
2339
+ }
2340
+ ],
2341
+ "metrics_at_10": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2\ninstructions=20 copies=2 registers=37",
2342
+ "statistics_ms": {
2343
+ "load": {
2344
+ "mean": 0.14742849660771234,
2345
+ "sd": 0.003047161056898855,
2346
+ "min": 0.14299992471933365,
2347
+ "max": 0.15199976041913033
2348
+ },
2349
+ "translate": {
2350
+ "mean": 0.19885719354663575,
2351
+ "sd": 0.003184830404436722,
2352
+ "min": 0.19400008022785187,
2353
+ "max": 0.20200014114379883
2354
+ },
2355
+ "execute": {
2356
+ "mean": 302.8337142563292,
2357
+ "sd": 5.981020906839761,
2358
+ "min": 293.4649996459484,
2359
+ "max": 311.20700016617775
2360
+ },
2361
+ "worker_e2e": {
2362
+ "mean": 308.779547589698,
2363
+ "sd": 5.9512334270891385,
2364
+ "min": 299.56079204566777,
2365
+ "max": 317.02483305707574
2366
+ },
2367
+ "cli_e2e": {
2368
+ "mean": 306.77401799974695,
2369
+ "sd": 2.88052837339339,
2370
+ "min": 302.67045786604285,
2371
+ "max": 310.6821670662612
2372
+ }
2373
+ }
2374
+ }
2375
+ ]
2376
+ },
2377
+ {
2378
+ "rounds": 100000,
2379
+ "checksum": 3870791521,
2380
+ "results": [
2381
+ {
2382
+ "compiler": "compiler-baseline",
2383
+ "ruby_source": "baseline",
2384
+ "export": "inline_mix",
2385
+ "disabled": "",
2386
+ "samples": [
2387
+ {
2388
+ "load": 0.00014299992471933365,
2389
+ "translate": 0.00022199982777237892,
2390
+ "execute": 0.007970999926328659,
2391
+ "worker_e2e": 0.012982582906261086,
2392
+ "cli_e2e": 0.01360700000077486
2393
+ },
2394
+ {
2395
+ "load": 0.00014699995517730713,
2396
+ "translate": 0.00021999981254339218,
2397
+ "execute": 0.008059000130742788,
2398
+ "worker_e2e": 0.013343666912987828,
2399
+ "cli_e2e": 0.013508250005543232
2400
+ },
2401
+ {
2402
+ "load": 0.00016799988225102425,
2403
+ "translate": 0.00024399999529123306,
2404
+ "execute": 0.007954000029712915,
2405
+ "worker_e2e": 0.013505582930520177,
2406
+ "cli_e2e": 0.014206500025466084
2407
+ },
2408
+ {
2409
+ "load": 0.0001509999856352806,
2410
+ "translate": 0.00023900019004940987,
2411
+ "execute": 0.007784999907016754,
2412
+ "worker_e2e": 0.012955083977431059,
2413
+ "cli_e2e": 0.014222334139049053
2414
+ },
2415
+ {
2416
+ "load": 0.0004960000514984131,
2417
+ "translate": 0.0003819996491074562,
2418
+ "execute": 0.01704900013282895,
2419
+ "worker_e2e": 0.02855554106645286,
2420
+ "cli_e2e": 0.031712165800854564
2421
+ },
2422
+ {
2423
+ "load": 0.00016399985179305077,
2424
+ "translate": 0.0002410002052783966,
2425
+ "execute": 0.007968000136315823,
2426
+ "worker_e2e": 0.014028833014890552,
2427
+ "cli_e2e": 0.013800917193293571
2428
+ },
2429
+ {
2430
+ "load": 0.00016900012269616127,
2431
+ "translate": 0.00024199998006224632,
2432
+ "execute": 0.007958000060170889,
2433
+ "worker_e2e": 0.01403395808301866,
2434
+ "cli_e2e": 0.01353595801629126
2435
+ }
2436
+ ],
2437
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
2438
+ "statistics_ms": {
2439
+ "load": {
2440
+ "mean": 0.20542853911008155,
2441
+ "sd": 0.1285494538881508,
2442
+ "min": 0.14299992471933365,
2443
+ "max": 0.4960000514984131
2444
+ },
2445
+ "translate": {
2446
+ "mean": 0.25571423715778757,
2447
+ "sd": 0.056541066509398455,
2448
+ "min": 0.21999981254339218,
2449
+ "max": 0.3819996491074562
2450
+ },
2451
+ "execute": {
2452
+ "mean": 9.249142903302397,
2453
+ "sd": 3.4403814831356145,
2454
+ "min": 7.784999907016754,
2455
+ "max": 17.04900013282895
2456
+ },
2457
+ "worker_e2e": {
2458
+ "mean": 15.629321270223175,
2459
+ "sd": 5.7167175024467705,
2460
+ "min": 12.955083977431059,
2461
+ "max": 28.55554106645286
2462
+ },
2463
+ "cli_e2e": {
2464
+ "mean": 16.37044645446752,
2465
+ "sd": 6.771644474269063,
2466
+ "min": 13.508250005543232,
2467
+ "max": 31.712165800854564
2468
+ }
2469
+ }
2470
+ },
2471
+ {
2472
+ "compiler": "compiler-baseline",
2473
+ "ruby_source": "baseline",
2474
+ "export": "call_mix",
2475
+ "disabled": "",
2476
+ "samples": [
2477
+ {
2478
+ "load": 0.0001360001042485237,
2479
+ "translate": 0.00021500000730156898,
2480
+ "execute": 0.007929999846965075,
2481
+ "worker_e2e": 0.013210624922066927,
2482
+ "cli_e2e": 0.012943374924361706
2483
+ },
2484
+ {
2485
+ "load": 0.0001509999856352806,
2486
+ "translate": 0.00022199982777237892,
2487
+ "execute": 0.007931000087410212,
2488
+ "worker_e2e": 0.013436167035251856,
2489
+ "cli_e2e": 0.013551915995776653
2490
+ },
2491
+ {
2492
+ "load": 0.00015300000086426735,
2493
+ "translate": 0.00023700017482042313,
2494
+ "execute": 0.007917999755591154,
2495
+ "worker_e2e": 0.013188541866838932,
2496
+ "cli_e2e": 0.014450875110924244
2497
+ },
2498
+ {
2499
+ "load": 0.00016999989748001099,
2500
+ "translate": 0.0002470002509653568,
2501
+ "execute": 0.00788899976760149,
2502
+ "worker_e2e": 0.013341124868020415,
2503
+ "cli_e2e": 0.014262832934036851
2504
+ },
2505
+ {
2506
+ "load": 0.000457999762147665,
2507
+ "translate": 0.00045499997213482857,
2508
+ "execute": 0.015804000198841095,
2509
+ "worker_e2e": 0.02573383296839893,
2510
+ "cli_e2e": 0.022719457978382707
2511
+ },
2512
+ {
2513
+ "load": 0.00018300022929906845,
2514
+ "translate": 0.00024399999529123306,
2515
+ "execute": 0.007962999865412712,
2516
+ "worker_e2e": 0.014074541861191392,
2517
+ "cli_e2e": 0.014598916051909328
2518
+ },
2519
+ {
2520
+ "load": 0.00017799995839595795,
2521
+ "translate": 0.00026299990713596344,
2522
+ "execute": 0.008071000222116709,
2523
+ "worker_e2e": 0.014016665983945131,
2524
+ "cli_e2e": 0.014888458885252476
2525
+ }
2526
+ ],
2527
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
2528
+ "statistics_ms": {
2529
+ "load": {
2530
+ "mean": 0.20414284829582488,
2531
+ "sd": 0.1131538208904228,
2532
+ "min": 0.1360001042485237,
2533
+ "max": 0.457999762147665
2534
+ },
2535
+ "translate": {
2536
+ "mean": 0.2690000193459647,
2537
+ "sd": 0.08355635239559112,
2538
+ "min": 0.21500000730156898,
2539
+ "max": 0.45499997213482857
2540
+ },
2541
+ "execute": {
2542
+ "mean": 9.072285677705493,
2543
+ "sd": 2.9689773554700505,
2544
+ "min": 7.88899976760149,
2545
+ "max": 15.804000198841095
2546
+ },
2547
+ "worker_e2e": {
2548
+ "mean": 15.285928500816226,
2549
+ "sd": 4.621453360453992,
2550
+ "min": 13.188541866838932,
2551
+ "max": 25.73383296839893
2552
+ },
2553
+ "cli_e2e": {
2554
+ "mean": 15.345118840091995,
2555
+ "sd": 3.31916655073683,
2556
+ "min": 12.943374924361706,
2557
+ "max": 22.719457978382707
2558
+ }
2559
+ }
2560
+ },
2561
+ {
2562
+ "compiler": "compiler-baseline",
2563
+ "ruby_source": "baseline",
2564
+ "export": "call_mix",
2565
+ "disabled": "inline",
2566
+ "samples": [
2567
+ {
2568
+ "load": 0.0001349998638033867,
2569
+ "translate": 0.00019499985501170158,
2570
+ "execute": 0.012535999994724989,
2571
+ "worker_e2e": 0.017720500007271767,
2572
+ "cli_e2e": 0.018136915983632207
2573
+ },
2574
+ {
2575
+ "load": 0.00014899997040629387,
2576
+ "translate": 0.0001960000954568386,
2577
+ "execute": 0.01242800010368228,
2578
+ "worker_e2e": 0.01787112490274012,
2579
+ "cli_e2e": 0.01821599993854761
2580
+ },
2581
+ {
2582
+ "load": 0.0001659998670220375,
2583
+ "translate": 0.0002210000529885292,
2584
+ "execute": 0.01278700027614832,
2585
+ "worker_e2e": 0.01952858315780759,
2586
+ "cli_e2e": 0.019429583102464676
2587
+ },
2588
+ {
2589
+ "load": 0.0001610000617802143,
2590
+ "translate": 0.00021400023251771927,
2591
+ "execute": 0.01247800001874566,
2592
+ "worker_e2e": 0.018840041011571884,
2593
+ "cli_e2e": 0.01891675009392202
2594
+ },
2595
+ {
2596
+ "load": 0.000376999843865633,
2597
+ "translate": 0.00036499975249171257,
2598
+ "execute": 0.014389000367373228,
2599
+ "worker_e2e": 0.02551841689273715,
2600
+ "cli_e2e": 0.01986566698178649
2601
+ },
2602
+ {
2603
+ "load": 0.0001659998670220375,
2604
+ "translate": 0.00021200021728873253,
2605
+ "execute": 0.012697999831289053,
2606
+ "worker_e2e": 0.0187948748935014,
2607
+ "cli_e2e": 0.01892083277925849
2608
+ },
2609
+ {
2610
+ "load": 0.00016800034791231155,
2611
+ "translate": 0.0002309996634721756,
2612
+ "execute": 0.012512000277638435,
2613
+ "worker_e2e": 0.01890354184433818,
2614
+ "cli_e2e": 0.01880299998447299
2615
+ }
2616
+ ],
2617
+ "metrics_at_10": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2\ninstructions=20 copies=2 registers=37",
2618
+ "statistics_ms": {
2619
+ "load": {
2620
+ "mean": 0.18885711740170205,
2621
+ "sd": 0.08380812373542909,
2622
+ "min": 0.1349998638033867,
2623
+ "max": 0.376999843865633
2624
+ },
2625
+ "translate": {
2626
+ "mean": 0.23342855274677277,
2627
+ "sd": 0.05942170636478251,
2628
+ "min": 0.19499985501170158,
2629
+ "max": 0.36499975249171257
2630
+ },
2631
+ "execute": {
2632
+ "mean": 12.83257155280028,
2633
+ "sd": 0.6979465841596235,
2634
+ "min": 12.42800010368228,
2635
+ "max": 14.389000367373228
2636
+ },
2637
+ "worker_e2e": {
2638
+ "mean": 19.596726101424014,
2639
+ "sd": 2.685300456221107,
2640
+ "min": 17.720500007271767,
2641
+ "max": 25.51841689273715
2642
+ },
2643
+ "cli_e2e": {
2644
+ "mean": 18.898392694869212,
2645
+ "sd": 0.6155254898016543,
2646
+ "min": 18.136915983632207,
2647
+ "max": 19.86566698178649
2648
+ }
2649
+ }
2650
+ },
2651
+ {
2652
+ "compiler": "compiler-baseline",
2653
+ "ruby_source": "while_loop",
2654
+ "export": "inline_mix",
2655
+ "disabled": "",
2656
+ "samples": [
2657
+ {
2658
+ "load": 0.0001449999399483204,
2659
+ "translate": 0.00021900003775954247,
2660
+ "execute": 0.0050940001383423805,
2661
+ "worker_e2e": 0.010201459052041173,
2662
+ "cli_e2e": 0.010760667035356164
2663
+ },
2664
+ {
2665
+ "load": 0.0001709996722638607,
2666
+ "translate": 0.00023900019004940987,
2667
+ "execute": 0.005073000211268663,
2668
+ "worker_e2e": 0.010744374943897128,
2669
+ "cli_e2e": 0.010739332996308804
2670
+ },
2671
+ {
2672
+ "load": 0.0001610000617802143,
2673
+ "translate": 0.00024899980053305626,
2674
+ "execute": 0.00506300013512373,
2675
+ "worker_e2e": 0.011025291169062257,
2676
+ "cli_e2e": 0.011708416976034641
2677
+ },
2678
+ {
2679
+ "load": 0.00016300007700920105,
2680
+ "translate": 0.00023900019004940987,
2681
+ "execute": 0.005080999806523323,
2682
+ "worker_e2e": 0.01108970819041133,
2683
+ "cli_e2e": 0.01175212487578392
2684
+ },
2685
+ {
2686
+ "load": 0.00023900019004940987,
2687
+ "translate": 0.0002620001323521137,
2688
+ "execute": 0.005124999675899744,
2689
+ "worker_e2e": 0.011326000094413757,
2690
+ "cli_e2e": 0.011765792034566402
2691
+ },
2692
+ {
2693
+ "load": 0.00015300000086426735,
2694
+ "translate": 0.00023999996483325958,
2695
+ "execute": 0.005072999745607376,
2696
+ "worker_e2e": 0.010233375011011958,
2697
+ "cli_e2e": 0.010587000055238605
2698
+ },
2699
+ {
2700
+ "load": 0.00024199998006224632,
2701
+ "translate": 0.000260000117123127,
2702
+ "execute": 0.005117999855428934,
2703
+ "worker_e2e": 0.011169292032718658,
2704
+ "cli_e2e": 0.011159957852214575
2705
+ }
2706
+ ],
2707
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
2708
+ "statistics_ms": {
2709
+ "load": {
2710
+ "mean": 0.18199998885393143,
2711
+ "sd": 0.04078812195568685,
2712
+ "min": 0.1449999399483204,
2713
+ "max": 0.24199998006224632
2714
+ },
2715
+ "translate": {
2716
+ "mean": 0.2440000618142741,
2717
+ "sd": 0.014696944752989185,
2718
+ "min": 0.21900003775954247,
2719
+ "max": 0.2620001323521137
2720
+ },
2721
+ "execute": {
2722
+ "mean": 5.089571366884878,
2723
+ "sd": 0.02384562116243199,
2724
+ "min": 5.06300013512373,
2725
+ "max": 5.124999675899744
2726
+ },
2727
+ "worker_e2e": {
2728
+ "mean": 10.827071499079466,
2729
+ "sd": 0.451851539070142,
2730
+ "min": 10.201459052041173,
2731
+ "max": 11.326000094413757
2732
+ },
2733
+ "cli_e2e": {
2734
+ "mean": 11.210470260786158,
2735
+ "sd": 0.5268274211132786,
2736
+ "min": 10.587000055238605,
2737
+ "max": 11.765792034566402
2738
+ }
2739
+ }
2740
+ },
2741
+ {
2742
+ "compiler": "compiler-baseline",
2743
+ "ruby_source": "while_loop",
2744
+ "export": "call_mix",
2745
+ "disabled": "",
2746
+ "samples": [
2747
+ {
2748
+ "load": 0.0001559997908771038,
2749
+ "translate": 0.00023399991914629936,
2750
+ "execute": 0.005054000299423933,
2751
+ "worker_e2e": 0.010441291844472289,
2752
+ "cli_e2e": 0.010791166918352246
2753
+ },
2754
+ {
2755
+ "load": 0.00016400031745433807,
2756
+ "translate": 0.0002409997396171093,
2757
+ "execute": 0.0051009999588131905,
2758
+ "worker_e2e": 0.011285665910691023,
2759
+ "cli_e2e": 0.01141024986281991
2760
+ },
2761
+ {
2762
+ "load": 0.0002209995873272419,
2763
+ "translate": 0.00023400038480758667,
2764
+ "execute": 0.005068999715149403,
2765
+ "worker_e2e": 0.011166957905516028,
2766
+ "cli_e2e": 0.010926124872639775
2767
+ },
2768
+ {
2769
+ "load": 0.00016399985179305077,
2770
+ "translate": 0.00023900019004940987,
2771
+ "execute": 0.005044999998062849,
2772
+ "worker_e2e": 0.01107637514360249,
2773
+ "cli_e2e": 0.010709166992455721
2774
+ },
2775
+ {
2776
+ "load": 0.0001659998670220375,
2777
+ "translate": 0.00024300022050738335,
2778
+ "execute": 0.005103999748826027,
2779
+ "worker_e2e": 0.011186790885403752,
2780
+ "cli_e2e": 0.011441875016316772
2781
+ },
2782
+ {
2783
+ "load": 0.00018199998885393143,
2784
+ "translate": 0.0002669999375939369,
2785
+ "execute": 0.0050849998369812965,
2786
+ "worker_e2e": 0.011206000111997128,
2787
+ "cli_e2e": 0.011767083080485463
2788
+ },
2789
+ {
2790
+ "load": 0.00013699987903237343,
2791
+ "translate": 0.0002259998582303524,
2792
+ "execute": 0.005080000031739473,
2793
+ "worker_e2e": 0.009998416993767023,
2794
+ "cli_e2e": 0.011209791991859674
2795
+ }
2796
+ ],
2797
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
2798
+ "statistics_ms": {
2799
+ "load": {
2800
+ "mean": 0.169999897480011,
2801
+ "sd": 0.02619787049974403,
2802
+ "min": 0.13699987903237343,
2803
+ "max": 0.2209995873272419
2804
+ },
2805
+ "translate": {
2806
+ "mean": 0.24057146427886827,
2807
+ "sd": 0.012946758762542235,
2808
+ "min": 0.2259998582303524,
2809
+ "max": 0.2669999375939369
2810
+ },
2811
+ "execute": {
2812
+ "mean": 5.07685708414231,
2813
+ "sd": 0.02234140392309382,
2814
+ "min": 5.044999998062849,
2815
+ "max": 5.103999748826027
2816
+ },
2817
+ "worker_e2e": {
2818
+ "mean": 10.908785542207104,
2819
+ "sd": 0.4915490444457161,
2820
+ "min": 9.998416993767023,
2821
+ "max": 11.285665910691023
2822
+ },
2823
+ "cli_e2e": {
2824
+ "mean": 11.17935124784708,
2825
+ "sd": 0.38825939571896245,
2826
+ "min": 10.709166992455721,
2827
+ "max": 11.767083080485463
2828
+ }
2829
+ }
2830
+ },
2831
+ {
2832
+ "compiler": "compiler-baseline",
2833
+ "ruby_source": "while_loop",
2834
+ "export": "call_mix",
2835
+ "disabled": "inline",
2836
+ "samples": [
2837
+ {
2838
+ "load": 0.000135000329464674,
2839
+ "translate": 0.00018899980932474136,
2840
+ "execute": 0.007726999931037426,
2841
+ "worker_e2e": 0.012952208053320646,
2842
+ "cli_e2e": 0.022248749854043126
2843
+ },
2844
+ {
2845
+ "load": 0.0001659998670220375,
2846
+ "translate": 0.00021700002253055573,
2847
+ "execute": 0.007741000037640333,
2848
+ "worker_e2e": 0.01327787502668798,
2849
+ "cli_e2e": 0.014404792105779052
2850
+ },
2851
+ {
2852
+ "load": 0.0001360001042485237,
2853
+ "translate": 0.00019699987024068832,
2854
+ "execute": 0.007602000143378973,
2855
+ "worker_e2e": 0.012634083162993193,
2856
+ "cli_e2e": 0.014279082883149385
2857
+ },
2858
+ {
2859
+ "load": 0.0001560002565383911,
2860
+ "translate": 0.0002210000529885292,
2861
+ "execute": 0.00776199996471405,
2862
+ "worker_e2e": 0.013336542062461376,
2863
+ "cli_e2e": 0.014521792065352201
2864
+ },
2865
+ {
2866
+ "load": 0.00015400024130940437,
2867
+ "translate": 0.00021799979731440544,
2868
+ "execute": 0.007541000377386808,
2869
+ "worker_e2e": 0.013320290949195623,
2870
+ "cli_e2e": 0.013971875188872218
2871
+ },
2872
+ {
2873
+ "load": 0.00016999989748001099,
2874
+ "translate": 0.00022300006821751595,
2875
+ "execute": 0.007664999924600124,
2876
+ "worker_e2e": 0.0133413749281317,
2877
+ "cli_e2e": 0.014443124877288938
2878
+ },
2879
+ {
2880
+ "load": 0.00016699964180588722,
2881
+ "translate": 0.0002200002782046795,
2882
+ "execute": 0.0076049999333918095,
2883
+ "worker_e2e": 0.013891665963456035,
2884
+ "cli_e2e": 0.014406624948605895
2885
+ }
2886
+ ],
2887
+ "metrics_at_10": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2\ninstructions=20 copies=2 registers=37",
2888
+ "statistics_ms": {
2889
+ "load": {
2890
+ "mean": 0.1548571911241327,
2891
+ "sd": 0.014450060740520139,
2892
+ "min": 0.135000329464674,
2893
+ "max": 0.169999897480011
2894
+ },
2895
+ "translate": {
2896
+ "mean": 0.2121428426887308,
2897
+ "sd": 0.013421838763230831,
2898
+ "min": 0.18899980932474136,
2899
+ "max": 0.22300006821751595
2900
+ },
2901
+ "execute": {
2902
+ "mean": 7.663285758878503,
2903
+ "sd": 0.08361949164880071,
2904
+ "min": 7.541000377386808,
2905
+ "max": 7.76199996471405
2906
+ },
2907
+ "worker_e2e": {
2908
+ "mean": 13.250577163749508,
2909
+ "sd": 0.3875829397615804,
2910
+ "min": 12.634083162993193,
2911
+ "max": 13.891665963456035
2912
+ },
2913
+ "cli_e2e": {
2914
+ "mean": 15.468005989012974,
2915
+ "sd": 2.9953599795590895,
2916
+ "min": 13.971875188872218,
2917
+ "max": 22.248749854043126
2918
+ }
2919
+ }
2920
+ },
2921
+ {
2922
+ "compiler": "compiler-patch",
2923
+ "ruby_source": "baseline",
2924
+ "export": "inline_mix",
2925
+ "disabled": "",
2926
+ "samples": [
2927
+ {
2928
+ "load": 0.0001500002108514309,
2929
+ "translate": 0.00021500000730156898,
2930
+ "execute": 0.012657999992370605,
2931
+ "worker_e2e": 0.02061658399179578,
2932
+ "cli_e2e": 0.01743233297020197
2933
+ },
2934
+ {
2935
+ "load": 0.00016199983656406403,
2936
+ "translate": 0.0002450002357363701,
2937
+ "execute": 0.005665999837219715,
2938
+ "worker_e2e": 0.012084500165656209,
2939
+ "cli_e2e": 0.011133166961371899
2940
+ },
2941
+ {
2942
+ "load": 0.00018199998885393143,
2943
+ "translate": 0.00025800010189414024,
2944
+ "execute": 0.005764999892562628,
2945
+ "worker_e2e": 0.011808959068730474,
2946
+ "cli_e2e": 0.012440082849934697
2947
+ },
2948
+ {
2949
+ "load": 0.00019900035113096237,
2950
+ "translate": 0.00026399968191981316,
2951
+ "execute": 0.0057680001482367516,
2952
+ "worker_e2e": 0.012131375027820468,
2953
+ "cli_e2e": 0.011922959005460143
2954
+ },
2955
+ {
2956
+ "load": 0.00016200030222535133,
2957
+ "translate": 0.0002469997853040695,
2958
+ "execute": 0.0056870002299547195,
2959
+ "worker_e2e": 0.011009874986484647,
2960
+ "cli_e2e": 0.01231262506917119
2961
+ },
2962
+ {
2963
+ "load": 0.00017199991270899773,
2964
+ "translate": 0.0002460000105202198,
2965
+ "execute": 0.0056570000015199184,
2966
+ "worker_e2e": 0.01170204090885818,
2967
+ "cli_e2e": 0.01105520804412663
2968
+ },
2969
+ {
2970
+ "load": 0.00017299968749284744,
2971
+ "translate": 0.0002649999223649502,
2972
+ "execute": 0.005744000431150198,
2973
+ "worker_e2e": 0.011938625015318394,
2974
+ "cli_e2e": 0.011363792000338435
2975
+ }
2976
+ ],
2977
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
2978
+ "statistics_ms": {
2979
+ "load": {
2980
+ "mean": 0.17142861283251218,
2981
+ "sd": 0.015873041491839993,
2982
+ "min": 0.1500002108514309,
2983
+ "max": 0.19900035113096237
2984
+ },
2985
+ "translate": {
2986
+ "mean": 0.24857139214873314,
2987
+ "sd": 0.017057267698453924,
2988
+ "min": 0.21500000730156898,
2989
+ "max": 0.2649999223649502
2990
+ },
2991
+ "execute": {
2992
+ "mean": 6.706428647573505,
2993
+ "sd": 2.624799439459686,
2994
+ "min": 5.657000001519918,
2995
+ "max": 12.657999992370605
2996
+ },
2997
+ "worker_e2e": {
2998
+ "mean": 13.041708452094879,
2999
+ "sd": 3.3611311230494145,
3000
+ "min": 11.009874986484647,
3001
+ "max": 20.61658399179578
3002
+ },
3003
+ "cli_e2e": {
3004
+ "mean": 12.52288098580071,
3005
+ "sd": 2.2339257097858822,
3006
+ "min": 11.05520804412663,
3007
+ "max": 17.43233297020197
3008
+ }
3009
+ }
3010
+ },
3011
+ {
3012
+ "compiler": "compiler-patch",
3013
+ "ruby_source": "baseline",
3014
+ "export": "call_mix",
3015
+ "disabled": "",
3016
+ "samples": [
3017
+ {
3018
+ "load": 0.00015200022608041763,
3019
+ "translate": 0.0002209995873272419,
3020
+ "execute": 0.0056580002419650555,
3021
+ "worker_e2e": 0.011411000043153763,
3022
+ "cli_e2e": 0.011274625081568956
3023
+ },
3024
+ {
3025
+ "load": 0.0001600002869963646,
3026
+ "translate": 0.0002409997396171093,
3027
+ "execute": 0.005727000068873167,
3028
+ "worker_e2e": 0.011533624958246946,
3029
+ "cli_e2e": 0.011761791072785854
3030
+ },
3031
+ {
3032
+ "load": 0.00015800027176737785,
3033
+ "translate": 0.00023999996483325958,
3034
+ "execute": 0.005665999837219715,
3035
+ "worker_e2e": 0.011769125005230308,
3036
+ "cli_e2e": 0.01115183299407363
3037
+ },
3038
+ {
3039
+ "load": 0.0001799999736249447,
3040
+ "translate": 0.0002550003118813038,
3041
+ "execute": 0.005707999691367149,
3042
+ "worker_e2e": 0.01208716700784862,
3043
+ "cli_e2e": 0.012347707990556955
3044
+ },
3045
+ {
3046
+ "load": 0.0001659998670220375,
3047
+ "translate": 0.0002470002509653568,
3048
+ "execute": 0.005621999967843294,
3049
+ "worker_e2e": 0.01176504185423255,
3050
+ "cli_e2e": 0.011278584133833647
3051
+ },
3052
+ {
3053
+ "load": 0.0001650000922381878,
3054
+ "translate": 0.0002359999343752861,
3055
+ "execute": 0.00572500005364418,
3056
+ "worker_e2e": 0.010716875083744526,
3057
+ "cli_e2e": 0.012183250160887837
3058
+ },
3059
+ {
3060
+ "load": 0.0001600002869963646,
3061
+ "translate": 0.00023899972438812256,
3062
+ "execute": 0.005790000315755606,
3063
+ "worker_e2e": 0.011950540821999311,
3064
+ "cli_e2e": 0.012159083038568497
3065
+ }
3066
+ ],
3067
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
3068
+ "statistics_ms": {
3069
+ "load": {
3070
+ "mean": 0.1630001435322421,
3071
+ "sd": 0.008812751548240896,
3072
+ "min": 0.15200022608041763,
3073
+ "max": 0.1799999736249447
3074
+ },
3075
+ "translate": {
3076
+ "mean": 0.23985707334109715,
3077
+ "sd": 0.010431411787206966,
3078
+ "min": 0.2209995873272419,
3079
+ "max": 0.2550003118813038
3080
+ },
3081
+ "execute": {
3082
+ "mean": 5.699428596666881,
3083
+ "sd": 0.055557430567520605,
3084
+ "min": 5.621999967843294,
3085
+ "max": 5.790000315755606
3086
+ },
3087
+ "worker_e2e": {
3088
+ "mean": 11.60476782492229,
3089
+ "sd": 0.45385933300825904,
3090
+ "min": 10.716875083744526,
3091
+ "max": 12.08716700784862
3092
+ },
3093
+ "cli_e2e": {
3094
+ "mean": 11.736696353182197,
3095
+ "sd": 0.5028630687576041,
3096
+ "min": 11.15183299407363,
3097
+ "max": 12.347707990556955
3098
+ }
3099
+ }
3100
+ },
3101
+ {
3102
+ "compiler": "compiler-patch",
3103
+ "ruby_source": "baseline",
3104
+ "export": "call_mix",
3105
+ "disabled": "inline",
3106
+ "samples": [
3107
+ {
3108
+ "load": 0.00013699987903237343,
3109
+ "translate": 0.0002109999768435955,
3110
+ "execute": 0.01019599987193942,
3111
+ "worker_e2e": 0.015512041980400681,
3112
+ "cli_e2e": 0.016370959114283323
3113
+ },
3114
+ {
3115
+ "load": 0.00014700042083859444,
3116
+ "translate": 0.00020299991592764854,
3117
+ "execute": 0.010402999818325043,
3118
+ "worker_e2e": 0.016022374853491783,
3119
+ "cli_e2e": 0.017623416846618056
3120
+ },
3121
+ {
3122
+ "load": 0.0001650000922381878,
3123
+ "translate": 0.00021799979731440544,
3124
+ "execute": 0.010448000393807888,
3125
+ "worker_e2e": 0.016287790844216943,
3126
+ "cli_e2e": 0.017112792003899813
3127
+ },
3128
+ {
3129
+ "load": 0.00016400031745433807,
3130
+ "translate": 0.00021999981254339218,
3131
+ "execute": 0.01069300016388297,
3132
+ "worker_e2e": 0.016609374899417162,
3133
+ "cli_e2e": 0.017014209181070328
3134
+ },
3135
+ {
3136
+ "load": 0.00018800003454089165,
3137
+ "translate": 0.00022799987345933914,
3138
+ "execute": 0.01081399992108345,
3139
+ "worker_e2e": 0.016528084175661206,
3140
+ "cli_e2e": 0.016574583016335964
3141
+ },
3142
+ {
3143
+ "load": 0.00016199983656406403,
3144
+ "translate": 0.00022199982777237892,
3145
+ "execute": 0.010854000225663185,
3146
+ "worker_e2e": 0.016919916961342096,
3147
+ "cli_e2e": 0.016667457995936275
3148
+ },
3149
+ {
3150
+ "load": 0.00015700003132224083,
3151
+ "translate": 0.00022199982777237892,
3152
+ "execute": 0.010236999951303005,
3153
+ "worker_e2e": 0.016028791200369596,
3154
+ "cli_e2e": 0.01651833299547434
3155
+ }
3156
+ ],
3157
+ "metrics_at_10": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2\ninstructions=20 copies=2 registers=37",
3158
+ "statistics_ms": {
3159
+ "load": {
3160
+ "mean": 0.16000008742724145,
3161
+ "sd": 0.015999995716734307,
3162
+ "min": 0.13699987903237343,
3163
+ "max": 0.18800003454089165
3164
+ },
3165
+ "translate": {
3166
+ "mean": 0.21771414737616265,
3167
+ "sd": 0.008260597518540464,
3168
+ "min": 0.20299991592764854,
3169
+ "max": 0.22799987345933914
3170
+ },
3171
+ "execute": {
3172
+ "mean": 10.520714335143566,
3173
+ "sd": 0.26828333451482234,
3174
+ "min": 10.19599987193942,
3175
+ "max": 10.854000225663185
3176
+ },
3177
+ "worker_e2e": {
3178
+ "mean": 16.272624987842782,
3179
+ "sd": 0.46519590113705184,
3180
+ "min": 15.512041980400681,
3181
+ "max": 16.919916961342096
3182
+ },
3183
+ "cli_e2e": {
3184
+ "mean": 16.840250164802587,
3185
+ "sd": 0.43630871454107045,
3186
+ "min": 16.370959114283323,
3187
+ "max": 17.623416846618056
3188
+ }
3189
+ }
3190
+ },
3191
+ {
3192
+ "compiler": "compiler-patch",
3193
+ "ruby_source": "while_loop",
3194
+ "export": "inline_mix",
3195
+ "disabled": "",
3196
+ "samples": [
3197
+ {
3198
+ "load": 0.00013400008901953697,
3199
+ "translate": 0.00021200021728873253,
3200
+ "execute": 0.0029670000076293945,
3201
+ "worker_e2e": 0.007799583021551371,
3202
+ "cli_e2e": 0.008497749920934439
3203
+ },
3204
+ {
3205
+ "load": 0.00015200022608041763,
3206
+ "translate": 0.00021999981254339218,
3207
+ "execute": 0.0030420003458857536,
3208
+ "worker_e2e": 0.0084327501244843,
3209
+ "cli_e2e": 0.008712166920304298
3210
+ },
3211
+ {
3212
+ "load": 0.00016200030222535133,
3213
+ "translate": 0.00025899987667798996,
3214
+ "execute": 0.003095999825745821,
3215
+ "worker_e2e": 0.009135166881605983,
3216
+ "cli_e2e": 0.009282083017751575
3217
+ },
3218
+ {
3219
+ "load": 0.0001460001803934574,
3220
+ "translate": 0.00022300006821751595,
3221
+ "execute": 0.002964999992400408,
3222
+ "worker_e2e": 0.00833404203876853,
3223
+ "cli_e2e": 0.009720249800011516
3224
+ },
3225
+ {
3226
+ "load": 0.00015900004655122757,
3227
+ "translate": 0.0002450002357363701,
3228
+ "execute": 0.0030789999291300774,
3229
+ "worker_e2e": 0.008752667112275958,
3230
+ "cli_e2e": 0.009363959077745676
3231
+ },
3232
+ {
3233
+ "load": 0.00016600033268332481,
3234
+ "translate": 0.0002409997396171093,
3235
+ "execute": 0.002971000038087368,
3236
+ "worker_e2e": 0.008921958971768618,
3237
+ "cli_e2e": 0.009108874946832657
3238
+ },
3239
+ {
3240
+ "load": 0.00018199998885393143,
3241
+ "translate": 0.0002469997853040695,
3242
+ "execute": 0.0029890001751482487,
3243
+ "worker_e2e": 0.009466374991461635,
3244
+ "cli_e2e": 0.009678542148321867
3245
+ }
3246
+ ],
3247
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
3248
+ "statistics_ms": {
3249
+ "load": {
3250
+ "mean": 0.15728588082960673,
3251
+ "sd": 0.015326590295140845,
3252
+ "min": 0.13400008901953697,
3253
+ "max": 0.18199998885393143
3254
+ },
3255
+ "translate": {
3256
+ "mean": 0.23528567648359708,
3257
+ "sd": 0.017094898030644377,
3258
+ "min": 0.21200021728873253,
3259
+ "max": 0.25899987667798996
3260
+ },
3261
+ "execute": {
3262
+ "mean": 3.0155714734324386,
3263
+ "sd": 0.05597571329371786,
3264
+ "min": 2.964999992400408,
3265
+ "max": 3.095999825745821
3266
+ },
3267
+ "worker_e2e": {
3268
+ "mean": 8.691791877416629,
3269
+ "sd": 0.5544317360662434,
3270
+ "min": 7.799583021551371,
3271
+ "max": 9.466374991461635
3272
+ },
3273
+ "cli_e2e": {
3274
+ "mean": 9.194803690271717,
3275
+ "sd": 0.4605311596723818,
3276
+ "min": 8.497749920934439,
3277
+ "max": 9.720249800011516
3278
+ }
3279
+ }
3280
+ },
3281
+ {
3282
+ "compiler": "compiler-patch",
3283
+ "ruby_source": "while_loop",
3284
+ "export": "call_mix",
3285
+ "disabled": "",
3286
+ "samples": [
3287
+ {
3288
+ "load": 0.0001349998638033867,
3289
+ "translate": 0.00021799979731440544,
3290
+ "execute": 0.0029330002143979073,
3291
+ "worker_e2e": 0.008044792106375098,
3292
+ "cli_e2e": 0.00819708313792944
3293
+ },
3294
+ {
3295
+ "load": 0.0001409999094903469,
3296
+ "translate": 0.00022400030866265297,
3297
+ "execute": 0.002955999691039324,
3298
+ "worker_e2e": 0.007835874799638987,
3299
+ "cli_e2e": 0.00784366694279015
3300
+ },
3301
+ {
3302
+ "load": 0.00015799980610609055,
3303
+ "translate": 0.00030900025740265846,
3304
+ "execute": 0.0030640000477433205,
3305
+ "worker_e2e": 0.008763500023633242,
3306
+ "cli_e2e": 0.00895529193803668
3307
+ },
3308
+ {
3309
+ "load": 0.0001659998670220375,
3310
+ "translate": 0.0002410002052783966,
3311
+ "execute": 0.002954999916255474,
3312
+ "worker_e2e": 0.009062625002115965,
3313
+ "cli_e2e": 0.008688624948263168
3314
+ },
3315
+ {
3316
+ "load": 0.0001550000160932541,
3317
+ "translate": 0.00023900019004940987,
3318
+ "execute": 0.0029879999347031116,
3319
+ "worker_e2e": 0.008605959126725793,
3320
+ "cli_e2e": 0.00865337485447526
3321
+ },
3322
+ {
3323
+ "load": 0.00014899997040629387,
3324
+ "translate": 0.0002309996634721756,
3325
+ "execute": 0.002950000111013651,
3326
+ "worker_e2e": 0.007919249823316932,
3327
+ "cli_e2e": 0.008683457970619202
3328
+ },
3329
+ {
3330
+ "load": 0.0001659998670220375,
3331
+ "translate": 0.0002449997700750828,
3332
+ "execute": 0.003047000151127577,
3333
+ "worker_e2e": 0.009021000005304813,
3334
+ "cli_e2e": 0.009259667014703155
3335
+ }
3336
+ ],
3337
+ "metrics_at_10": "dispatches=73 copies=1 register_reads=63 register_writes=51 function_entries=1 frames_created=1\ninstructions=23 copies=2 registers=49",
3338
+ "statistics_ms": {
3339
+ "load": {
3340
+ "mean": 0.15285704284906387,
3341
+ "sd": 0.01190836866459246,
3342
+ "min": 0.1349998638033867,
3343
+ "max": 0.1659998670220375
3344
+ },
3345
+ "translate": {
3346
+ "mean": 0.24385717032211168,
3347
+ "sd": 0.030289970868887458,
3348
+ "min": 0.21799979731440544,
3349
+ "max": 0.30900025740265846
3350
+ },
3351
+ "execute": {
3352
+ "mean": 2.984714295182909,
3353
+ "sd": 0.05125662132353937,
3354
+ "min": 2.9330002143979073,
3355
+ "max": 3.0640000477433205
3356
+ },
3357
+ "worker_e2e": {
3358
+ "mean": 8.464714412444405,
3359
+ "sd": 0.5236855393253987,
3360
+ "min": 7.835874799638987,
3361
+ "max": 9.062625002115965
3362
+ },
3363
+ "cli_e2e": {
3364
+ "mean": 8.611595258116722,
3365
+ "sd": 0.46770752292781625,
3366
+ "min": 7.843666942790151,
3367
+ "max": 9.259667014703155
3368
+ }
3369
+ }
3370
+ },
3371
+ {
3372
+ "compiler": "compiler-patch",
3373
+ "ruby_source": "while_loop",
3374
+ "export": "call_mix",
3375
+ "disabled": "inline",
3376
+ "samples": [
3377
+ {
3378
+ "load": 0.00012699980288743973,
3379
+ "translate": 0.00018700025975704193,
3380
+ "execute": 0.00611699977889657,
3381
+ "worker_e2e": 0.010932957986369729,
3382
+ "cli_e2e": 0.01192179205827415
3383
+ },
3384
+ {
3385
+ "load": 0.00014200014993548393,
3386
+ "translate": 0.0002000001259148121,
3387
+ "execute": 0.005681999959051609,
3388
+ "worker_e2e": 0.01049379212781787,
3389
+ "cli_e2e": 0.011818708153441548
3390
+ },
3391
+ {
3392
+ "load": 0.00018199998885393143,
3393
+ "translate": 0.0002660001628100872,
3394
+ "execute": 0.006245999597012997,
3395
+ "worker_e2e": 0.012394540943205357,
3396
+ "cli_e2e": 0.011689958162605762
3397
+ },
3398
+ {
3399
+ "load": 0.00016400031745433807,
3400
+ "translate": 0.0002259998582303524,
3401
+ "execute": 0.006008000113070011,
3402
+ "worker_e2e": 0.012141583021730185,
3403
+ "cli_e2e": 0.012314042076468468
3404
+ },
3405
+ {
3406
+ "load": 0.0002899998798966408,
3407
+ "translate": 0.00043800007551908493,
3408
+ "execute": 0.009461000096052885,
3409
+ "worker_e2e": 0.022936082910746336,
3410
+ "cli_e2e": 0.02105812495574355
3411
+ },
3412
+ {
3413
+ "load": 0.0001650000922381878,
3414
+ "translate": 0.00024300022050738335,
3415
+ "execute": 0.005919999908655882,
3416
+ "worker_e2e": 0.011815584031865,
3417
+ "cli_e2e": 0.01182883302681148
3418
+ },
3419
+ {
3420
+ "load": 0.00015199976041913033,
3421
+ "translate": 0.00021200021728873253,
3422
+ "execute": 0.005861999932676554,
3423
+ "worker_e2e": 0.011111208004876971,
3424
+ "cli_e2e": 0.011790666962042451
3425
+ }
3426
+ ],
3427
+ "metrics_at_10": "dispatches=93 copies=1 register_reads=83 register_writes=71 function_entries=11 frames_created=2\ninstructions=20 copies=2 registers=37",
3428
+ "statistics_ms": {
3429
+ "load": {
3430
+ "mean": 0.17457142738359316,
3431
+ "sd": 0.05387593420386773,
3432
+ "min": 0.12699980288743973,
3433
+ "max": 0.2899998798966408
3434
+ },
3435
+ "translate": {
3436
+ "mean": 0.25314298857535633,
3437
+ "sd": 0.08570183472176855,
3438
+ "min": 0.18700025975704193,
3439
+ "max": 0.43800007551908493
3440
+ },
3441
+ "execute": {
3442
+ "mean": 6.4708570550595015,
3443
+ "sd": 1.3308777749931304,
3444
+ "min": 5.681999959051609,
3445
+ "max": 9.461000096052885
3446
+ },
3447
+ "worker_e2e": {
3448
+ "mean": 13.117964146658778,
3449
+ "sd": 4.382843676942664,
3450
+ "min": 10.49379212781787,
3451
+ "max": 22.936082910746336
3452
+ },
3453
+ "cli_e2e": {
3454
+ "mean": 13.20316077076963,
3455
+ "sd": 3.4694693846856794,
3456
+ "min": 11.689958162605762,
3457
+ "max": 21.05812495574355
3458
+ }
3459
+ }
3460
+ }
3461
+ ]
3462
+ }
3463
+ ],
3464
+ "runner_source": "from pathlib import Path\nimport hashlib, json, math, statistics, subprocess, time\n\nroot=Path.cwd()\nbase=root/'build/benchmark/generated-guards'\nspinel=Path('/Users/udzura/ghq/github.com/matz/spinel')\nreports={name:json.loads((base/name/'results.json').read_text()) for name in ['compiler-baseline','compiler-patch']}\nfixtures={json.dumps(j['fixture'],sort_keys=True) for j in reports.values()}\nassert len(fixtures)==1\n\ndef reference(rounds,seed):\n x=seed\n for _ in range(rounds):\n x ^= x//8192\n x=(x*1664525+1013904223)%(2**32)\n x=(x^(x*128))%(2**32)\n return x\n\ndef summary(samples):\n return dict(mean=statistics.mean(samples),sd=statistics.stdev(samples),min=min(samples),max=max(samples))\n\ndef invoke(row,rounds,expected,metrics=False):\n directory=base/row['compiler']/row['ruby_source']\n wasm=base/row['compiler']/'i32_mix.wasm'\n command=[str(directory/'worker'),str(wasm),row['export'],str(rounds),'123',row['disabled']]\n if metrics: command+=['metrics']\n start=time.monotonic()\n run=subprocess.run(command,capture_output=True,text=True,check=True)\n e2e=time.monotonic()-start\n lines=run.stdout.splitlines();fields=lines[0].split(',')\n assert len(fields)==4 and int(fields[3])==expected,(command,run.stdout)\n values=dict(load=float(fields[0]),translate=float(fields[1]),execute=float(fields[2]),worker_e2e=e2e)\n if metrics: return '\\n'.join(lines[1:])\n command=[str(directory/'wardite'),'--new-engine','--no-wasi']\n if row['disabled']: command+=['--mir-disable',row['disabled']]\n command+=['--invoke',row['export'],'--',str(wasm),str(rounds),'123']\n start=time.monotonic()\n cli=subprocess.run(command,capture_output=True,text=True,check=True)\n values['cli_e2e']=time.monotonic()-start\n signed=expected if expected<2**31 else expected-2**32\n assert cli.stdout=='' and cli.stderr==f'return value: I32({signed})\\n',(command,cli.stdout,cli.stderr)\n return values\n\nrows=[dict(compiler=compiler,ruby_source=source,export=export,disabled=disabled,samples=[])\n for compiler in reports for source in ['baseline','while_loop']\n for export,disabled in [('inline_mix',''),('call_mix',''),('call_mix','inline')]]\nfor row in rows: row['metrics_at_10']=invoke(row,10,reference(10,123),True)\nfor export,disabled in [('inline_mix',''),('call_mix',''),('call_mix','inline')]:\n assert len({r['metrics_at_10'] for r in rows if r['export']==export and r['disabled']==disabled})==1\n\nreport=dict(spinel_commit=subprocess.check_output(['git','-C',str(spinel),'rev-parse','HEAD'],text=True).strip(),\n spinel_branch=subprocess.check_output(['git','-C',str(spinel),'branch','--show-current'],text=True).strip(),\n spinel_patch=subprocess.check_output(['git','-C',str(spinel),'diff'],text=True),\n compiler_sha256={name:hashlib.sha256((spinel/'bin'/binary).read_bytes()).hexdigest() for name,binary in [('compiler-baseline','spinel-fetch-root-baseline'),('compiler-patch','spinel')]},\n fixture=reports['compiler-patch']['fixture'],native_flags=['-O2'],seed=123,runs=7,warmups=2,\n note='Worker phases and separately built CLI processes. Timings in raw samples are seconds, summaries milliseconds. Build runs verify all eight original acceptance inputs. MIR counters run separately at 10 rounds.',\n build_reports=reports,measurements=[],runner_source=Path(__file__).read_text())\nfor rounds in [5000000,100000]:\n expected=reference(rounds,123)\n current=[{**r,'samples':[]} for r in rows]\n for iteration in range(9):\n order=current[iteration%len(current):]+current[:iteration%len(current)]\n if iteration%2: order=list(reversed(order))\n for row in order:\n sample=invoke(row,rounds,expected)\n if iteration>=2: row['samples'].append(sample)\n print(rounds,'warmup' if iteration<2 else 'sample',iteration+1 if iteration<2 else iteration-1,flush=True)\n for row in current:\n row['statistics_ms']={key:summary([sample[key]*1000 for sample in row['samples']]) for key in row['samples'][0]}\n print(rounds,row['compiler'],row['ruby_source'],row['export'],row['disabled'],row['statistics_ms']['execute'],flush=True)\n report['measurements'].append(dict(rounds=rounds,checksum=expected,results=current))\n (base/'compiler-comparison.json').write_text(json.dumps(report,indent=2)+'\\n')\n",
3465
+ "patch_sources": {
3466
+ "src/codegen_call_recv.c": {
3467
+ "sha256": "0db1f742d700b4f6b662768f0a486a46526aa88a1af89d3efc0dd451f61a890a"
3468
+ },
3469
+ "Makefile": {
3470
+ "sha256": "869b96ed5cce9193d387636053ac19c7cf72a64df0906bce509928309fe9cda6"
3471
+ },
3472
+ "tools/README.md": {
3473
+ "sha256": "5c9a2c7475ad08344efa9adb83712cef1c2b307c3d00018e86d38dfe9b3f37a0"
3474
+ },
3475
+ "test/array_fetch_root_slot.rb": {
3476
+ "sha256": "b776f121fd54dbcae195bde45d362a963c26014fea72acbb83d87b2958af1eb6",
3477
+ "source": "# A rooted local keeps a one-argument fetch receiver alive. Index evaluation\n# that can replace that local, a temporary receiver, defaults and blocks must\n# retain the receiver's temporary root.\n# spinel: decisions\n\ndef fetch_current(words, pc)\n words.fetch(pc)\nend\n\ndef fetch_next(words, pc)\n words.fetch(pc + 1)\nend\n\ndef fetch_literal(words)\n words.fetch(0)\nend\n\nwords = [11, 22, 33]\nputs fetch_current(words, 0)\nputs fetch_current(words, -1)\nputs fetch_next(words, 0)\nputs fetch_next(words, -2)\nputs fetch_literal(words)\nbegin\n fetch_next(words, 20)\nrescue IndexError\n puts \"bounds\"\nend\nputs words.fetch(20, 77)\nputs words.fetch(20) { |i| i + 1 }\n\n# Replacing the receiver slot while the index runs must retain the old array.\n20.times do\n held = (1..40).map { |i| i * 10 }\n answer = held.fetch(begin\n held = [99]\n GC.start\n (1..80).map { |i| [i, i.to_s] }\n 5\n end)\n raise \"lost receiver\" unless answer == 60 && held[0] == 99\nend\nputs \"replaced\"\n\ndef temporary_words\n (1..40).map { |i| i * 10 }\nend\n\ndef allocating_index\n GC.start\n (1..80).map { |i| [i, i.to_s] }\n 5\nend\nputs temporary_words.fetch(allocating_index)\n\n# A closure may overwrite the slot indirectly.\nheld = (1..40).map { |i| i * 10 }\nreplace = -> { held = [99]; GC.start; 5 }\nputs held.fetch(replace.call)\nputs held[0]\n"
3478
+ },
3479
+ "test/array_fetch_root_slot.rb.expected": {
3480
+ "sha256": "69310b47b3000e1c2837951659dfc6b45d7a95c6f3b2bdaba2f682e11480617a",
3481
+ "source": "11\n33\n22\n33\n11\nbounds\n77\n21\nreplaced\n60\n60\n99\n"
3482
+ },
3483
+ "test/array_fetch_root_reopened_index.rb": {
3484
+ "sha256": "8c037ef6f1bb91690ce42e781ab7b56389896fab118b952684ea3796519a5109",
3485
+ "source": "# An Integer result alone does not prove the index expression is builtin.\n# The user operator may allocate and must keep the conservative fetch path.\nclass Integer\n def +(other)\n GC.start\n self - -other\n end\nend\n\ndef fetch_reopened(words, pc)\n words.fetch(pc + 1)\nend\n\nputs fetch_reopened([11, 22, 33], 0)\nputs fetch_reopened([11, 22, 33], -2)\n"
3486
+ },
3487
+ "test/array_fetch_root_reopened_index.rb.expected": {
3488
+ "sha256": "aaf40c38378e13e878dda29522ccd46332746362f22b15f88c0d29ecb38c958e",
3489
+ "source": "22\n33\n"
3490
+ }
3491
+ },
3492
+ "validation": {
3493
+ "fetch_corpus": {
3494
+ "compiler_sha256": "9efa73d81f09c91f603408ed27875d2b3f2b60add09dcb95394cfa5d6a56a523",
3495
+ "flags": [
3496
+ "-O2"
3497
+ ],
3498
+ "gc_environment": {
3499
+ "SPINEL_GC_STRESS": "1",
3500
+ "SPINEL_GC_VERIFY": "1",
3501
+ "SPINEL_GC_STATS": "1"
3502
+ },
3503
+ "tests": [
3504
+ {
3505
+ "file": "array_fetch_block_next.rb",
3506
+ "build_status": 0,
3507
+ "results": [
3508
+ {
3509
+ "stress": false,
3510
+ "passed": true,
3511
+ "returncode": 0,
3512
+ "stdout": "42\n0\n20\n\"far\"\n\"near\"\n:nine\n42\n0\n20\n42\n0\n1\n",
3513
+ "stderr": ""
3514
+ },
3515
+ {
3516
+ "stress": true,
3517
+ "passed": true,
3518
+ "returncode": 0,
3519
+ "stdout": "42\n0\n20\n\"far\"\n\"near\"\n:nine\n42\n0\n20\n42\n0\n1\n",
3520
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.05ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 24 collections (12 full) in 0.00s of 0.0s wall (87.0%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3521
+ }
3522
+ ]
3523
+ },
3524
+ {
3525
+ "file": "array_fetch_block_value_setup.rb",
3526
+ "build_status": 0,
3527
+ "results": [
3528
+ {
3529
+ "stress": false,
3530
+ "passed": true,
3531
+ "returncode": 0,
3532
+ "stdout": "[7, 8]\n20\n14\n15\n[7, 8]\nnil\n[\"5\", \"k\"]\n\"62\"\n[7, 14]\n[7, 14]\n14\n14\n",
3533
+ "stderr": ""
3534
+ },
3535
+ {
3536
+ "stress": true,
3537
+ "passed": true,
3538
+ "returncode": 0,
3539
+ "stdout": "[7, 8]\n20\n14\n15\n[7, 8]\nnil\n[\"5\", \"k\"]\n\"62\"\n[7, 14]\n[7, 14]\n14\n14\n",
3540
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 23 collections (4 full) in 0.00s of 0.0s wall (71.9%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3541
+ }
3542
+ ]
3543
+ },
3544
+ {
3545
+ "file": "array_fetch_nil_default_block.rb",
3546
+ "build_status": 0,
3547
+ "results": [
3548
+ {
3549
+ "stress": false,
3550
+ "passed": true,
3551
+ "returncode": 0,
3552
+ "stdout": "nil\n2\nnil\nnil\n1\nnil\n8\n4\n51\nindex 5 outside of array bounds: -3...3\nnil\n1.5\n",
3553
+ "stderr": ""
3554
+ },
3555
+ {
3556
+ "stress": true,
3557
+ "passed": true,
3558
+ "returncode": 0,
3559
+ "stdout": "nil\n2\nnil\nnil\n1\nnil\n8\n4\n51\nindex 5 outside of array bounds: -3...3\nnil\n1.5\n",
3560
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 2 collections (1 full) in 0.00s of 0.0s wall (117.1%), 0.02ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3561
+ }
3562
+ ]
3563
+ },
3564
+ {
3565
+ "file": "array_fetch_recv_root.rb",
3566
+ "build_status": 0,
3567
+ "results": [
3568
+ {
3569
+ "stress": false,
3570
+ "passed": true,
3571
+ "returncode": 0,
3572
+ "stdout": "hash=50\nhash_def=50\ntyped_hash=5\ntyped_hash_def=5\ntyped_hash_blk=5\nhash_blk=50\nhashp=5\nsymh=50\nsymh_def=50\nhash_miss=key not found: \"k105\"\nstr=s6\nint=60\nflt=9.0\nheld=6\npoly=6\npoly_def=6\npoly_blk=6\npoly_neg=36\npoly_chain=35\npoly_if_def=5\nint_def=60\nint_blk=60\nint_if_def=50\nint_if_blk=50\nint_neg=360\nstr_def=s6\nmiss_def=-1\nmiss_blk=210\nmiss_raise=index 105 outside of array bounds: -40...40\n",
3573
+ "stderr": ""
3574
+ },
3575
+ {
3576
+ "stress": true,
3577
+ "passed": true,
3578
+ "returncode": 0,
3579
+ "stdout": "hash=50\nhash_def=50\ntyped_hash=5\ntyped_hash_def=5\ntyped_hash_blk=5\nhash_blk=50\nhashp=5\nsymh=50\nsymh_def=50\nhash_miss=key not found: \"k105\"\nstr=s6\nint=60\nflt=9.0\nheld=6\npoly=6\npoly_def=6\npoly_blk=6\npoly_neg=36\npoly_chain=35\npoly_if_def=5\nint_def=60\nint_blk=60\nint_if_def=50\nint_if_blk=50\nint_neg=360\nstr_def=s6\nmiss_def=-1\nmiss_blk=210\nmiss_raise=index 105 outside of array bounds: -40...40\n",
3580
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.03ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 11880 collections (130 full) in 0.03s of 0.0s wall (94.2%), 0.00ms avg; live 0.1 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3581
+ }
3582
+ ]
3583
+ },
3584
+ {
3585
+ "file": "array_fetch_root_reopened_index.rb",
3586
+ "build_status": 0,
3587
+ "results": [
3588
+ {
3589
+ "stress": false,
3590
+ "passed": true,
3591
+ "returncode": 0,
3592
+ "stdout": "22\n33\n",
3593
+ "stderr": ""
3594
+ },
3595
+ {
3596
+ "stress": true,
3597
+ "passed": true,
3598
+ "returncode": 0,
3599
+ "stdout": "22\n33\n",
3600
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.03ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 2 collections (1 full) in 0.00s of 0.0s wall (69.0%), 0.01ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3601
+ }
3602
+ ]
3603
+ },
3604
+ {
3605
+ "file": "array_fetch_root_slot.rb",
3606
+ "build_status": 0,
3607
+ "results": [
3608
+ {
3609
+ "stress": false,
3610
+ "passed": true,
3611
+ "returncode": 0,
3612
+ "stdout": "11\n33\n22\n33\n11\nbounds\n77\n21\nreplaced\n60\n60\n99\n",
3613
+ "stderr": ""
3614
+ },
3615
+ {
3616
+ "stress": true,
3617
+ "passed": true,
3618
+ "returncode": 0,
3619
+ "stdout": "11\n33\n22\n33\n11\nbounds\n77\n21\nreplaced\n60\n60\n99\n",
3620
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.03ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 3488 collections (69 full) in 0.01s of 0.0s wall (91.4%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3621
+ }
3622
+ ]
3623
+ },
3624
+ {
3625
+ "file": "array_fetch_values_block_literals.rb",
3626
+ "build_status": 0,
3627
+ "results": [
3628
+ {
3629
+ "stress": false,
3630
+ "passed": true,
3631
+ "returncode": 0,
3632
+ "stdout": "[[3]]\n[10, [4], [-3]]\n[4, -3]\n[{index: 2}]\n[[5, 1], 1, [6, 2]]\n2\n",
3633
+ "stderr": ""
3634
+ },
3635
+ {
3636
+ "stress": true,
3637
+ "passed": true,
3638
+ "returncode": 0,
3639
+ "stdout": "[[3]]\n[10, [4], [-3]]\n[4, -3]\n[{index: 2}]\n[[5, 1], 1, [6, 2]]\n2\n",
3640
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 20 collections (6 full) in 0.00s of 0.0s wall (67.0%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3641
+ }
3642
+ ]
3643
+ },
3644
+ {
3645
+ "file": "array_push_lift_root.rb",
3646
+ "build_status": 0,
3647
+ "results": [
3648
+ {
3649
+ "stress": false,
3650
+ "passed": true,
3651
+ "returncode": 0,
3652
+ "stdout": "[0, 0, 0, 0, 0, 0, 0, 0]\n[1, 2, \"x\"]\n[10, 2, \"y\", \"z\"]\n[1.5, 2.5, \"f\"]\n[\"a\", \"b\", 7]\n[1, 2, \"x\"]\n[5, 2, \"x\"]\n",
3653
+ "stderr": ""
3654
+ },
3655
+ {
3656
+ "stress": true,
3657
+ "passed": true,
3658
+ "returncode": 0,
3659
+ "stdout": "[0, 0, 0, 0, 0, 0, 0, 0]\n[1, 2, \"x\"]\n[10, 2, \"y\", \"z\"]\n[1.5, 2.5, \"f\"]\n[\"a\", \"b\", 7]\n[1, 2, \"x\"]\n[5, 2, \"x\"]\n",
3660
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 284157 collections (5902 full) in 0.42s of 0.5s wall (91.8%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3661
+ }
3662
+ ]
3663
+ },
3664
+ {
3665
+ "file": "array_push_recv_root.rb",
3666
+ "build_status": 0,
3667
+ "results": [
3668
+ {
3669
+ "stress": false,
3670
+ "passed": true,
3671
+ "returncode": 0,
3672
+ "stdout": "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n[390, \"s40\", 99]\n[400, 99, 100]\n[60.0, 1.5]\n[\"s40\", \"z\"]\n41\n41\n41\n42\n40\n",
3673
+ "stderr": ""
3674
+ },
3675
+ {
3676
+ "stress": true,
3677
+ "passed": true,
3678
+ "returncode": 0,
3679
+ "stdout": "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n[390, \"s40\", 99]\n[400, 99, 100]\n[60.0, 1.5]\n[\"s40\", \"z\"]\n41\n41\n41\n42\n40\n",
3680
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.03ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 502196 collections (5539 full) in 0.93s of 1.0s wall (92.7%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 937216 collections (10336 full) in 1.71s of 1.8s wall (92.8%), 0.00ms avg; live 0.1 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3681
+ }
3682
+ ]
3683
+ },
3684
+ {
3685
+ "file": "array_subclass_super_fetch_block.rb",
3686
+ "build_status": 0,
3687
+ "results": [
3688
+ {
3689
+ "stress": false,
3690
+ "passed": true,
3691
+ "returncode": 0,
3692
+ "stdout": "10\n1\n:dflt\n104\n3\n",
3693
+ "stderr": ""
3694
+ },
3695
+ {
3696
+ "stress": true,
3697
+ "passed": true,
3698
+ "returncode": 0,
3699
+ "stdout": "10\n1\n:dflt\n104\n3\n",
3700
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 1 collections (1 full) in 0.00s of 0.0s wall (105.6%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3701
+ }
3702
+ ]
3703
+ },
3704
+ {
3705
+ "file": "boxed_array_fetch_index.rb",
3706
+ "build_status": 0,
3707
+ "results": [
3708
+ {
3709
+ "stress": false,
3710
+ "passed": true,
3711
+ "returncode": 0,
3712
+ "stdout": "TypeError: no implicit conversion of true into Integer\nTypeError: no implicit conversion of Symbol into Integer\nTypeError: no implicit conversion of String into Integer\nTypeError: no implicit conversion of Array into Integer\nTypeError: no implicit conversion from nil to integer\n\"s\"\n:z\nTypeError: no implicit conversion of Symbol into Integer\nIndexError: index 7 outside of array bounds: -3...3\n:dflt\nTypeError: no implicit conversion of true into Integer\nTypeError: no implicit conversion of Symbol into Integer\nTypeError: no implicit conversion of String into Integer\nTypeError: no implicit conversion from nil to integer\n[\"s\", :z]\nTypeError: no implicit conversion of Symbol into Integer\nTypeError: no implicit conversion of String into Integer\nRangeError: float NaN out of range of integer\nRangeError: float NaN out of range of integer\nRangeError: float 1e+30 out of range of integer\nRangeError: bignum too big to convert into 'long'\nRangeError: float NaN out of range of integer\nRangeError: bignum too big to convert into 'long'\n:dflt\nIndexError: index -9223372036854775808 outside of array bounds: -3...3\n[10, nil, \"s\"]\nRangeError: bignum too big to convert into 'long'\n:dflt\n\"d\"\n[]\nIndexError: index 2 outside of array bounds: 0...0\n\"d\"\n[10]\n77\nd\n10\n:z\n:dflt\nIndexError: index 5 outside of array bounds: -3...3\n[10, :z, nil]\n[10, \"s\"]\n1\n[1, nil]\nKeyError: key not found: :b\n",
3713
+ "stderr": ""
3714
+ },
3715
+ {
3716
+ "stress": true,
3717
+ "passed": true,
3718
+ "returncode": 0,
3719
+ "stdout": "TypeError: no implicit conversion of true into Integer\nTypeError: no implicit conversion of Symbol into Integer\nTypeError: no implicit conversion of String into Integer\nTypeError: no implicit conversion of Array into Integer\nTypeError: no implicit conversion from nil to integer\n\"s\"\n:z\nTypeError: no implicit conversion of Symbol into Integer\nIndexError: index 7 outside of array bounds: -3...3\n:dflt\nTypeError: no implicit conversion of true into Integer\nTypeError: no implicit conversion of Symbol into Integer\nTypeError: no implicit conversion of String into Integer\nTypeError: no implicit conversion from nil to integer\n[\"s\", :z]\nTypeError: no implicit conversion of Symbol into Integer\nTypeError: no implicit conversion of String into Integer\nRangeError: float NaN out of range of integer\nRangeError: float NaN out of range of integer\nRangeError: float 1e+30 out of range of integer\nRangeError: bignum too big to convert into 'long'\nRangeError: float NaN out of range of integer\nRangeError: bignum too big to convert into 'long'\n:dflt\nIndexError: index -9223372036854775808 outside of array bounds: -3...3\n[10, nil, \"s\"]\nRangeError: bignum too big to convert into 'long'\n:dflt\n\"d\"\n[]\nIndexError: index 2 outside of array bounds: 0...0\n\"d\"\n[10]\n77\nd\n10\n:z\n:dflt\nIndexError: index 5 outside of array bounds: -3...3\n[10, :z, nil]\n[10, \"s\"]\n1\n[1, nil]\nKeyError: key not found: :b\n",
3720
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.03ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 118 collections (41 full) in 0.00s of 0.0s wall (60.9%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3721
+ }
3722
+ ]
3723
+ },
3724
+ {
3725
+ "file": "env_fetch_block_result.rb",
3726
+ "build_status": 0,
3727
+ "results": [
3728
+ {
3729
+ "stress": false,
3730
+ "passed": true,
3731
+ "returncode": 0,
3732
+ "stdout": "\"SPINEL_SHARE_ENV_FETCH_BLOCK!\"\n\"SPINEL_SHARE_ENV_FETCH_BLOCK!\"\n",
3733
+ "stderr": ""
3734
+ },
3735
+ {
3736
+ "stress": true,
3737
+ "passed": true,
3738
+ "returncode": 0,
3739
+ "stdout": "\"SPINEL_SHARE_ENV_FETCH_BLOCK!\"\n\"SPINEL_SHARE_ENV_FETCH_BLOCK!\"\n",
3740
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.03ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 280 collections (7 full) in 0.00s of 0.0s wall (86.5%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3741
+ }
3742
+ ]
3743
+ },
3744
+ {
3745
+ "file": "env_fetch_default_value.rb",
3746
+ "build_status": 0,
3747
+ "results": [
3748
+ {
3749
+ "stress": false,
3750
+ "passed": true,
3751
+ "returncode": 0,
3752
+ "stdout": "[1, 2]\n5\nnil\n\"d\"\n:sym\n{\"k\" => 1}\n\"SPINEL_ENV_FETCH_NOPESPINEL_ENV_FETCH_NOPE\"\n22\n\"there\"\n\"there\"\n8\nkey not found: \"SPINEL_ENV_FETCH_NOPE\"\nside!\n\"there\"\nside!\n9\n42\n",
3753
+ "stderr": ""
3754
+ },
3755
+ {
3756
+ "stress": true,
3757
+ "passed": true,
3758
+ "returncode": 0,
3759
+ "stdout": "[1, 2]\n5\nnil\n\"d\"\n:sym\n{\"k\" => 1}\n\"SPINEL_ENV_FETCH_NOPESPINEL_ENV_FETCH_NOPE\"\n22\n\"there\"\n\"there\"\n8\nkey not found: \"SPINEL_ENV_FETCH_NOPE\"\nside!\n\"there\"\nside!\n9\n42\n",
3760
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 1183 collections (18 full) in 0.00s of 0.0s wall (90.2%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3761
+ }
3762
+ ]
3763
+ },
3764
+ {
3765
+ "file": "fetch_block_ends_in_return.rb",
3766
+ "build_status": 0,
3767
+ "results": [
3768
+ {
3769
+ "stress": false,
3770
+ "passed": true,
3771
+ "returncode": 0,
3772
+ "stdout": "false\nfalse\ntrue\nfalse\n10\n-1\nnil\nnil\n1\n:near\n\"none\"\nensure q\nensure z\n1\n:missing\n-1\n5\n30\nnil\n8\n3\n",
3773
+ "stderr": ""
3774
+ },
3775
+ {
3776
+ "stress": true,
3777
+ "passed": true,
3778
+ "returncode": 0,
3779
+ "stdout": "false\nfalse\ntrue\nfalse\n10\n-1\nnil\nnil\n1\n:near\n\"none\"\nensure q\nensure z\n1\n:missing\n-1\n5\n30\nnil\n8\n3\n",
3780
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.05ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 27 collections (8 full) in 0.00s of 0.0s wall (99.0%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3781
+ }
3782
+ ]
3783
+ },
3784
+ {
3785
+ "file": "hash_default_array_fetch_concat_wave9.rb",
3786
+ "build_status": 0,
3787
+ "results": [
3788
+ {
3789
+ "stress": false,
3790
+ "passed": true,
3791
+ "returncode": 0,
3792
+ "stdout": "2\n5\n{\"x\" => 1, \"y\" => 5}\n{1 => \"a\", 2 => \"b\"}\n7\n9\n0\n\"d\"\n42\n5\n5\n[1, 2, 3, 4]\n[1, 2, 3]\n\"default\"\n20\n\"missing 5\"\n30\n20\n900\n:none\n[1, 2, 3, 4]\n[1, 2, 3]\n[1, 2, 3]\n[\"a\", \"b\", \"c\", \"d\", \"e\"]\n[1, 2, 1, 2]\n[[1, 1], [1, 2], [2, 1], [2, 2]]\n[[\"a\", \"a\"], [\"a\", \"b\"], [\"b\", \"a\"], [\"b\", \"b\"]]\n[[]]\n",
3793
+ "stderr": ""
3794
+ },
3795
+ {
3796
+ "stress": true,
3797
+ "passed": true,
3798
+ "returncode": 0,
3799
+ "stdout": "2\n5\n{\"x\" => 1, \"y\" => 5}\n{1 => \"a\", 2 => \"b\"}\n7\n9\n0\n\"d\"\n42\n5\n5\n[1, 2, 3, 4]\n[1, 2, 3]\n\"default\"\n20\n\"missing 5\"\n30\n20\n900\n:none\n[1, 2, 3, 4]\n[1, 2, 3]\n[1, 2, 3]\n[\"a\", \"b\", \"c\", \"d\", \"e\"]\n[1, 2, 1, 2]\n[[1, 1], [1, 2], [2, 1], [2, 2]]\n[[\"a\", \"a\"], [\"a\", \"b\"], [\"b\", \"a\"], [\"b\", \"b\"]]\n[[]]\n",
3800
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 152 collections (6 full) in 0.00s of 0.0s wall (67.6%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3801
+ }
3802
+ ]
3803
+ },
3804
+ {
3805
+ "file": "hash_fetch_block.rb",
3806
+ "build_status": 0,
3807
+ "results": [
3808
+ {
3809
+ "stress": false,
3810
+ "passed": true,
3811
+ "returncode": 0,
3812
+ "stdout": "1\n99\none\nfallback\ntwo\nfallback\n1\n99\none\nfallback\ntwo\nfallback\n30\n",
3813
+ "stderr": ""
3814
+ },
3815
+ {
3816
+ "stress": true,
3817
+ "passed": true,
3818
+ "returncode": 0,
3819
+ "stdout": "1\n99\none\nfallback\ntwo\nfallback\n1\n99\none\nfallback\ntwo\nfallback\n30\n",
3820
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.03ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 3 collections (1 full) in 0.00s of 0.0s wall (62.7%), 0.01ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3821
+ }
3822
+ ]
3823
+ },
3824
+ {
3825
+ "file": "hash_fetch_block_int_min.rb",
3826
+ "build_status": 0,
3827
+ "results": [
3828
+ {
3829
+ "stress": false,
3830
+ "passed": true,
3831
+ "returncode": 0,
3832
+ "stdout": "2\n-9223372036854775808\nfalse\n-9223372036854775799\nfalse\n\"truthy\"\n-9223372036854775808\n-9223372036854775807\ntrue\n-9223372036854775808\n1\n-9223372036854775808\n-9223372036854775807\n-9223372036854775808\nfalse\n-9223372036854775808\nfalse\n{1 => -9223372036854775808}\n-9223372036854775808\n1\n0\n-9223372036854775808\n0\n-9223372036854775808\n-9223372036854775808\n-9223372036854775808\n2\n-9223372036854775808\nKeyError: key not found: 9\nnil\ntrue\nfalse\nnil\ntrue\n[2, nil]\n[2]\n[-9223372036854775808]\n[2, -9223372036854775808]\n",
3833
+ "stderr": ""
3834
+ },
3835
+ {
3836
+ "stress": true,
3837
+ "passed": true,
3838
+ "returncode": 0,
3839
+ "stdout": "2\n-9223372036854775808\nfalse\n-9223372036854775799\nfalse\n\"truthy\"\n-9223372036854775808\n-9223372036854775807\ntrue\n-9223372036854775808\n1\n-9223372036854775808\n-9223372036854775807\n-9223372036854775808\nfalse\n-9223372036854775808\nfalse\n{1 => -9223372036854775808}\n-9223372036854775808\n1\n0\n-9223372036854775808\n0\n-9223372036854775808\n-9223372036854775808\n-9223372036854775808\n2\n-9223372036854775808\nKeyError: key not found: 9\nnil\ntrue\nfalse\nnil\ntrue\n[2, nil]\n[2]\n[-9223372036854775808]\n[2, -9223372036854775808]\n",
3840
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 36 collections (4 full) in 0.00s of 0.0s wall (64.0%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3841
+ }
3842
+ ]
3843
+ },
3844
+ {
3845
+ "file": "hash_fetch_block_key.rb",
3846
+ "build_status": 0,
3847
+ "results": [
3848
+ {
3849
+ "stress": false,
3850
+ "passed": true,
3851
+ "returncode": 0,
3852
+ "stdout": "20\n9900\n8\ndone\n",
3853
+ "stderr": ""
3854
+ },
3855
+ {
3856
+ "stress": true,
3857
+ "passed": true,
3858
+ "returncode": 0,
3859
+ "stdout": "20\n9900\n8\ndone\n",
3860
+ "stderr": ""
3861
+ }
3862
+ ]
3863
+ },
3864
+ {
3865
+ "file": "hash_fetch_block_key_type.rb",
3866
+ "build_status": 0,
3867
+ "results": [
3868
+ {
3869
+ "stress": false,
3870
+ "passed": true,
3871
+ "returncode": 0,
3872
+ "stdout": "9900\nzzz\nzzz!\n9900\nzzz\nzzz!\nkey=missing\n",
3873
+ "stderr": ""
3874
+ },
3875
+ {
3876
+ "stress": true,
3877
+ "passed": true,
3878
+ "returncode": 0,
3879
+ "stdout": "9900\nzzz\nzzz!\n9900\nzzz\nzzz!\nkey=missing\n",
3880
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 5 collections (1 full) in 0.00s of 0.0s wall (102.3%), 0.01ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3881
+ }
3882
+ ]
3883
+ },
3884
+ {
3885
+ "file": "hash_fetch_block_nil_int_key.rb",
3886
+ "build_status": 0,
3887
+ "results": [
3888
+ {
3889
+ "stress": false,
3890
+ "passed": true,
3891
+ "returncode": 0,
3892
+ "stdout": "\"none nil\"\ntrue\n\"b\"\n70\n:nil\n\"dflt\"\n",
3893
+ "stderr": ""
3894
+ },
3895
+ {
3896
+ "stress": true,
3897
+ "passed": true,
3898
+ "returncode": 0,
3899
+ "stdout": "\"none nil\"\ntrue\n\"b\"\n70\n:nil\n\"dflt\"\n",
3900
+ "stderr": ""
3901
+ }
3902
+ ]
3903
+ },
3904
+ {
3905
+ "file": "hash_fetch_default_boxed_nil_int.rb",
3906
+ "build_status": 0,
3907
+ "results": [
3908
+ {
3909
+ "stress": false,
3910
+ "passed": true,
3911
+ "returncode": 0,
3912
+ "stdout": "3600\n0\nnil\n7\ntrue\n",
3913
+ "stderr": ""
3914
+ },
3915
+ {
3916
+ "stress": true,
3917
+ "passed": true,
3918
+ "returncode": 0,
3919
+ "stdout": "3600\n0\nnil\n7\ntrue\n",
3920
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.05ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 6 collections (1 full) in 0.00s of 0.0s wall (111.3%), 0.01ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3921
+ }
3922
+ ]
3923
+ },
3924
+ {
3925
+ "file": "hash_fetch_default_nil_block_arg.rb",
3926
+ "build_status": 0,
3927
+ "results": [
3928
+ {
3929
+ "stress": false,
3930
+ "passed": true,
3931
+ "returncode": 0,
3932
+ "stdout": "\"1\"\n\"none\"\n\"block b\"\n\"1\"\n\"none\"\n\"block b\"\nkey not found: \"b\"\n",
3933
+ "stderr": ""
3934
+ },
3935
+ {
3936
+ "stress": true,
3937
+ "passed": true,
3938
+ "returncode": 0,
3939
+ "stdout": "\"1\"\n\"none\"\n\"block b\"\n\"1\"\n\"none\"\n\"block b\"\nkey not found: \"b\"\n",
3940
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.05ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 6 collections (1 full) in 0.00s of 0.0s wall (108.0%), 0.01ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3941
+ }
3942
+ ]
3943
+ },
3944
+ {
3945
+ "file": "hash_fetch_dig_nil_int_key.rb",
3946
+ "build_status": 0,
3947
+ "results": [
3948
+ {
3949
+ "stress": false,
3950
+ "passed": true,
3951
+ "returncode": 0,
3952
+ "stdout": "20\n\"one\"\nnil\n10\nnil\n\"one\"\n:d\n\"z\"\n[\"key not found: nil\", nil, {1 => 10, 2 => 20}]\n[\"key not found: nil\", nil]\n20\n\"key not found: \\\"a\\\"\"\n\"key not found: nil\"\n",
3953
+ "stderr": ""
3954
+ },
3955
+ {
3956
+ "stress": true,
3957
+ "passed": true,
3958
+ "returncode": 0,
3959
+ "stdout": "20\n\"one\"\nnil\n10\nnil\n\"one\"\n:d\n\"z\"\n[\"key not found: nil\", nil, {1 => 10, 2 => 20}]\n[\"key not found: nil\", nil]\n20\n\"key not found: \\\"a\\\"\"\n\"key not found: nil\"\n",
3960
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.06ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 36 collections (4 full) in 0.00s of 0.0s wall (87.6%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3961
+ }
3962
+ ]
3963
+ },
3964
+ {
3965
+ "file": "hash_fetch_forwarded_block.rb",
3966
+ "build_status": 0,
3967
+ "results": [
3968
+ {
3969
+ "stress": false,
3970
+ "passed": true,
3971
+ "returncode": 0,
3972
+ "stdout": "\"zzzz\"\n1\n\"zzzzzz\"\n\"key not found: \\\"nope\\\"\"\n1\n\"www\"\n",
3973
+ "stderr": ""
3974
+ },
3975
+ {
3976
+ "stress": true,
3977
+ "passed": true,
3978
+ "returncode": 0,
3979
+ "stdout": "\"zzzz\"\n1\n\"zzzzzz\"\n\"key not found: \\\"nope\\\"\"\n1\n\"www\"\n",
3980
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 13 collections (3 full) in 0.00s of 0.0s wall (74.1%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
3981
+ }
3982
+ ]
3983
+ },
3984
+ {
3985
+ "file": "hash_fetch_keyerror.rb",
3986
+ "build_status": 0,
3987
+ "results": [
3988
+ {
3989
+ "stress": false,
3990
+ "passed": true,
3991
+ "returncode": 0,
3992
+ "stdout": "default\n1\ncaught KeyError\nstr-hash caught\n",
3993
+ "stderr": ""
3994
+ },
3995
+ {
3996
+ "stress": true,
3997
+ "passed": true,
3998
+ "returncode": 0,
3999
+ "stdout": "default\n1\ncaught KeyError\nstr-hash caught\n",
4000
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 2 collections (1 full) in 0.00s of 0.0s wall (97.6%), 0.02ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4001
+ }
4002
+ ]
4003
+ },
4004
+ {
4005
+ "file": "hash_fetch_keyerror_message.rb",
4006
+ "build_status": 0,
4007
+ "results": [
4008
+ {
4009
+ "stress": false,
4010
+ "passed": true,
4011
+ "returncode": 0,
4012
+ "stdout": "key not found: :zzz\nkey not found: \"yy\"\nkey not found: 99\nkey not found: :nope\nkey not found: :three\n2\n-1\n",
4013
+ "stderr": ""
4014
+ },
4015
+ {
4016
+ "stress": true,
4017
+ "passed": true,
4018
+ "returncode": 0,
4019
+ "stdout": "key not found: :zzz\nkey not found: \"yy\"\nkey not found: 99\nkey not found: :nope\nkey not found: :three\n2\n-1\n",
4020
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.05ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 30 collections (9 full) in 0.00s of 0.0s wall (99.0%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4021
+ }
4022
+ ]
4023
+ },
4024
+ {
4025
+ "file": "hash_fetch_values_delete_block_subset.rb",
4026
+ "build_status": 0,
4027
+ "results": [
4028
+ {
4029
+ "stress": false,
4030
+ "passed": true,
4031
+ "returncode": 0,
4032
+ "stdout": "[1, 2]\n[1, \"missing z\"]\n2\n\"gone z\"\n{a: 1}\ntrue\ntrue\ntrue\ntrue\nfalse\ntrue\nfalse\nfalse\ntrue\nfalse\ntrue\nfalse\n[[:b, 2]]\n[]\n[2, 3]\n[2]\n",
4033
+ "stderr": ""
4034
+ },
4035
+ {
4036
+ "stress": true,
4037
+ "passed": true,
4038
+ "returncode": 0,
4039
+ "stdout": "[1, 2]\n[1, \"missing z\"]\n2\n\"gone z\"\n{a: 1}\ntrue\ntrue\ntrue\ntrue\nfalse\ntrue\nfalse\nfalse\ntrue\nfalse\ntrue\nfalse\n[[:b, 2]]\n[]\n[2, 3]\n[2]\n",
4040
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 41 collections (4 full) in 0.00s of 0.0s wall (78.8%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4041
+ }
4042
+ ]
4043
+ },
4044
+ {
4045
+ "file": "hash_values_at_fetch_values.rb",
4046
+ "build_status": 0,
4047
+ "results": [
4048
+ {
4049
+ "stress": false,
4050
+ "passed": true,
4051
+ "returncode": 0,
4052
+ "stdout": "[1, 3]\n[1, 3, nil]\n[1, 2, 3]\n[10, nil]\n[\"one\", \"two\", nil]\n[1, \"two\", nil, nil]\nKeyError raised\n",
4053
+ "stderr": ""
4054
+ },
4055
+ {
4056
+ "stress": true,
4057
+ "passed": true,
4058
+ "returncode": 0,
4059
+ "stdout": "[1, 3]\n[1, 3, nil]\n[1, 2, 3]\n[10, nil]\n[\"one\", \"two\", nil]\n[1, \"two\", nil, nil]\nKeyError raised\n",
4060
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.05ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 20 collections (3 full) in 0.00s of 0.0s wall (97.6%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4061
+ }
4062
+ ]
4063
+ },
4064
+ {
4065
+ "file": "int_min_hash_default_fetch.rb",
4066
+ "build_status": 0,
4067
+ "results": [
4068
+ {
4069
+ "stress": false,
4070
+ "passed": true,
4071
+ "returncode": 0,
4072
+ "stdout": "5\n-9223372036854775808\nfalse\n1\n-9223372036854775808\n-9223372036854775808\n5\n-9223372036854775808\nfalse\n-9223372036854775808\n0\n-9223372036854775808\nfalse\n-9223372036854775807\nnil\ntrue\n-9223372036854775808\n-9223372036854775808\n-9223372036854775808\n-9223372036854775808\nfalse\n-9223372036854775808\n",
4073
+ "stderr": ""
4074
+ },
4075
+ {
4076
+ "stress": true,
4077
+ "passed": true,
4078
+ "returncode": 0,
4079
+ "stdout": "5\n-9223372036854775808\nfalse\n1\n-9223372036854775808\n-9223372036854775808\n5\n-9223372036854775808\nfalse\n-9223372036854775808\n0\n-9223372036854775808\nfalse\n-9223372036854775807\nnil\ntrue\n-9223372036854775808\n-9223372036854775808\n-9223372036854775808\n-9223372036854775808\nfalse\n-9223372036854775808\n",
4080
+ "stderr": ""
4081
+ }
4082
+ ]
4083
+ },
4084
+ {
4085
+ "file": "poly_fetch_block.rb",
4086
+ "build_status": 0,
4087
+ "results": [
4088
+ {
4089
+ "stress": false,
4090
+ "passed": true,
4091
+ "returncode": 0,
4092
+ "stdout": "\"z\"\n2\n\"Q\"\n21\n1\n\"yy\"\n1\n5\n21\n20\n\"44\"\n10\n5\n",
4093
+ "stderr": ""
4094
+ },
4095
+ {
4096
+ "stress": true,
4097
+ "passed": true,
4098
+ "returncode": 0,
4099
+ "stdout": "\"z\"\n2\n\"Q\"\n21\n1\n\"yy\"\n1\n5\n21\n20\n\"44\"\n10\n5\n",
4100
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 9 collections (2 full) in 0.00s of 0.0s wall (84.6%), 0.01ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4101
+ }
4102
+ ]
4103
+ },
4104
+ {
4105
+ "file": "poly_fetch_block_key_param.rb",
4106
+ "build_status": 0,
4107
+ "results": [
4108
+ {
4109
+ "stress": false,
4110
+ "passed": true,
4111
+ "returncode": 0,
4112
+ "stdout": ":zz\n2\n\"zzzz\"\ntrue\n\"no zz\"\n3\n\"z\"\n\"zz?\"\n\"zz!\"\n1\ntrue\n2\nthe key itself\n\"zz\"\nfrozen\nno index\n14\n2\n:zz\n9\n5\n",
4113
+ "stderr": ""
4114
+ },
4115
+ {
4116
+ "stress": true,
4117
+ "passed": true,
4118
+ "returncode": 0,
4119
+ "stdout": ":zz\n2\n\"zzzz\"\ntrue\n\"no zz\"\n3\n\"z\"\n\"zz?\"\n\"zz!\"\n1\ntrue\n2\nthe key itself\n\"zz\"\nfrozen\nno index\n14\n2\n:zz\n9\n5\n",
4120
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.04ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 31 collections (3 full) in 0.00s of 0.0s wall (64.7%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4121
+ }
4122
+ ]
4123
+ },
4124
+ {
4125
+ "file": "poly_fetch_block_param_after_read.rb",
4126
+ "build_status": 0,
4127
+ "results": [
4128
+ {
4129
+ "stress": false,
4130
+ "passed": true,
4131
+ "returncode": 0,
4132
+ "stdout": "2\n18\n3.5\n4\n[9, \"9\"]\n\"nil\"\n\"yes\"\n2\n6\n10\n:none\n8\n[1.5, 3.0]\n7\n2\n15\n20\n",
4133
+ "stderr": ""
4134
+ },
4135
+ {
4136
+ "stress": true,
4137
+ "passed": true,
4138
+ "returncode": 0,
4139
+ "stdout": "2\n18\n3.5\n4\n[9, \"9\"]\n\"nil\"\n\"yes\"\n2\n6\n10\n:none\n8\n[1.5, 3.0]\n7\n2\n15\n20\n",
4140
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.06ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 18 collections (3 full) in 0.00s of 0.0s wall (91.1%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4141
+ }
4142
+ ]
4143
+ },
4144
+ {
4145
+ "file": "poly_fetch_empty_literal_default.rb",
4146
+ "build_status": 0,
4147
+ "results": [
4148
+ {
4149
+ "stress": false,
4150
+ "passed": true,
4151
+ "returncode": 0,
4152
+ "stdout": "[]\n{}\n[\"a\"]\n\"hello\"\n[1]\n[]\n[\"a\"]\n[]\n[]\n{}\n[]\n[]\n{}\n1\n1\n[]\n{}\n[:x]\n{y: 1}\n[\"x\"]\n",
4153
+ "stderr": ""
4154
+ },
4155
+ {
4156
+ "stress": true,
4157
+ "passed": true,
4158
+ "returncode": 0,
4159
+ "stdout": "[]\n{}\n[\"a\"]\n\"hello\"\n[1]\n[]\n[\"a\"]\n[]\n[]\n{}\n[]\n[]\n{}\n1\n1\n[]\n{}\n[:x]\n{y: 1}\n[\"x\"]\n",
4160
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.05ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 661 collections (44 full) in 0.00s of 0.0s wall (88.8%), 0.00ms avg; live 0.1 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4161
+ }
4162
+ ]
4163
+ },
4164
+ {
4165
+ "file": "poly_fetch_keyword_block.rb",
4166
+ "build_status": 0,
4167
+ "results": [
4168
+ {
4169
+ "stress": false,
4170
+ "passed": true,
4171
+ "returncode": 0,
4172
+ "stdout": "\"from the block\"\n\"from the block\"\n",
4173
+ "stderr": ""
4174
+ },
4175
+ {
4176
+ "stress": true,
4177
+ "passed": true,
4178
+ "returncode": 0,
4179
+ "stdout": "\"from the block\"\n\"from the block\"\n",
4180
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.06ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 1 collections (1 full) in 0.00s of 0.0s wall (147.4%), 0.06ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4181
+ }
4182
+ ]
4183
+ },
4184
+ {
4185
+ "file": "poly_hash_fetch_dispatch.rb",
4186
+ "build_status": 0,
4187
+ "results": [
4188
+ {
4189
+ "stress": false,
4190
+ "passed": true,
4191
+ "returncode": 0,
4192
+ "stdout": "present: 1\ndefault: -1\npoly key: 1\nKeyError\nuser fetch: 300\n",
4193
+ "stderr": ""
4194
+ },
4195
+ {
4196
+ "stress": true,
4197
+ "passed": true,
4198
+ "returncode": 0,
4199
+ "stdout": "present: 1\ndefault: -1\npoly key: 1\nKeyError\nuser fetch: 300\n",
4200
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.05ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 5 collections (1 full) in 0.00s of 0.0s wall (96.6%), 0.01ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4201
+ }
4202
+ ]
4203
+ },
4204
+ {
4205
+ "file": "poly_hash_fetch_with_default.rb",
4206
+ "build_status": 0,
4207
+ "results": [
4208
+ {
4209
+ "stress": false,
4210
+ "passed": true,
4211
+ "returncode": 0,
4212
+ "stdout": "hello/world\nonly/MISSING\nMISSING/MISSING\n",
4213
+ "stderr": ""
4214
+ },
4215
+ {
4216
+ "stress": true,
4217
+ "passed": true,
4218
+ "returncode": 0,
4219
+ "stdout": "hello/world\nonly/MISSING\nMISSING/MISSING\n",
4220
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.11ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 5 collections (1 full) in 0.00s of 0.0s wall (201.8%), 0.02ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4221
+ }
4222
+ ]
4223
+ },
4224
+ {
4225
+ "file": "poly_ivar_fetch_block.rb",
4226
+ "build_status": 0,
4227
+ "results": [
4228
+ {
4229
+ "stress": false,
4230
+ "passed": true,
4231
+ "returncode": 0,
4232
+ "stdout": "7\n9\n",
4233
+ "stderr": ""
4234
+ },
4235
+ {
4236
+ "stress": true,
4237
+ "passed": true,
4238
+ "returncode": 0,
4239
+ "stdout": "7\n9\n",
4240
+ "stderr": ""
4241
+ }
4242
+ ]
4243
+ },
4244
+ {
4245
+ "file": "poly_poly_hash_fetch_dup.rb",
4246
+ "build_status": 0,
4247
+ "results": [
4248
+ {
4249
+ "stress": false,
4250
+ "passed": true,
4251
+ "returncode": 0,
4252
+ "stdout": "hello\ntrue\n",
4253
+ "stderr": ""
4254
+ },
4255
+ {
4256
+ "stress": true,
4257
+ "passed": true,
4258
+ "returncode": 0,
4259
+ "stdout": "hello\ntrue\n",
4260
+ "stderr": ""
4261
+ }
4262
+ ]
4263
+ },
4264
+ {
4265
+ "file": "poly_recv_fetch_arm_incompat.rb",
4266
+ "build_status": 0,
4267
+ "results": [
4268
+ {
4269
+ "stress": false,
4270
+ "passed": true,
4271
+ "returncode": 0,
4272
+ "stdout": "real\n",
4273
+ "stderr": ""
4274
+ },
4275
+ {
4276
+ "stress": true,
4277
+ "passed": true,
4278
+ "returncode": 0,
4279
+ "stdout": "real\n",
4280
+ "stderr": ""
4281
+ }
4282
+ ]
4283
+ },
4284
+ {
4285
+ "file": "poly_recv_fetch_hash_arms.rb",
4286
+ "build_status": 0,
4287
+ "results": [
4288
+ {
4289
+ "stress": false,
4290
+ "passed": true,
4291
+ "returncode": 0,
4292
+ "stdout": "from-flash\nreal\n",
4293
+ "stderr": ""
4294
+ },
4295
+ {
4296
+ "stress": true,
4297
+ "passed": true,
4298
+ "returncode": 0,
4299
+ "stdout": "from-flash\nreal\n",
4300
+ "stderr": ""
4301
+ }
4302
+ ]
4303
+ },
4304
+ {
4305
+ "file": "share_strings_fetch_block_key.rb",
4306
+ "build_status": 0,
4307
+ "results": [
4308
+ {
4309
+ "stress": false,
4310
+ "passed": true,
4311
+ "returncode": 0,
4312
+ "stdout": "\"mi\\u0000ss\"\n[109, 105, 0, 115, 115]\ntrue\nfrozen key\n\"missing\"\n7\n1\n18\n4\n18\n20\ntrue\ntyped frozen key\n",
4313
+ "stderr": ""
4314
+ },
4315
+ {
4316
+ "stress": true,
4317
+ "passed": true,
4318
+ "returncode": 0,
4319
+ "stdout": "\"mi\\u0000ss\"\n[109, 105, 0, 115, 115]\ntrue\nfrozen key\n\"missing\"\n7\n1\n18\n4\n18\n20\ntrue\ntyped frozen key\n",
4320
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.07ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 20 collections (3 full) in 0.00s of 0.0s wall (97.1%), 0.00ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n"
4321
+ }
4322
+ ]
4323
+ },
4324
+ {
4325
+ "file": "yield_receiver_builtin_fetch.rb",
4326
+ "build_status": 0,
4327
+ "results": [
4328
+ {
4329
+ "stress": false,
4330
+ "passed": true,
4331
+ "returncode": 0,
4332
+ "stdout": "1\n\"a\"\n\"s9\"\n",
4333
+ "stderr": ""
4334
+ },
4335
+ {
4336
+ "stress": true,
4337
+ "passed": true,
4338
+ "returncode": 0,
4339
+ "stdout": "1\n\"a\"\n\"s9\"\n",
4340
+ "stderr": ""
4341
+ }
4342
+ ]
4343
+ },
4344
+ {
4345
+ "file": "yield_receiver_builtin_fetch_default.rb",
4346
+ "build_status": 0,
4347
+ "results": [
4348
+ {
4349
+ "stress": false,
4350
+ "passed": true,
4351
+ "returncode": 0,
4352
+ "stdout": "0\n0\n",
4353
+ "stderr": ""
4354
+ },
4355
+ {
4356
+ "stress": true,
4357
+ "passed": true,
4358
+ "returncode": 0,
4359
+ "stdout": "0\n0\n",
4360
+ "stderr": ""
4361
+ }
4362
+ ]
4363
+ }
4364
+ ]
4365
+ },
4366
+ "decisions": {
4367
+ "command": [
4368
+ "make",
4369
+ "decisions-test"
4370
+ ],
4371
+ "returncode": 0,
4372
+ "log": "decisions-test: pass\n"
4373
+ },
4374
+ "wardite_suite": {
4375
+ "command": "WARDITE_SPINEL_BIN=\"$PWD/build/benchmark/generated-guards/compiler-patch/baseline/wardite\" bundle exec rake test",
4376
+ "tests": 116,
4377
+ "assertions": 10888,
4378
+ "failures": 0,
4379
+ "errors": 0,
4380
+ "omissions": 0,
4381
+ "log": "/Users/udzura/ghq/github.com/udzura/wardite/test/value_test.rb:8: warning: ambiguous first argument; put parentheses or a space even after `-` operator\n/Users/udzura/ghq/github.com/udzura/wardite/test/value_test.rb:10: warning: ambiguous first argument; put parentheses or a space even after `-` operator\n/Users/udzura/ghq/github.com/udzura/wardite/test/value_test.rb:18: warning: ambiguous first argument; put parentheses or a space even after `-` operator\n/Users/udzura/ghq/github.com/udzura/wardite/test/value_test.rb:19: warning: ambiguous first argument; put parentheses or a space even after `-` operator\n/Users/udzura/ghq/github.com/udzura/wardite/test/value_test.rb:21: warning: ambiguous first argument; put parentheses or a space even after `-` operator\nLoaded suite /Users/udzura/.rbenv/versions/4.0.9/lib/ruby/gems/4.0.0/gems/rake-13.2.1/lib/rake/rake_test_loader\nStarted\nHello, World!\nFinished in 48.98435 seconds.\n-------------------------------------------------------------------------------\n116 tests, 10888 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications\n100% passed\n-------------------------------------------------------------------------------\n2.37 tests/s, 222.28 assertions/s\n"
4382
+ },
4383
+ "typed_vm_gc_stress": {
4384
+ "variants": [
4385
+ {
4386
+ "variant": "baseline",
4387
+ "spinel_command": [
4388
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/spinel",
4389
+ "-I/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/lib",
4390
+ "--strict-require",
4391
+ "-O2",
4392
+ "--no-line-map",
4393
+ "-c",
4394
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/validation/driver.rb",
4395
+ "-o",
4396
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/gc-validation.c"
4397
+ ],
4398
+ "compile_command": [
4399
+ "clang",
4400
+ "-O2",
4401
+ "-ffp-contract=off",
4402
+ "-falign-functions=64",
4403
+ "-falign-loops=64",
4404
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
4405
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
4406
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
4407
+ "-DSP_ONE_STRING",
4408
+ "-c",
4409
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/gc-validation.c",
4410
+ "-o",
4411
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/gc-validation.o"
4412
+ ],
4413
+ "link_command": [
4414
+ "clang",
4415
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/gc-validation.o",
4416
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
4417
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
4418
+ "-lm",
4419
+ "-o",
4420
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/baseline/gc-validation"
4421
+ ],
4422
+ "collections": 23564,
4423
+ "stdout": "validation ok\n",
4424
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.23ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 23564 collections (189 full) in 0.20s of 0.2s wall (94.3%), 0.01ms avg; live 0.5 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n",
4425
+ "c_sha256": "ae8358e6b48c3820b3d5d9f3315d8afe267fb6c9a0318eceac0d67f72e10738f",
4426
+ "binary_sha256": "52403424e681de71f1dfa9454677f6ba2a1a4191d1978b3d270a0d7e08307706"
4427
+ },
4428
+ {
4429
+ "variant": "while_loop",
4430
+ "spinel_command": [
4431
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/spinel",
4432
+ "-I/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/lib",
4433
+ "--strict-require",
4434
+ "-O2",
4435
+ "--no-line-map",
4436
+ "-c",
4437
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/validation/driver.rb",
4438
+ "-o",
4439
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/gc-validation.c"
4440
+ ],
4441
+ "compile_command": [
4442
+ "clang",
4443
+ "-O2",
4444
+ "-ffp-contract=off",
4445
+ "-falign-functions=64",
4446
+ "-falign-loops=64",
4447
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib",
4448
+ "-I/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/regexp",
4449
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
4450
+ "-DSP_ONE_STRING",
4451
+ "-c",
4452
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/gc-validation.c",
4453
+ "-o",
4454
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/gc-validation.o"
4455
+ ],
4456
+ "link_command": [
4457
+ "clang",
4458
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/gc-validation.o",
4459
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../packages/stringio/sp_stringio.o",
4460
+ "/Users/udzura/ghq/github.com/matz/spinel/bin/../lib/libspinel_rt.a",
4461
+ "-lm",
4462
+ "-o",
4463
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/compiler-patch/while_loop/gc-validation"
4464
+ ],
4465
+ "collections": 23564,
4466
+ "stdout": "validation ok\n",
4467
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.10ms avg; live 0.0 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n[gc] 23564 collections (189 full) in 0.19s of 0.2s wall (95.3%), 0.01ms avg; live 0.5 MB obj + 0.0 MB str; trigger 0.0 MB obj + 0.25 MB str/worker x 1; mark share 1.00; old obj in str trigger 0.00 MB\n",
4468
+ "c_sha256": "5a6b40cd618a93e5d9c78758db29ce196325d8ff1a417873ecc2c40b9a05faae",
4469
+ "binary_sha256": "7d678b0c16b195b6072f34eededbebd889fe58d27084425adef771c8c35e1454"
4470
+ }
4471
+ ],
4472
+ "driver_source": "# frozen_string_literal: true\n# rbs_inline: enabled\nrequire \"wardite\"\n\n# @rbs directory: String\n# @rbs name: String\n# @rbs return: Wardite::Efflorescence::VM\ndef vm_for(directory, name)\n instance = File.open(\"#{directory}/#{name}.wasm\", \"rb\") do |file|\n Wardite::BinaryLoader.load_from_buffer(file, enable_wasi: false)\n end\n Wardite::Efflorescence::VM.new(instance, disabled_optimizations: [:inline, :frames])\nend\n\n# @rbs expected: Integer\n# @rbs actual: Integer?\n# @rbs return: void\ndef check(expected, actual)\n raise \"checksum #{actual} != #{expected}\" unless expected == actual\nend\n\ndirectory = ARGV.fetch(0)\nreset = vm_for(directory, \"reset\")\nprotocol = vm_for(directory, \"protocol\")\nedges = vm_for(directory, \"edges\")\ninlined = vm_for(directory, \"inline\")\n3.times do\n [0, 1, 123, 0xffffffff].each do |seed|\n check((seed * 128) % 0x100000000, reset.call_unboxed(\"run\", [seed]))\n check(930, reset.call_unboxed(\"recursive\", [30]))\n trapped = false\n begin\n reset.call_unboxed(\"fail\", [])\n rescue Wardite::Unreachable\n trapped = true\n end\n raise \"missing trap\" unless trapped\n check((seed * 128) % 0x100000000, reset.call_unboxed(\"run\", [seed]))\n check(((seed + 18) % 0x100000000) ^ ((9 * seed - 1) % 0x100000000), protocol.call_unboxed(\"run\", [seed]))\n check(0xffffffff, protocol.call_unboxed(\"alias\", [seed]))\n check(492, protocol.call_unboxed(\"mutual\", [30]))\n check((seed + 495) % 0x100000000, edges.call_unboxed(\"two\", [30, seed]))\n check((seed + 555) % 0x100000000, edges.call_unboxed(\"three\", [30, seed]))\n check(313, edges.call_unboxed(\"permuted\", [17, 23, 31]))\n check((9 * seed) % 0x100000000, edges.call_unboxed(\"duplicate\", [seed]))\n check((seed + 1) % 0x100000000, inlined.call_unboxed(\"snapshot\", [seed]))\n check((10 * seed) % 0x100000000, inlined.call_unboxed(\"loop\", [10, seed]))\n check(seed, inlined.call_unboxed(\"void\", [seed]))\n end\nend\nputs \"validation ok\"\n",
4473
+ "fixtures": {
4474
+ "simple": {
4475
+ "source": "(module (func (export \"run\") (result i32) i32.const 42))",
4476
+ "sha256": "661ab5f783347f1d225146a4e3c29edb24d83ad6e024054b3c33dcb6b33401c9"
4477
+ },
4478
+ "inline": {
4479
+ "source": "(module\n (func $mutate (param i32 i32) (result i32)\n local.get 0 local.get 1 local.set 0 local.get 0 i32.sub)\n (func $local (param i32) (result i32) (local i32)\n local.get 1 local.get 0 local.set 1 local.get 1 i32.add)\n (func $constant (result i32) i32.const -1)\n (func $void (param i32)\n local.get 0 i32.const 10 local.set 0 drop)\n (func $empty)\n (func (export \"snapshot\") (param i32) (result i32)\n local.get 0\n local.get 0 local.get 0 i32.const 1 i32.add call $mutate local.set 0\n local.get 0 i32.sub)\n (func (export \"loop\") (param i32 i32) (result i32) (local i32)\n block $done\n loop $repeat\n local.get 0 i32.eqz br_if $done\n local.get 2 local.get 1 call $local i32.add local.set 2\n local.get 0 i32.const 1 i32.sub local.set 0 br $repeat\n end\n end\n local.get 2)\n (func (export \"constant\") (result i32) call $constant)\n (func (export \"void\") (param i32) (result i32)\n call $empty local.get 0 call $void local.get 0)\n (func (export \"branch\") (param i32 i32) (result i32)\n block local.get 0 br_if 0 i32.const 99 local.set 1 end\n local.get 1 call $local))\n",
4480
+ "sha256": "f1da0010cbb60f303456ec1d89cf3550e70accb81f48a6733135a69eb21adda5"
4481
+ },
4482
+ "reset": {
4483
+ "source": "(module\n (func $leaf (param i32 i32) (result i32) (local i32 i32)\n block\n local.get 0 i32.eqz br_if 0\n local.get 1 local.set 2\n i32.const 99 local.set 3\n end\n local.get 2 local.get 3 i32.add\n block (result i32)\n local.get 1 i32.const 13 i32.shr_u\n local.get 0 br_if 0\n drop local.get 1 i32.const 7 i32.shl\n end\n i32.xor)\n (func $sum (param i32) (result i32) (local i32)\n block\n local.get 0 br_if 0\n local.get 1 return\n end\n local.get 0 local.set 1\n local.get 0 i32.const 1 i32.sub call $sum\n local.get 1 i32.add)\n (func (export \"run\") (param i32) (result i32)\n i32.const 1 local.get 0 call $leaf drop\n i32.const 0 local.get 0 call $leaf)\n (func (export \"recursive\") (param i32) (result i32)\n local.get 0 call $sum\n i32.const 0 call $sum i32.add\n local.get 0 call $sum i32.add)\n (func (export \"fail\")\n i32.const 1 i32.const 123 call $leaf drop\n unreachable))\n",
4484
+ "sha256": "939c87558b64484fb8579739e0d2a6853f015f76111977bb323599a1f61e4044"
4485
+ },
4486
+ "edges": {
4487
+ "source": "(module\n (func $two (param i32 i32) (result i32) (local i32)\n block local.get 0 br_if 0 local.get 1 return end\n local.get 0 local.set 2\n local.get 0 i32.const 1 i32.sub\n local.get 1 i32.const 1 i32.add call $two\n local.get 2 i32.add)\n (func $three (param i32 i32 i32) (result i32) (local i32)\n block local.get 0 br_if 0 local.get 1 return end\n local.get 0 local.set 3\n local.get 0 i32.const 1 i32.sub\n local.get 1 local.get 2 i32.add local.get 2 call $three\n local.get 3 i32.add)\n (func $ordered (param i32 i32 i32) (result i32)\n local.get 0 i32.const 11 i32.mul\n local.get 1 i32.const 3 i32.mul i32.sub local.get 2 i32.add)\n (func (export \"two\") (param i32 i32) (result i32)\n local.get 0 local.get 1 call $two)\n (func (export \"three\") (param i32 i32) (result i32)\n local.get 0 local.get 1 i32.const 3 call $three)\n (func (export \"permuted\") (param i32 i32 i32) (result i32)\n local.get 2 local.get 0 local.get 1 call $ordered)\n (func (export \"duplicate\") (param i32) (result i32)\n local.get 0 local.get 0 local.get 0 call $ordered))\n",
4488
+ "sha256": "6f1834a801ef6078f9f9b95a0845353966d95efb693096badbce0838eb64aff5"
4489
+ },
4490
+ "protocol": {
4491
+ "source": "(module\n (func $zero (result i32) i32.const 17)\n (func $one (param i32) (result i32) local.get 0 i32.const 1 i32.add)\n (func $many (param i32 i32 i32) (result i32)\n local.get 0 i32.const 11 i32.mul\n local.get 1 i32.const 3 i32.mul i32.sub\n local.get 2 i32.add)\n (func $void (param i32 i32)\n block\n local.get 0 local.get 1 i32.xor i32.eqz br_if 0\n unreachable\n end)\n (func $empty)\n (func (export \"run\") (param i32) (result i32)\n call $empty\n local.get 0 local.get 0 call $void\n call $zero\n local.get 0 call $one i32.add\n local.get 0\n local.get 0 i32.const 1 i32.add\n local.get 0 i32.const 2 i32.add\n call $many i32.xor)\n (func (export \"alias\") (param i32) (result i32)\n local.get 0\n local.get 0 call $one local.set 0\n local.get 0 i32.sub)\n (func $a (param i32) (result i32) (local i32)\n block\n local.get 0 br_if 0\n local.get 1 i32.const 7 i32.add return\n end\n local.get 0 local.set 1\n local.get 0 i32.const 1 i32.sub call $b\n local.get 1 i32.add)\n (func $b (param i32) (result i32) (local i32)\n block\n local.get 0 br_if 0\n local.get 1 i32.const 7 i32.add return\n end\n local.get 0 local.set 1\n local.get 0 i32.const 1 i32.sub call $a\n local.get 1 i32.add)\n (func (export \"mutual\") (param i32) (result i32)\n local.get 0 call $a\n i32.const 0 call $a i32.add\n i32.const 3 call $b i32.add))\n",
4492
+ "sha256": "d9058d218e2a24b1d0da1c0d5df6dcfac8260e2e2380f9a13023cc6100bea71b"
4493
+ }
4494
+ }
4495
+ },
4496
+ "generated_c_contracts": [
4497
+ {
4498
+ "file": "array_fetch_root_slot.rb",
4499
+ "method": "fetch_current",
4500
+ "temporary_root_sites": 0,
4501
+ "generated_c_body": "static inline SP_ALWAYS_INLINE sp_int sp_fetch_current(sp_IntArray * lv_words, sp_int lv_pc) {\n SP_GC_SAVE();\n struct { sp_gc_frame_hdr h; void **p[1]; } _gcf = {{0, 1}}; SP_GC_ROOT_FRAME(_gcf);\n _gcf.p[0] = SP_GC_ENTRY_PTR(lv_words);\n return ({ sp_IntArray *_t1 = lv_words; sp_int _t2 = lv_pc; sp_int _t3 = sp_IntArray_length(_t1); sp_int _t4 = _t2 < 0 ? _t2 + _t3 : _t2; (_t4 >= 0 && _t4 < _t3) ? sp_IntArray_get(_t1, _t4) : (sp_raise_cls(\"IndexError\", sp_sprintf(\"index %lld outside of array bounds: -%lld...%lld\", (long long)_t2, (long long)_t3, (long long)_t3)), 0); });\n return 0;\n}\n"
4502
+ },
4503
+ {
4504
+ "file": "array_fetch_root_slot.rb",
4505
+ "method": "fetch_next",
4506
+ "temporary_root_sites": 0,
4507
+ "generated_c_body": "static inline SP_ALWAYS_INLINE sp_int sp_fetch_next(sp_IntArray * lv_words, sp_int lv_pc) {\n SP_GC_SAVE();\n struct { sp_gc_frame_hdr h; void **p[1]; } _gcf = {{0, 1}}; SP_GC_ROOT_FRAME(_gcf);\n _gcf.p[0] = SP_GC_ENTRY_PTR(lv_words);\n return ({ sp_IntArray *_t1 = lv_words; sp_int _t2 = sp_int_add(lv_pc, 1LL); sp_int _t3 = sp_IntArray_length(_t1); sp_int _t4 = _t2 < 0 ? _t2 + _t3 : _t2; (_t4 >= 0 && _t4 < _t3) ? sp_IntArray_get(_t1, _t4) : (sp_raise_cls(\"IndexError\", sp_sprintf(\"index %lld outside of array bounds: -%lld...%lld\", (long long)_t2, (long long)_t3, (long long)_t3)), 0); });\n return 0;\n}\n"
4508
+ },
4509
+ {
4510
+ "file": "array_fetch_root_slot.rb",
4511
+ "method": "fetch_literal",
4512
+ "temporary_root_sites": 0,
4513
+ "generated_c_body": "static inline SP_ALWAYS_INLINE sp_int sp_fetch_literal(sp_IntArray * lv_words) {\n SP_GC_SAVE();\n struct { sp_gc_frame_hdr h; void **p[1]; } _gcf = {{0, 1}}; SP_GC_ROOT_FRAME(_gcf);\n _gcf.p[0] = SP_GC_ENTRY_PTR(lv_words);\n return ({ sp_IntArray *_t1 = lv_words; sp_int _t2 = 0LL; sp_int _t3 = sp_IntArray_length(_t1); sp_int _t4 = _t2 < 0 ? _t2 + _t3 : _t2; (_t4 >= 0 && _t4 < _t3) ? sp_IntArray_get(_t1, _t4) : (sp_raise_cls(\"IndexError\", sp_sprintf(\"index %lld outside of array bounds: -%lld...%lld\", (long long)_t2, (long long)_t3, (long long)_t3)), 0); });\n return 0;\n}\n"
4514
+ },
4515
+ {
4516
+ "file": "array_fetch_root_reopened_index.rb",
4517
+ "method": "fetch_reopened",
4518
+ "temporary_root_sites": 1,
4519
+ "generated_c_body": "static inline SP_ALWAYS_INLINE sp_int sp_fetch_reopened(sp_IntArray * lv_words, sp_int lv_pc) {\n SP_GC_SAVE();\n struct { sp_gc_frame_hdr h; void **p[1]; } _gcf = {{0, 1}}; SP_GC_ROOT_FRAME(_gcf);\n _gcf.p[0] = SP_GC_ENTRY_PTR(lv_words);\n return ({ sp_IntArray *_t1 = lv_words; SP_GC_ROOT(_t1); sp_int _t2 = sp___int__plus__0(lv_pc, 1LL); sp_int _t3 = sp_IntArray_length(_t1); sp_int _t4 = _t2 < 0 ? _t2 + _t3 : _t2; (_t4 >= 0 && _t4 < _t3) ? sp_IntArray_get(_t1, _t4) : (sp_raise_cls(\"IndexError\", sp_sprintf(\"index %lld outside of array bounds: -%lld...%lld\", (long long)_t2, (long long)_t3, (long long)_t3)), 0); });\n return 0;\n}\n"
4520
+ }
4521
+ ]
4522
+ }
4523
+ }