wardite 0.8.2 → 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 (163) 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/examples/load_perf.rb +24 -0
  101. data/lib/wardite/alu_f32.generated.rb +13 -10
  102. data/lib/wardite/alu_f64.generated.rb +13 -10
  103. data/lib/wardite/alu_i32.generated.rb +38 -31
  104. data/lib/wardite/alu_i64.generated.rb +48 -48
  105. data/lib/wardite/cli/cli.rb +73 -22
  106. data/lib/wardite/const.rb +1 -0
  107. data/lib/wardite/convert.generated.rb +7 -5
  108. data/lib/wardite/efflorescence/float_arithmetic.rb +216 -0
  109. data/lib/wardite/efflorescence/i64_arithmetic.rb +257 -0
  110. data/lib/wardite/efflorescence/inspection.rb +165 -0
  111. data/lib/wardite/efflorescence/ir.rb +1151 -0
  112. data/lib/wardite/efflorescence/optimizer.rb +580 -0
  113. data/lib/wardite/efflorescence/register_validation.rb +290 -0
  114. data/lib/wardite/efflorescence/store_access.rb +271 -0
  115. data/lib/wardite/efflorescence/translator.rb +859 -0
  116. data/lib/wardite/efflorescence/vm.rb +1006 -0
  117. data/lib/wardite/efflorescence/wasi.rb +108 -0
  118. data/lib/wardite/efflorescence.rb +11 -0
  119. data/lib/wardite/errors.rb +20 -0
  120. data/lib/wardite/float_bits.rb +46 -0
  121. data/lib/wardite/instruction.rb +460 -69
  122. data/lib/wardite/leb128.rb +35 -17
  123. data/lib/wardite/load.rb +260 -159
  124. data/lib/wardite/revisitor.rb +12 -4
  125. data/lib/wardite/value.rb +169 -175
  126. data/lib/wardite/version.rb +1 -1
  127. data/lib/wardite/wasi/consts.rb +1 -0
  128. data/lib/wardite/wasm_module.rb +6 -3
  129. data/lib/wardite.rb +220 -105
  130. data/rbs_collection.lock.yaml +36 -96
  131. data/scripts/gen_alu.rb +90 -34
  132. data/scripts/templates/alu_module.rb.tmpl +7 -5
  133. data/scripts/templates/conv_module.rb.tmpl +7 -5
  134. data/sig/generated/wardite/alu_f32.generated.rbs +4 -3
  135. data/sig/generated/wardite/alu_f64.generated.rbs +4 -3
  136. data/sig/generated/wardite/alu_i32.generated.rbs +4 -3
  137. data/sig/generated/wardite/alu_i64.generated.rbs +4 -3
  138. data/sig/generated/wardite/cli/cli.rbs +13 -6
  139. data/sig/generated/wardite/const.rbs +2 -0
  140. data/sig/generated/wardite/convert.generated.rbs +4 -3
  141. data/sig/generated/wardite/efflorescence/float_arithmetic.rbs +65 -0
  142. data/sig/generated/wardite/efflorescence/i64_arithmetic.rbs +99 -0
  143. data/sig/generated/wardite/efflorescence/inspection.rbs +64 -0
  144. data/sig/generated/wardite/efflorescence/ir.rbs +881 -0
  145. data/sig/generated/wardite/efflorescence/optimizer.rbs +189 -0
  146. data/sig/generated/wardite/efflorescence/register_validation.rbs +76 -0
  147. data/sig/generated/wardite/efflorescence/store_access.rbs +134 -0
  148. data/sig/generated/wardite/efflorescence/translator.rbs +214 -0
  149. data/sig/generated/wardite/efflorescence/vm.rbs +179 -0
  150. data/sig/generated/wardite/efflorescence/wasi.rbs +47 -0
  151. data/sig/generated/wardite/errors.rbs +12 -0
  152. data/sig/generated/wardite/float_bits.rbs +30 -0
  153. data/sig/generated/wardite/instruction.rbs +35 -10
  154. data/sig/generated/wardite/leb128.rbs +3 -1
  155. data/sig/generated/wardite/load.rbs +38 -13
  156. data/sig/generated/wardite/value.rbs +70 -11
  157. data/sig/generated/wardite/wasi/consts.rbs +2 -0
  158. data/sig/generated/wardite.rbs +55 -18
  159. data/sig/vernier.rbs +3 -0
  160. data/spinel/README.md +30 -0
  161. data/spinel/bin/wardite.rb +6 -0
  162. data/spinel/spin.toml +7 -0
  163. metadata +128 -3
@@ -0,0 +1,256 @@
1
+ {
2
+ "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",
3
+ "driver_sha256": "48c024f39043b43f51ed332cdbc32b254c84336efe8900db967469174e6f1dd1",
4
+ "fixtures": {
5
+ "simple": {
6
+ "source": "(module (func (export \"run\") (result i32) i32.const 42))",
7
+ "sha256": "661ab5f783347f1d225146a4e3c29edb24d83ad6e024054b3c33dcb6b33401c9"
8
+ },
9
+ "inline": {
10
+ "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",
11
+ "sha256": "f1da0010cbb60f303456ec1d89cf3550e70accb81f48a6733135a69eb21adda5"
12
+ },
13
+ "reset": {
14
+ "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",
15
+ "sha256": "939c87558b64484fb8579739e0d2a6853f015f76111977bb323599a1f61e4044"
16
+ },
17
+ "edges": {
18
+ "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",
19
+ "sha256": "6f1834a801ef6078f9f9b95a0845353966d95efb693096badbce0838eb64aff5"
20
+ },
21
+ "protocol": {
22
+ "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",
23
+ "sha256": "d9058d218e2a24b1d0da1c0d5df6dcfac8260e2e2380f9a13023cc6100bea71b"
24
+ }
25
+ },
26
+ "variants": [
27
+ {
28
+ "variant": "baseline",
29
+ "returncode": 0,
30
+ "stdout": "validation ok\n",
31
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.25ms 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.15s of 0.2s wall (95.2%), 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",
32
+ "collections": 23564,
33
+ "environment": {
34
+ "SPINEL_GC_STRESS": "1",
35
+ "SPINEL_GC_VERIFY": "1",
36
+ "SPINEL_GC_STATS": "1"
37
+ },
38
+ "spinel_command": [
39
+ "spinel",
40
+ "-I/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/baseline/lib",
41
+ "--strict-require",
42
+ "-O2",
43
+ "--no-line-map",
44
+ "-c",
45
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/validation/driver.rb",
46
+ "-o",
47
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/baseline/validation.c"
48
+ ],
49
+ "compile_command": [
50
+ "clang",
51
+ "-O2",
52
+ "-ffp-contract=off",
53
+ "-falign-functions=64",
54
+ "-falign-loops=64",
55
+ "-I/Users/udzura/.local/lib/spinel/lib",
56
+ "-I/Users/udzura/.local/lib/spinel/lib/regexp",
57
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
58
+ "-DSP_ONE_STRING",
59
+ "-c",
60
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/baseline/validation.c",
61
+ "-o",
62
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/baseline/validation.o"
63
+ ],
64
+ "link_command": [
65
+ "clang",
66
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/baseline/validation.o",
67
+ "/Users/udzura/.local/lib/spinel/packages/stringio/sp_stringio.o",
68
+ "/Users/udzura/.local/lib/spinel/lib/libspinel_rt.a",
69
+ "-lm",
70
+ "-o",
71
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/baseline/validation"
72
+ ],
73
+ "binary_sha256": "8c3cea921ea687eda80fa22fdd60ca34b7c9ae2490b8ff996ef38074f6f6289e"
74
+ },
75
+ {
76
+ "variant": "while_loop",
77
+ "returncode": 0,
78
+ "stdout": "validation ok\n",
79
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.16ms 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.14s of 0.1s wall (95.9%), 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",
80
+ "collections": 23564,
81
+ "environment": {
82
+ "SPINEL_GC_STRESS": "1",
83
+ "SPINEL_GC_VERIFY": "1",
84
+ "SPINEL_GC_STATS": "1"
85
+ },
86
+ "spinel_command": [
87
+ "spinel",
88
+ "-I/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_loop/lib",
89
+ "--strict-require",
90
+ "-O2",
91
+ "--no-line-map",
92
+ "-c",
93
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/validation/driver.rb",
94
+ "-o",
95
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_loop/validation.c"
96
+ ],
97
+ "compile_command": [
98
+ "clang",
99
+ "-O2",
100
+ "-ffp-contract=off",
101
+ "-falign-functions=64",
102
+ "-falign-loops=64",
103
+ "-I/Users/udzura/.local/lib/spinel/lib",
104
+ "-I/Users/udzura/.local/lib/spinel/lib/regexp",
105
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
106
+ "-DSP_ONE_STRING",
107
+ "-c",
108
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_loop/validation.c",
109
+ "-o",
110
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_loop/validation.o"
111
+ ],
112
+ "link_command": [
113
+ "clang",
114
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_loop/validation.o",
115
+ "/Users/udzura/.local/lib/spinel/packages/stringio/sp_stringio.o",
116
+ "/Users/udzura/.local/lib/spinel/lib/libspinel_rt.a",
117
+ "-lm",
118
+ "-o",
119
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_loop/validation"
120
+ ],
121
+ "binary_sha256": "5c3aa5d76df15cbae8e6c88aadfee9deb73bbb1b40c39df085fe4c6b01fe8ad5"
122
+ },
123
+ {
124
+ "variant": "c_root_elision",
125
+ "returncode": 0,
126
+ "stdout": "validation ok\n",
127
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.09ms 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.14s of 0.1s wall (95.9%), 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",
128
+ "collections": 23564,
129
+ "environment": {
130
+ "SPINEL_GC_STRESS": "1",
131
+ "SPINEL_GC_VERIFY": "1",
132
+ "SPINEL_GC_STATS": "1"
133
+ },
134
+ "spinel_command": [
135
+ "spinel",
136
+ "-I/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/c_root_elision/lib",
137
+ "--strict-require",
138
+ "-O2",
139
+ "--no-line-map",
140
+ "-c",
141
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/validation/driver.rb",
142
+ "-o",
143
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/c_root_elision/validation.c"
144
+ ],
145
+ "compile_command": [
146
+ "clang",
147
+ "-O2",
148
+ "-ffp-contract=off",
149
+ "-falign-functions=64",
150
+ "-falign-loops=64",
151
+ "-I/Users/udzura/.local/lib/spinel/lib",
152
+ "-I/Users/udzura/.local/lib/spinel/lib/regexp",
153
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
154
+ "-DSP_ONE_STRING",
155
+ "-c",
156
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/c_root_elision/validation.c",
157
+ "-o",
158
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/c_root_elision/validation.o"
159
+ ],
160
+ "link_command": [
161
+ "clang",
162
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/c_root_elision/validation.o",
163
+ "/Users/udzura/.local/lib/spinel/packages/stringio/sp_stringio.o",
164
+ "/Users/udzura/.local/lib/spinel/lib/libspinel_rt.a",
165
+ "-lm",
166
+ "-o",
167
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/c_root_elision/validation"
168
+ ],
169
+ "binary_sha256": "d0f8b5fae5d9f8f62f5bd4eb8d2dc690850fd44cc2e21d9c31fa4e4b798603a6"
170
+ },
171
+ {
172
+ "variant": "while_c_root_elision",
173
+ "returncode": 0,
174
+ "stdout": "validation ok\n",
175
+ "stderr": "[gc] 1 collections (1 full) in 0.00s of 0.0s wall (0.0%), 0.18ms 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.14s of 0.1s wall (95.7%), 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",
176
+ "collections": 23564,
177
+ "environment": {
178
+ "SPINEL_GC_STRESS": "1",
179
+ "SPINEL_GC_VERIFY": "1",
180
+ "SPINEL_GC_STATS": "1"
181
+ },
182
+ "spinel_command": [
183
+ "spinel",
184
+ "-I/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_c_root_elision/lib",
185
+ "--strict-require",
186
+ "-O2",
187
+ "--no-line-map",
188
+ "-c",
189
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/validation/driver.rb",
190
+ "-o",
191
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_c_root_elision/validation.c"
192
+ ],
193
+ "compile_command": [
194
+ "clang",
195
+ "-O2",
196
+ "-ffp-contract=off",
197
+ "-falign-functions=64",
198
+ "-falign-loops=64",
199
+ "-I/Users/udzura/.local/lib/spinel/lib",
200
+ "-I/Users/udzura/.local/lib/spinel/lib/regexp",
201
+ "-DSP_INT_OVERFLOW_MODE_RAISE",
202
+ "-DSP_ONE_STRING",
203
+ "-c",
204
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_c_root_elision/validation.c",
205
+ "-o",
206
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_c_root_elision/validation.o"
207
+ ],
208
+ "link_command": [
209
+ "clang",
210
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_c_root_elision/validation.o",
211
+ "/Users/udzura/.local/lib/spinel/packages/stringio/sp_stringio.o",
212
+ "/Users/udzura/.local/lib/spinel/lib/libspinel_rt.a",
213
+ "-lm",
214
+ "-o",
215
+ "/Users/udzura/ghq/github.com/udzura/wardite/build/benchmark/generated-guards/final/while_c_root_elision/validation"
216
+ ],
217
+ "binary_sha256": "5ee8ef52a2b7f9e69fee21e68797ceed09640eba538e83d9d0289f45861da5e5"
218
+ }
219
+ ],
220
+ "runner_source": "from pathlib import Path\nimport hashlib\nimport json\nimport os\nimport re\nimport subprocess\n\nbase = Path(__file__).resolve().parent.parent\nmeasured = json.loads((base / \"final/results.json\").read_text())\nentry = base / \"validation/driver.rb\"\nreport = {\"driver_source\": entry.read_text(), \"driver_sha256\": hashlib.sha256(entry.read_bytes()).hexdigest(),\n \"fixtures\": {}, \"variants\": []}\nfor source in (base / \"validation\").glob(\"*.wat\"):\n report[\"fixtures\"][source.stem] = {\"source\": source.read_text(), \"sha256\": hashlib.sha256(source.read_bytes()).hexdigest()}\nenvironment = dict(os.environ, SPINEL_GC_STRESS=\"1\", SPINEL_GC_VERIFY=\"1\", SPINEL_GC_STATS=\"1\")\nfor name, snapshot in measured[\"snapshots\"].items():\n directory = base / \"final\" / name\n generated, obj, binary = [directory / f\"validation{suffix}\" for suffix in [\".c\", \".o\", \"\"]]\n spinel = [\"spinel\", \"-I\" + str(directory / \"lib\"), \"--strict-require\", \"-O2\", \"--no-line-map\",\n \"-c\", str(entry), \"-o\", str(generated)]\n with (directory / \"validation-spinel.log\").open(\"w\") as log:\n subprocess.run(spinel, stdout=log, stderr=subprocess.STDOUT, check=True)\n code = generated.read_text()\n body = re.search(r\"^static [^\\n]+sp_(?:Wardite__Efflorescence__)?VM_execute_flat\\([^;\\n]*\\) \\{.*?(?=^static |\\Z)\", code, re.M | re.S).group()\n assert \"SP_GC_ENTRY_PTR(lv_instructions)\" in body\n assert not re.search(r\"sp_PolyArray_|sp_pd_[a-f0-9]+\\(\", body)\n if \"c_root_elision\" in name:\n edited, count = re.subn(r\"(sp_IntArray \\*(_t\\d+) = lv_instructions; )SP_GC_ROOT\\(\\2\\);( sp_int _t\\d+ = (?:lv_pc|sp_int_add\\(lv_pc, [123]LL\\));)\", r\"\\1\\3\", body)\n assert count == 38, count\n generated.write_text(code.replace(body, edited, 1))\n artifact = snapshot[\"artifacts\"][\"worker\"]\n compile_command = [str(generated) if arg == str(directory / \"worker.c\") else str(obj) if arg == str(directory / \"worker.o\") else arg for arg in artifact[\"compile_command\"]]\n link_command = [str(obj) if arg == str(directory / \"worker.o\") else str(binary) if arg == str(directory / \"worker\") else arg for arg in artifact[\"link_command\"]]\n with (directory / \"validation-clang.log\").open(\"w\") as log:\n subprocess.run(compile_command, stdout=log, stderr=subprocess.STDOUT, check=True)\n subprocess.run(link_command, stdout=log, stderr=subprocess.STDOUT, check=True)\n result = subprocess.run([str(binary), str(base / \"validation\")], env=environment, capture_output=True, text=True)\n (directory / \"validation.stdout\").write_text(result.stdout)\n (directory / \"validation.stderr\").write_text(result.stderr)\n counts = re.findall(r\"\\[gc\\] (\\d+) collections\", result.stderr)\n report[\"variants\"].append({\"variant\": name, \"returncode\": result.returncode, \"stdout\": result.stdout,\n \"stderr\": result.stderr, \"collections\": int(counts[-1]) if counts else 0,\n \"environment\": {key: environment[key] for key in [\"SPINEL_GC_STRESS\", \"SPINEL_GC_VERIFY\", \"SPINEL_GC_STATS\"]},\n \"spinel_command\": spinel, \"compile_command\": compile_command, \"link_command\": link_command,\n \"binary_sha256\": hashlib.sha256(binary.read_bytes()).hexdigest()})\n (base / \"validation/results.json\").write_text(json.dumps(report, indent=2) + \"\\n\")\n print(name, result.returncode, result.stdout.strip(), \"collections\", report[\"variants\"][-1][\"collections\"], flush=True)\n assert result.returncode == 0 and result.stdout == \"validation ok\\n\" and counts and int(counts[-1]) > 0\n",
221
+ "full_suite": [
222
+ {
223
+ "variant": "while_loop",
224
+ "tests": 116,
225
+ "assertions": 10888,
226
+ "failures": 0,
227
+ "errors": 0,
228
+ "omissions": 0,
229
+ "test_contract_adjustment": "Allow C argument identifier lv_frame as well as lv_frame__in; concrete Frame/pool type checks unchanged."
230
+ },
231
+ {
232
+ "variant": "c_root_elision",
233
+ "tests": 116,
234
+ "assertions": 10888,
235
+ "failures": 0,
236
+ "errors": 0,
237
+ "omissions": 0,
238
+ "test_contract_adjustment": "Allow C argument identifier lv_frame as well as lv_frame__in; concrete Frame/pool type checks unchanged."
239
+ },
240
+ {
241
+ "variant": "while_c_root_elision",
242
+ "tests": 116,
243
+ "assertions": 10888,
244
+ "failures": 0,
245
+ "errors": 0,
246
+ "omissions": 0,
247
+ "test_contract_adjustment": "Allow C argument identifier lv_frame as well as lv_frame__in; concrete Frame/pool type checks unchanged."
248
+ }
249
+ ],
250
+ "ruby_invalid_pc_driver": "# 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\")\nsimple = vm_for(directory, \"simple\")\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\n# Exercise allocation/exception paths with the current instruction buffer held\n# only by the normal VM roots. Check recovery in the same VM and native process.\nfunction = simple.ir.function_at(0)\noriginal = function.bytecode\n3.times do\n [-1000000, 1000000].each do |target|\n function.install_code([8, target, 0, 0], function.calls)\n caught = false\n begin\n simple.call_unboxed(\"run\", [])\n rescue IndexError\n caught = true\n end\n raise \"missing invalid PC error\" unless caught\n function.install_code(original, function.calls)\n check(42, simple.call_unboxed(\"run\", []))\n end\n function.install_code([11, 0, 0, 0], function.calls)\n check(0, simple.call_unboxed(\"run\", []))\n function.install_code(original, function.calls)\n check(42, simple.call_unboxed(\"run\", []))\nend\nputs \"validation ok\"\n",
251
+ "ruby_invalid_pc_variants": [
252
+ "baseline",
253
+ "while_loop"
254
+ ],
255
+ "note": "Native driver excludes host bytecode mutation because it widened bytecode to a boxed field. Its typed instruction array and function-scoped root are checked before C root elision. The full suites use copied tests and isolated Bundler paths."
256
+ }
@@ -0,0 +1,241 @@
1
+ {
2
+ "command": "SPINELFLAGS=-O2 RUNS=5 WARMUPS=2 ruby benchmark/compare.rb",
3
+ "rounds": 100000,
4
+ "seed": 123456789,
5
+ "runs": 5,
6
+ "warmups": 2,
7
+ "spinel_flags": [
8
+ "-O2"
9
+ ],
10
+ "spinel": "2026.10.25+1967 (6e7fc1355)",
11
+ "wasmtime": "49.0.0 (17830bd3c 2026-09-21)",
12
+ "iwasm": "2.4.5",
13
+ "cli_sha256": "2668e180a97c5af5c332d4533a3b1a64357b61686dde2474205d860d8b5ab4a1",
14
+ "source_sha256": {
15
+ "benchmark/call_cost_worker.rb": "4e04ed585bc9aa71c3c1f130f4d9954a6a5a7d63a96ece8d3e672203b4b85ae6",
16
+ "exe/wardite": "2f3995ccba16f2dee01d1c6fffbb52fa97050aa37c547aae24f93b04a2520cd0",
17
+ "lib/wardite.rb": "0c692293a62a3e5447ee3218ad2220c58e1442e2dbd0968f8f0d351dfc034f32",
18
+ "lib/wardite/alu_f32.generated.rb": "8f7513a0eedf822d646fee25466ae3299c62755f4df644719c388c757e0a1d0c",
19
+ "lib/wardite/alu_f64.generated.rb": "7ab9da56f49811f84e34d447ba7f6805beb23b5b850ed3910ed05a08f666af15",
20
+ "lib/wardite/alu_i32.generated.rb": "24f11c231a3a516da182a96c18f3567400b4dc50eaea83c47c029199a664406f",
21
+ "lib/wardite/alu_i64.generated.rb": "de661f710e0714436924fac7f5887c2b47870a9bf9644cdb1a1eea7cc4978470",
22
+ "lib/wardite/cli/cli.rb": "500e94432ec07174634bf590dd510e1d9dd6a8be0d1ce79d58af5b52e4b36346",
23
+ "lib/wardite/const.rb": "ca9531b1230ae85ce1d55e0853b09de8446570de5373a99d1803907683fcbe95",
24
+ "lib/wardite/convert.generated.rb": "54d5ebe5074f5bfb80df4ef3f07bc59eb04f61ff6c69212a55aa2e2a6fe9751f",
25
+ "lib/wardite/efflorescence.rb": "afd9614cee6b644c6aecdff42bec4212291acccb3d76881c7b0000bfe66ba0d3",
26
+ "lib/wardite/efflorescence/inspection.rb": "5728baa6b20ec4e729b491e47ba784d3951282a3a8341ffc07328133ad4d7226",
27
+ "lib/wardite/efflorescence/ir.rb": "c2a6600d7b6f987a135e82642b6e1f269d1e3d77b9fc0d6e3fda9582101f3d04",
28
+ "lib/wardite/efflorescence/optimizer.rb": "ae07a5c1a34a303d20abe956d53fc8725c36c5c70c4ed100c873ca0d6f31a471",
29
+ "lib/wardite/efflorescence/register_validation.rb": "818e437bdbacfb86fb12fa2553c756cc78de31acbd8351c7a61584a88c995019",
30
+ "lib/wardite/efflorescence/translator.rb": "654e508ed40c9f622cb3fdd481d44b6cf040b1808dd342165bd4a7d95284fcda",
31
+ "lib/wardite/efflorescence/vm.rb": "675c6c3cfc629f302a3c50ce951c4a161d04b0db3d806a60f8b8ed73ee405b90",
32
+ "lib/wardite/errors.rb": "fd6761677535e9128965899ab57a7a27182dc3c221ac24e33619327fae78d9bf",
33
+ "lib/wardite/instruction.rb": "c2614c735e9b2b3824fb75c90f535612aebe6000f54426aa2f6a753b35f44ac8",
34
+ "lib/wardite/leb128.rb": "b24b179e1e0943768bf2de8f76215482c4d9b6bbf9417f50a6651161fde05fac",
35
+ "lib/wardite/load.rb": "985bf6d88dc7cefed183c10168d0d68e7aec8ee6aaf9c286bcd4db835b055c81",
36
+ "lib/wardite/revisitor.rb": "e5637fb63e919bb451ad95175a1042a178cab66e170a7be56ca8cb19d4dd60da",
37
+ "lib/wardite/value.rb": "82d9f7f2aa75f1e9b767e01e451f10ab732a18c5a4e3fcdf5e61bb84b1257dea",
38
+ "lib/wardite/version.rb": "e5c5254c8f758ec74991d3b53dd33596c943a144fc1b44d9570c1a5eb894d8d9",
39
+ "lib/wardite/wasi.rb": "c2949b28da1ea1dd7ebd119c39988cb174d5e97d23a5e29a94fcd2fc601e56f4",
40
+ "lib/wardite/wasi/consts.rb": "66eb9d398990ec6be7428659b9dfbaf46fbd966bb0e7611067a7257d23ffa154",
41
+ "lib/wardite/wasi/dirent_cache.rb": "ea203f0008b9ad0755f78dd89b43cf8759c8963fb5ad4fa18cfdf6d37b52a762",
42
+ "lib/wardite/wasi/preopens.rb": "74a5d81548b5646b96861a18b8efba90e0ad1e5e5ff1eabd9520a2571cf35970",
43
+ "lib/wardite/wasm_module.rb": "202463cd20fd6d1b2e7f4093c324304d1c665def4724851bd26eea064588b231"
44
+ },
45
+ "hyperfine": {
46
+ "results": [
47
+ {
48
+ "command": "New VM / Spinel / inline_mix",
49
+ "mean": 0.0083565084,
50
+ "stddev": 0.00029883491724161046,
51
+ "median": 0.008441042000000001,
52
+ "user": 0.0067821999999999995,
53
+ "system": 0.0008378,
54
+ "min": 0.008033042,
55
+ "max": 0.008766834000000001,
56
+ "times": [
57
+ 0.008094208,
58
+ 0.008447416000000001,
59
+ 0.008766834000000001,
60
+ 0.008441042000000001,
61
+ 0.008033042
62
+ ],
63
+ "exit_codes": [
64
+ 0,
65
+ 0,
66
+ 0,
67
+ 0,
68
+ 0
69
+ ]
70
+ },
71
+ {
72
+ "command": "iwasm (WAMR interpreter) / inline_mix",
73
+ "mean": 0.0035448335999999996,
74
+ "stddev": 0.0001933879340827653,
75
+ "median": 0.003494459,
76
+ "user": 0.0018841999999999997,
77
+ "system": 0.0009674,
78
+ "min": 0.0033594170000000004,
79
+ "max": 0.0038328340000000002,
80
+ "times": [
81
+ 0.0033996250000000003,
82
+ 0.003637833,
83
+ 0.0038328340000000002,
84
+ 0.0033594170000000004,
85
+ 0.003494459
86
+ ],
87
+ "exit_codes": [
88
+ 0,
89
+ 0,
90
+ 0,
91
+ 0,
92
+ 0
93
+ ]
94
+ },
95
+ {
96
+ "command": "Wasmtime (Pulley) / inline_mix",
97
+ "mean": 0.005829633400000001,
98
+ "stddev": 0.0005013430532692164,
99
+ "median": 0.0055549580000000005,
100
+ "user": 0.005105,
101
+ "system": 0.0042686,
102
+ "min": 0.005403583,
103
+ "max": 0.006426375000000001,
104
+ "times": [
105
+ 0.006426375000000001,
106
+ 0.006321459000000001,
107
+ 0.0055549580000000005,
108
+ 0.005403583,
109
+ 0.005441792
110
+ ],
111
+ "exit_codes": [
112
+ 0,
113
+ 0,
114
+ 0,
115
+ 0,
116
+ 0
117
+ ]
118
+ },
119
+ {
120
+ "command": "Wasmtime / inline_mix",
121
+ "mean": 0.004561083400000001,
122
+ "stddev": 0.0003247552632903739,
123
+ "median": 0.0044726670000000005,
124
+ "user": 0.0037682,
125
+ "system": 0.0036017999999999996,
126
+ "min": 0.00423775,
127
+ "max": 0.005072958000000001,
128
+ "times": [
129
+ 0.00465675,
130
+ 0.005072958000000001,
131
+ 0.0044726670000000005,
132
+ 0.004365292000000001,
133
+ 0.00423775
134
+ ],
135
+ "exit_codes": [
136
+ 0,
137
+ 0,
138
+ 0,
139
+ 0,
140
+ 0
141
+ ]
142
+ },
143
+ {
144
+ "command": "New VM / Spinel / call_mix",
145
+ "mean": 0.0083117502,
146
+ "stddev": 0.0002810219283289115,
147
+ "median": 0.008325959,
148
+ "user": 0.0067538,
149
+ "system": 0.0008290000000000001,
150
+ "min": 0.007906875,
151
+ "max": 0.008597416,
152
+ "times": [
153
+ 0.008597416,
154
+ 0.008184459,
155
+ 0.007906875,
156
+ 0.008325959,
157
+ 0.008544042
158
+ ],
159
+ "exit_codes": [
160
+ 0,
161
+ 0,
162
+ 0,
163
+ 0,
164
+ 0
165
+ ]
166
+ },
167
+ {
168
+ "command": "iwasm (WAMR interpreter) / call_mix",
169
+ "mean": 0.0038740834,
170
+ "stddev": 0.00023802653562113622,
171
+ "median": 0.003798833,
172
+ "user": 0.0022536,
173
+ "system": 0.0008899999999999998,
174
+ "min": 0.0036662920000000002,
175
+ "max": 0.0042822500000000005,
176
+ "times": [
177
+ 0.0037705420000000004,
178
+ 0.0036662920000000002,
179
+ 0.0038525000000000005,
180
+ 0.003798833,
181
+ 0.0042822500000000005
182
+ ],
183
+ "exit_codes": [
184
+ 0,
185
+ 0,
186
+ 0,
187
+ 0,
188
+ 0
189
+ ]
190
+ },
191
+ {
192
+ "command": "Wasmtime (Pulley) / call_mix",
193
+ "mean": 0.0066289334,
194
+ "stddev": 0.00033837290414762816,
195
+ "median": 0.006842458,
196
+ "user": 0.0057032,
197
+ "system": 0.0040838,
198
+ "min": 0.006242209,
199
+ "max": 0.006937625,
200
+ "times": [
201
+ 0.006242209,
202
+ 0.006279792,
203
+ 0.006937625,
204
+ 0.006842583,
205
+ 0.006842458
206
+ ],
207
+ "exit_codes": [
208
+ 0,
209
+ 0,
210
+ 0,
211
+ 0,
212
+ 0
213
+ ]
214
+ },
215
+ {
216
+ "command": "Wasmtime / call_mix",
217
+ "mean": 0.004567750000000001,
218
+ "stddev": 0.0004005918259712747,
219
+ "median": 0.004424166,
220
+ "user": 0.003779,
221
+ "system": 0.0037199999999999998,
222
+ "min": 0.004184875,
223
+ "max": 0.005159959,
224
+ "times": [
225
+ 0.004781667000000001,
226
+ 0.005159959,
227
+ 0.004424166,
228
+ 0.004288083000000001,
229
+ 0.004184875
230
+ ],
231
+ "exit_codes": [
232
+ 0,
233
+ 0,
234
+ 0,
235
+ 0,
236
+ 0
237
+ ]
238
+ }
239
+ ]
240
+ }
241
+ }