wardite 1.2.2 → 1.3.1

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 (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -15
  3. data/Rakefile +0 -177
  4. data/benchmark/README.md +10 -36
  5. data/benchmark/call_cost_worker.rb +3 -2
  6. data/benchmark/compare.rb +1 -2
  7. data/benchmark/compare_linear_memory_loads.py +144 -0
  8. data/benchmark/i32_memory.wat +5 -1
  9. data/benchmark/investigate_calls.rb +4 -4
  10. data/benchmark/linear_memory_loads.wat +52 -0
  11. data/benchmark/optimization_worker.rb +3 -2
  12. data/benchmark/patches/adr0017-spinel-signed64.patch +190 -0
  13. data/benchmark/patches/adr0017-wardite-split-load64.patch +70 -0
  14. data/benchmark/results/adr0019-startup.json +1687 -0
  15. data/benchmark/results/adr0020-i64.json +2034 -0
  16. data/benchmark/results/adr0021-optimizer.json +5798 -0
  17. data/benchmark/results/adr0022-lazy-mir.json +3057 -0
  18. data/benchmark/results/crc8-stream-repeat.csv +89 -0
  19. data/benchmark/results/crc8-stream.csv +89 -0
  20. data/benchmark/results/linear-memory-loads-a2aa05227.csv +793 -0
  21. data/benchmark/results/linear-memory-loads-stage-b.csv +353 -0
  22. data/benchmark/results/linear-memory-loads.csv +1057 -0
  23. data/benchmark/results/real-workloads-baseline-2026-11-18.json +1741 -0
  24. data/benchmark/results/spinel-072516af1.csv +149 -0
  25. data/benchmark/results/stack-vm-removal.json +334 -0
  26. data/benchmark/validate_m4.rb +0 -2
  27. data/docs/adr/0017-efflorescence-linear-memory-loads.md +90 -0
  28. data/docs/adr/0018-efflorescence-real-workload-measurement.md +126 -0
  29. data/docs/adr/0019-efflorescence-startup-quick-wins.md +85 -0
  30. data/docs/adr/0020-efflorescence-inline-i64-bit-operations.md +89 -0
  31. data/docs/adr/0021-efflorescence-optimize-real-functions.md +133 -0
  32. data/docs/adr/0022-efflorescence-lazy-function-build.md +111 -0
  33. data/docs/adr/0023-efflorescence-byte-sequences-and-copy-coalescing.md +56 -0
  34. data/docs/efflorescence-ja.md +3 -5
  35. data/docs/efflorescence-linear-memory-loads.md +134 -0
  36. data/docs/efflorescence-m6.md +1 -1
  37. data/docs/efflorescence-mir-generation-performance.md +58 -0
  38. data/docs/efflorescence-mir2-cache.md +7 -0
  39. data/docs/efflorescence-real-workloads.md +312 -0
  40. data/docs/efflorescence-spinel-linear-memory.md +2 -2
  41. data/docs/efflorescence.md +3 -5
  42. data/docs/stack-vm-removal.md +49 -0
  43. data/lib/wardite/cli/cli.rb +24 -24
  44. data/lib/wardite/efflorescence/byte_sequences.rb +80 -0
  45. data/lib/wardite/efflorescence/function_preparer.rb +64 -0
  46. data/lib/wardite/efflorescence/i64_arithmetic.rb +31 -0
  47. data/lib/wardite/efflorescence/inspection.rb +44 -12
  48. data/lib/wardite/efflorescence/ir.rb +33 -10
  49. data/lib/wardite/efflorescence/mir_cache.rb +10 -1
  50. data/lib/wardite/efflorescence/optimizer.rb +151 -42
  51. data/lib/wardite/efflorescence/store_access.rb +17 -0
  52. data/lib/wardite/efflorescence/translation_source.rb +50 -0
  53. data/lib/wardite/efflorescence/translator.rb +135 -19
  54. data/lib/wardite/efflorescence/vm.rb +116 -48
  55. data/lib/wardite/efflorescence.rb +3 -0
  56. data/lib/wardite/load.rb +46 -62
  57. data/lib/wardite/version.rb +1 -1
  58. data/lib/wardite.rb +21 -757
  59. data/scripts/build_spinel_zig.rb +29 -17
  60. data/sig/generated/wardite/cli/cli.rbs +4 -2
  61. data/sig/generated/wardite/efflorescence/byte_sequences.rbs +33 -0
  62. data/sig/generated/wardite/efflorescence/function_preparer.rbs +25 -0
  63. data/sig/generated/wardite/efflorescence/i64_arithmetic.rbs +19 -0
  64. data/sig/generated/wardite/efflorescence/inspection.rbs +8 -0
  65. data/sig/generated/wardite/efflorescence/ir.rbs +18 -2
  66. data/sig/generated/wardite/efflorescence/optimizer.rbs +41 -3
  67. data/sig/generated/wardite/efflorescence/store_access.rbs +5 -0
  68. data/sig/generated/wardite/efflorescence/translation_source.rbs +34 -0
  69. data/sig/generated/wardite/efflorescence/translator.rbs +28 -1
  70. data/sig/generated/wardite/efflorescence/vm.rbs +19 -9
  71. data/sig/generated/wardite/load.rbs +18 -18
  72. data/sig/generated/wardite.rbs +4 -155
  73. metadata +33 -17
  74. data/benchmark/compare_engines.rb +0 -119
  75. data/benchmark/engine_phases.rb +0 -30
  76. data/lib/wardite/alu_f32.generated.rb +0 -261
  77. data/lib/wardite/alu_f64.generated.rb +0 -261
  78. data/lib/wardite/alu_i32.generated.rb +0 -510
  79. data/lib/wardite/alu_i64.generated.rb +0 -572
  80. data/lib/wardite/convert.generated.rb +0 -340
  81. data/scripts/gen_alu.rb +0 -864
  82. data/scripts/gen_conv.rb +0 -86
  83. data/scripts/templates/alu_module.rb.tmpl +0 -20
  84. data/scripts/templates/conv_module.rb.tmpl +0 -20
  85. data/sig/generated/wardite/alu_f32.generated.rbs +0 -12
  86. data/sig/generated/wardite/alu_f64.generated.rbs +0 -12
  87. data/sig/generated/wardite/alu_i32.generated.rbs +0 -12
  88. data/sig/generated/wardite/alu_i64.generated.rbs +0 -12
  89. data/sig/generated/wardite/convert.generated.rbs +0 -12
@@ -0,0 +1,1741 @@
1
+ {
2
+ "environment": {
3
+ "wardite": "v1.2.2-10-g5c96407-dirty",
4
+ "spinel": "spinel 2026.10.25+6092 (a2aa05227) [apple clang 21.0.0 (cc)]",
5
+ "wardite-benches": "1155333-dirty",
6
+ "cpu": "Apple M3 Pro",
7
+ "os": "26.6.2",
8
+ "wasmtime": "wasmtime 28.0.0 (2e584e841 2024-12-20)",
9
+ "iwasm": "iwasm 2.4.5",
10
+ "hyperfine": "hyperfine 2.0.0",
11
+ "wasm_sha256": {
12
+ "build/wat/xorshift.wasm": "12e7c3aef0c4ea02faf75bec03d23698c232f6b0a23029a24bf8db0d04e46333",
13
+ "build/rust/wasm32-unknown-unknown/release/examples/xorshift.wasm": "ad29759e3632351bbf900909098821a8f0083ce86c428db12b2e8ce6cada75f5",
14
+ "build/rust/wasm32-unknown-unknown/release/examples/splitmix64.wasm": "58767f49d4166e304a1ad7725e527bc5db0a10221929eb88813c2d1f68a16b80",
15
+ "build/rust/wasm32-unknown-unknown/release/examples/mandelbrot.wasm": "eac9fe6f1cf40b3aa598a228c95ae0b53efa7d1a1786f9e5d6d371ff897c0636",
16
+ "build/rust/wasm32-unknown-unknown/release/examples/monte_carlo_pi.wasm": "cc7c9b62a01efb9f5fab54685561efb944fd58ae7a28508e49a6307d54e3976f",
17
+ "build/rust/wasm32-unknown-unknown/release/examples/crc8_stream.wasm": "dc53c667cc969828d6b7f0b9cc9d2e5853b64ec31dc009939f4c3c9f7c3fb808",
18
+ "build/rust/wasm32-wasip1/release/examples/base64_codec.wasm": "59e0f3fe21bdde9d4c4e23d945433e07d00e5e4de4e7edcd993e7de88fca2083",
19
+ "build/rust/wasm32-wasip1/release/examples/png_grayscale.wasm": "c64581670926d8b271919ca8a5ef38fa09ef79d0f5c52cb36ceb68c520a37e71"
20
+ }
21
+ },
22
+ "warmup": 2,
23
+ "cases": [
24
+ {
25
+ "name": "xorshift-wat",
26
+ "engines": {
27
+ "wardite": {
28
+ "command": "build/wardite --new-engine --no-wasi --invoke xorshift -- build/wat/xorshift.wasm 100000000 1",
29
+ "wall_seconds": [
30
+ 2.385844958,
31
+ 2.392083333,
32
+ 2.383877375,
33
+ 2.381992667,
34
+ 2.382742792,
35
+ 2.3874165,
36
+ 2.389715125,
37
+ 2.398634833,
38
+ 2.382201458
39
+ ],
40
+ "peak_rss_bytes": [
41
+ 6356992.0,
42
+ 6340608.0,
43
+ 6356992.0,
44
+ 6356992.0,
45
+ 6340608.0,
46
+ 6340608.0,
47
+ 6356992.0,
48
+ 6356992.0,
49
+ 6356992.0
50
+ ]
51
+ },
52
+ "wasmtime": {
53
+ "command": "wasmtime run --invoke xorshift -- build/wat/xorshift.wasm 100000000 1",
54
+ "wall_seconds": [
55
+ 0.26703587500000003,
56
+ 0.26725350000000003,
57
+ 0.268101875,
58
+ 0.268112833,
59
+ 0.268572542,
60
+ 0.269722209,
61
+ 0.267744709,
62
+ 0.27228625,
63
+ 0.382307334
64
+ ],
65
+ "peak_rss_bytes": [
66
+ 12845056.0,
67
+ 12877824.0,
68
+ 12812288.0,
69
+ 12861440.0,
70
+ 12861440.0,
71
+ 12894208.0,
72
+ 12910592.0,
73
+ 12943360.0,
74
+ 12926976.0
75
+ ]
76
+ },
77
+ "iwasm": {
78
+ "command": "iwasm --interp -f xorshift build/wat/xorshift.wasm 100000000 1",
79
+ "wall_seconds": [
80
+ 0.9050914590000001,
81
+ 0.9106624160000001,
82
+ 0.9024855420000001,
83
+ 0.915397666,
84
+ 0.927169,
85
+ 0.9361496250000001,
86
+ 0.903587542,
87
+ 0.949153541,
88
+ 0.922219208
89
+ ],
90
+ "peak_rss_bytes": [
91
+ 10092544.0,
92
+ 10092544.0,
93
+ 10092544.0,
94
+ 10092544.0,
95
+ 10092544.0,
96
+ 10092544.0,
97
+ 10092544.0,
98
+ 10092544.0,
99
+ 10092544.0
100
+ ]
101
+ }
102
+ },
103
+ "match": "Match"
104
+ },
105
+ {
106
+ "name": "xorshift",
107
+ "engines": {
108
+ "wardite": {
109
+ "command": "build/wardite --new-engine --no-wasi --invoke xorshift -- build/rust/wasm32-unknown-unknown/release/examples/xorshift.wasm 100000000 1",
110
+ "wall_seconds": [
111
+ 1.6073778330000001,
112
+ 1.5926150410000002,
113
+ 1.6808251250000001,
114
+ 1.638990916,
115
+ 1.592949417,
116
+ 1.596817208,
117
+ 1.5970322920000002,
118
+ 1.596759333,
119
+ 1.600018334
120
+ ],
121
+ "peak_rss_bytes": [
122
+ 6455296.0,
123
+ 6455296.0,
124
+ 6455296.0,
125
+ 6455296.0,
126
+ 6455296.0,
127
+ 6438912.0,
128
+ 6455296.0,
129
+ 6455296.0,
130
+ 6455296.0
131
+ ]
132
+ },
133
+ "wasmtime": {
134
+ "command": "wasmtime run --invoke xorshift -- build/rust/wasm32-unknown-unknown/release/examples/xorshift.wasm 100000000 1",
135
+ "wall_seconds": [
136
+ 0.44508141700000003,
137
+ 0.44428825000000005,
138
+ 0.445689708,
139
+ 0.44831995900000005,
140
+ 0.465334167,
141
+ 0.44627770800000005,
142
+ 0.44701570900000004,
143
+ 0.446606041,
144
+ 0.44943770800000005
145
+ ],
146
+ "peak_rss_bytes": [
147
+ 12812288.0,
148
+ 12845056.0,
149
+ 12812288.0,
150
+ 12861440.0,
151
+ 12910592.0,
152
+ 12861440.0,
153
+ 12976128.0,
154
+ 12910592.0,
155
+ 12959744.0
156
+ ]
157
+ },
158
+ "iwasm": {
159
+ "command": "iwasm --interp -f xorshift build/rust/wasm32-unknown-unknown/release/examples/xorshift.wasm 100000000 1",
160
+ "wall_seconds": [
161
+ 1.257242584,
162
+ 1.259673667,
163
+ 1.261077917,
164
+ 1.28576025,
165
+ 1.305449958,
166
+ 1.312404667,
167
+ 1.258483,
168
+ 1.326364167,
169
+ 1.285188458
170
+ ],
171
+ "peak_rss_bytes": [
172
+ 10092544.0,
173
+ 10092544.0,
174
+ 10092544.0,
175
+ 10092544.0,
176
+ 10092544.0,
177
+ 10092544.0,
178
+ 10092544.0,
179
+ 10092544.0,
180
+ 10092544.0
181
+ ]
182
+ }
183
+ },
184
+ "match": "Match"
185
+ },
186
+ {
187
+ "name": "splitmix64",
188
+ "engines": {
189
+ "wardite": {
190
+ "command": "build/wardite --new-engine --no-wasi --invoke splitmix64 -- build/rust/wasm32-unknown-unknown/release/examples/splitmix64.wasm 10000000 1",
191
+ "wall_seconds": [
192
+ 1.570111875,
193
+ 1.5788044170000002,
194
+ 1.559501041,
195
+ 1.7769834580000001,
196
+ 1.564764459,
197
+ 1.55620025,
198
+ 1.556899542,
199
+ 1.561287667,
200
+ 1.549442167
201
+ ],
202
+ "peak_rss_bytes": [
203
+ 6373376.0,
204
+ 6389760.0,
205
+ 6389760.0,
206
+ 6373376.0,
207
+ 6389760.0,
208
+ 6389760.0,
209
+ 6389760.0,
210
+ 6389760.0,
211
+ 6389760.0
212
+ ]
213
+ },
214
+ "wasmtime": {
215
+ "command": "wasmtime run --invoke splitmix64 -- build/rust/wasm32-unknown-unknown/release/examples/splitmix64.wasm 10000000 1",
216
+ "wall_seconds": [
217
+ 0.021506917,
218
+ 0.021939375,
219
+ 0.021980417000000002,
220
+ 0.021614125,
221
+ 0.022301,
222
+ 0.022167708,
223
+ 0.027226542000000003,
224
+ 0.023698042000000002,
225
+ 0.022352375
226
+ ],
227
+ "peak_rss_bytes": [
228
+ 12861440.0,
229
+ 12877824.0,
230
+ 12861440.0,
231
+ 12926976.0,
232
+ 12845056.0,
233
+ 12877824.0,
234
+ 12861440.0,
235
+ 12894208.0,
236
+ 12828672.0
237
+ ]
238
+ },
239
+ "iwasm": {
240
+ "command": "iwasm --interp -f splitmix64 build/rust/wasm32-unknown-unknown/release/examples/splitmix64.wasm 10000000 1",
241
+ "wall_seconds": [
242
+ 0.12371725,
243
+ 0.122399084,
244
+ 0.12418020800000001,
245
+ 0.12129575000000001,
246
+ 0.121493417,
247
+ 0.12235933300000001,
248
+ 0.158094708,
249
+ 0.123117708,
250
+ 0.12940004200000002
251
+ ],
252
+ "peak_rss_bytes": [
253
+ 10092544.0,
254
+ 10092544.0,
255
+ 10092544.0,
256
+ 10092544.0,
257
+ 10092544.0,
258
+ 10092544.0,
259
+ 10092544.0,
260
+ 10092544.0,
261
+ 10092544.0
262
+ ]
263
+ }
264
+ },
265
+ "match": "Match"
266
+ },
267
+ {
268
+ "name": "mandelbrot-f32",
269
+ "engines": {
270
+ "wardite": {
271
+ "command": "build/wardite --new-engine --no-wasi --invoke mandelbrot_f32 -- build/rust/wasm32-unknown-unknown/release/examples/mandelbrot.wasm 200 150 100",
272
+ "wall_seconds": [
273
+ 2.3156005840000002,
274
+ 2.317783,
275
+ 2.2714895,
276
+ 2.344528375,
277
+ 2.321355292,
278
+ 2.329134125,
279
+ 2.382968708,
280
+ 2.341221958,
281
+ 2.319313708
282
+ ],
283
+ "peak_rss_bytes": [
284
+ 8224768.0,
285
+ 8224768.0,
286
+ 8208384.0,
287
+ 8208384.0,
288
+ 8224768.0,
289
+ 8208384.0,
290
+ 8208384.0,
291
+ 8208384.0,
292
+ 8224768.0
293
+ ]
294
+ },
295
+ "wasmtime": {
296
+ "command": "wasmtime run --invoke mandelbrot_f32 -- build/rust/wasm32-unknown-unknown/release/examples/mandelbrot.wasm 200 150 100",
297
+ "wall_seconds": [
298
+ 0.015257875,
299
+ 0.015346917000000002,
300
+ 0.015562667,
301
+ 0.015411083,
302
+ 0.015853583,
303
+ 0.015785625,
304
+ 0.015611417,
305
+ 0.015508000000000001,
306
+ 0.016025333000000003
307
+ ],
308
+ "peak_rss_bytes": [
309
+ 12926976.0,
310
+ 12877824.0,
311
+ 12894208.0,
312
+ 12861440.0,
313
+ 12926976.0,
314
+ 12861440.0,
315
+ 12926976.0,
316
+ 12845056.0,
317
+ 12877824.0
318
+ ]
319
+ },
320
+ "iwasm": {
321
+ "command": "iwasm --interp -f mandelbrot_f32 build/rust/wasm32-unknown-unknown/release/examples/mandelbrot.wasm 200 150 100",
322
+ "wall_seconds": [
323
+ 0.02438575,
324
+ 0.023706208000000003,
325
+ 0.024520208,
326
+ 0.023483,
327
+ 0.024330833000000003,
328
+ 0.023366625000000002,
329
+ 0.023603292,
330
+ 0.02392775,
331
+ 0.02390925
332
+ ],
333
+ "peak_rss_bytes": [
334
+ 10092544.0,
335
+ 10092544.0,
336
+ 10092544.0,
337
+ 10092544.0,
338
+ 10092544.0,
339
+ 10092544.0,
340
+ 10092544.0,
341
+ 10092544.0,
342
+ 10092544.0
343
+ ]
344
+ }
345
+ },
346
+ "match": "Match"
347
+ },
348
+ {
349
+ "name": "mandelbrot-f64",
350
+ "engines": {
351
+ "wardite": {
352
+ "command": "build/wardite --new-engine --no-wasi --invoke mandelbrot_f64 -- build/rust/wasm32-unknown-unknown/release/examples/mandelbrot.wasm 200 150 100",
353
+ "wall_seconds": [
354
+ 2.344854375,
355
+ 2.397242167,
356
+ 2.322938292,
357
+ 2.3804614170000002,
358
+ 2.359649,
359
+ 2.366647542,
360
+ 2.407136958,
361
+ 2.350791333,
362
+ 2.407118042
363
+ ],
364
+ "peak_rss_bytes": [
365
+ 8224768.0,
366
+ 8224768.0,
367
+ 8224768.0,
368
+ 8257536.0,
369
+ 8224768.0,
370
+ 8241152.0,
371
+ 8241152.0,
372
+ 8241152.0,
373
+ 8241152.0
374
+ ]
375
+ },
376
+ "wasmtime": {
377
+ "command": "wasmtime run --invoke mandelbrot_f64 -- build/rust/wasm32-unknown-unknown/release/examples/mandelbrot.wasm 200 150 100",
378
+ "wall_seconds": [
379
+ 0.014187375,
380
+ 0.014037458000000001,
381
+ 0.014248125,
382
+ 0.014659625,
383
+ 0.014649459,
384
+ 0.014606625000000002,
385
+ 0.015384875000000001,
386
+ 0.014596833000000002,
387
+ 0.01485
388
+ ],
389
+ "peak_rss_bytes": [
390
+ 12926976.0,
391
+ 12845056.0,
392
+ 12861440.0,
393
+ 12877824.0,
394
+ 12845056.0,
395
+ 12861440.0,
396
+ 12877824.0,
397
+ 12894208.0,
398
+ 12861440.0
399
+ ]
400
+ },
401
+ "iwasm": {
402
+ "command": "iwasm --interp -f mandelbrot_f64 build/rust/wasm32-unknown-unknown/release/examples/mandelbrot.wasm 200 150 100",
403
+ "wall_seconds": [
404
+ 0.022116959000000002,
405
+ 0.022335625,
406
+ 0.022106542,
407
+ 0.02225925,
408
+ 0.022331625,
409
+ 0.022361709,
410
+ 0.022232750000000003,
411
+ 0.022359208000000002,
412
+ 0.021838125
413
+ ],
414
+ "peak_rss_bytes": [
415
+ 10092544.0,
416
+ 10092544.0,
417
+ 10092544.0,
418
+ 10092544.0,
419
+ 10092544.0,
420
+ 10092544.0,
421
+ 10092544.0,
422
+ 10092544.0,
423
+ 10092544.0
424
+ ]
425
+ }
426
+ },
427
+ "match": "Match"
428
+ },
429
+ {
430
+ "name": "monte-carlo-pi",
431
+ "engines": {
432
+ "wardite": {
433
+ "command": "build/wardite --new-engine --no-wasi --invoke monte_carlo_pi -- build/rust/wasm32-unknown-unknown/release/examples/monte_carlo_pi.wasm 1000000 1",
434
+ "wall_seconds": [
435
+ 2.44721125,
436
+ 2.435109,
437
+ 2.433202583,
438
+ 2.472564958,
439
+ 2.5175280410000003,
440
+ 2.4719807080000002,
441
+ 2.458311958,
442
+ 2.4461507080000002,
443
+ 2.476552666
444
+ ],
445
+ "peak_rss_bytes": [
446
+ 7995392.0,
447
+ 7979008.0,
448
+ 7995392.0,
449
+ 7995392.0,
450
+ 7995392.0,
451
+ 7995392.0,
452
+ 7995392.0,
453
+ 7995392.0,
454
+ 7979008.0
455
+ ]
456
+ },
457
+ "wasmtime": {
458
+ "command": "wasmtime run --invoke monte_carlo_pi -- build/rust/wasm32-unknown-unknown/release/examples/monte_carlo_pi.wasm 1000000 1",
459
+ "wall_seconds": [
460
+ 0.014007167000000001,
461
+ 0.014781500000000001,
462
+ 0.014803292000000001,
463
+ 0.014060041,
464
+ 0.014602333,
465
+ 0.014440291000000001,
466
+ 0.015254541000000002,
467
+ 0.014660042000000002,
468
+ 0.014490208000000001
469
+ ],
470
+ "peak_rss_bytes": [
471
+ 12959744.0,
472
+ 12877824.0,
473
+ 12910592.0,
474
+ 12861440.0,
475
+ 12926976.0,
476
+ 12894208.0,
477
+ 12976128.0,
478
+ 12877824.0,
479
+ 12894208.0
480
+ ]
481
+ },
482
+ "iwasm": {
483
+ "command": "iwasm --interp -f monte_carlo_pi build/rust/wasm32-unknown-unknown/release/examples/monte_carlo_pi.wasm 1000000 1",
484
+ "wall_seconds": [
485
+ 0.055443791000000006,
486
+ 0.055379458000000006,
487
+ 0.056186958,
488
+ 0.055178000000000005,
489
+ 0.055646125000000005,
490
+ 0.054669791,
491
+ 0.059251750000000006,
492
+ 0.057118291,
493
+ 0.05493975
494
+ ],
495
+ "peak_rss_bytes": [
496
+ 10108928.0,
497
+ 10108928.0,
498
+ 10108928.0,
499
+ 10108928.0,
500
+ 10108928.0,
501
+ 10108928.0,
502
+ 10108928.0,
503
+ 10108928.0,
504
+ 10108928.0
505
+ ]
506
+ }
507
+ },
508
+ "match": "Match (iwasm floats compared at 7 significant digits)"
509
+ },
510
+ {
511
+ "name": "crc8-stream",
512
+ "engines": {
513
+ "wardite": {
514
+ "command": "build/wardite --new-engine --no-wasi --invoke crc8_stream -- build/rust/wasm32-unknown-unknown/release/examples/crc8_stream.wasm 4096 0",
515
+ "wall_seconds": [
516
+ 0.524075375,
517
+ 0.528347125,
518
+ 0.532278875,
519
+ 0.532240583,
520
+ 0.5315556250000001,
521
+ 0.531701792,
522
+ 0.5303973750000001,
523
+ 0.533668125,
524
+ 0.5608167500000001
525
+ ],
526
+ "peak_rss_bytes": [
527
+ 6340608.0,
528
+ 6324224.0,
529
+ 6307840.0,
530
+ 6340608.0,
531
+ 6340608.0,
532
+ 6340608.0,
533
+ 6307840.0,
534
+ 6340608.0,
535
+ 6340608.0
536
+ ]
537
+ },
538
+ "wasmtime": {
539
+ "command": "wasmtime run --invoke crc8_stream -- build/rust/wasm32-unknown-unknown/release/examples/crc8_stream.wasm 4096 0",
540
+ "wall_seconds": [
541
+ 0.048760625,
542
+ 0.048657125,
543
+ 0.048532875,
544
+ 0.048763583000000006,
545
+ 0.048532541000000005,
546
+ 0.048670750000000006,
547
+ 0.050247666,
548
+ 0.050587417,
549
+ 0.049862625
550
+ ],
551
+ "peak_rss_bytes": [
552
+ 12976128.0,
553
+ 12992512.0,
554
+ 12877824.0,
555
+ 12959744.0,
556
+ 12926976.0,
557
+ 12894208.0,
558
+ 12943360.0,
559
+ 12959744.0,
560
+ 12992512.0
561
+ ]
562
+ },
563
+ "iwasm": {
564
+ "command": "iwasm --interp -f crc8_stream build/rust/wasm32-unknown-unknown/release/examples/crc8_stream.wasm 4096 0",
565
+ "wall_seconds": [
566
+ 0.08306325,
567
+ 0.08347,
568
+ 0.08288287500000001,
569
+ 0.08237404200000001,
570
+ 0.082870417,
571
+ 0.082468125,
572
+ 0.082739667,
573
+ 0.136092875,
574
+ 0.08300875
575
+ ],
576
+ "peak_rss_bytes": [
577
+ 10141696.0,
578
+ 10141696.0,
579
+ 10141696.0,
580
+ 10141696.0,
581
+ 10141696.0,
582
+ 10141696.0,
583
+ 10141696.0,
584
+ 10141696.0,
585
+ 10141696.0
586
+ ]
587
+ }
588
+ },
589
+ "match": "Match"
590
+ },
591
+ {
592
+ "name": "crc8-stream-grown",
593
+ "engines": {
594
+ "wardite": {
595
+ "command": "build/wardite --new-engine --no-wasi --invoke crc8_stream -- build/rust/wasm32-unknown-unknown/release/examples/crc8_stream.wasm 4096 1",
596
+ "wall_seconds": [
597
+ 0.667669625,
598
+ 0.663263,
599
+ 0.6535159580000001,
600
+ 0.653537,
601
+ 0.661174208,
602
+ 0.657250792,
603
+ 0.6622145420000001,
604
+ 0.656702333,
605
+ 0.655396167
606
+ ],
607
+ "peak_rss_bytes": [
608
+ 8552448.0,
609
+ 8552448.0,
610
+ 8519680.0,
611
+ 8552448.0,
612
+ 8552448.0,
613
+ 8552448.0,
614
+ 8552448.0,
615
+ 8552448.0,
616
+ 8519680.0
617
+ ]
618
+ },
619
+ "wasmtime": {
620
+ "command": "wasmtime run --invoke crc8_stream -- build/rust/wasm32-unknown-unknown/release/examples/crc8_stream.wasm 4096 1",
621
+ "wall_seconds": [
622
+ 0.048235958,
623
+ 0.0480345,
624
+ 0.048397958000000005,
625
+ 0.048463375,
626
+ 0.047685000000000005,
627
+ 0.047675416000000005,
628
+ 0.048925500000000004,
629
+ 0.049566291000000005,
630
+ 0.048986791
631
+ ],
632
+ "peak_rss_bytes": [
633
+ 12926976.0,
634
+ 12926976.0,
635
+ 12926976.0,
636
+ 12959744.0,
637
+ 12976128.0,
638
+ 12992512.0,
639
+ 12959744.0,
640
+ 12910592.0,
641
+ 12976128.0
642
+ ]
643
+ },
644
+ "iwasm": {
645
+ "command": "iwasm --interp -f crc8_stream build/rust/wasm32-unknown-unknown/release/examples/crc8_stream.wasm 4096 1",
646
+ "wall_seconds": [
647
+ 0.08373245800000001,
648
+ 0.137322208,
649
+ 0.082743709,
650
+ 0.08277000000000001,
651
+ 0.08243829100000001,
652
+ 0.136333958,
653
+ 0.083159917,
654
+ 0.11532625,
655
+ 0.101569959
656
+ ],
657
+ "peak_rss_bytes": [
658
+ 10141696.0,
659
+ 10141696.0,
660
+ 10141696.0,
661
+ 10141696.0,
662
+ 10141696.0,
663
+ 10141696.0,
664
+ 10141696.0,
665
+ 10141696.0,
666
+ 10141696.0
667
+ ]
668
+ }
669
+ },
670
+ "match": "Match"
671
+ },
672
+ {
673
+ "name": "base64-encode-empty",
674
+ "engines": {
675
+ "wardite": {
676
+ "command": "build/wardite --new-engine -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
677
+ "wall_seconds": [
678
+ 0.043317084000000006,
679
+ 0.041209542,
680
+ 0.041497417,
681
+ 0.040937625000000005,
682
+ 0.041269667,
683
+ 0.040936875000000005,
684
+ 0.040789042000000005,
685
+ 0.042613750000000006,
686
+ 0.041539917
687
+ ],
688
+ "peak_rss_bytes": [
689
+ 55132160.0,
690
+ 55132160.0,
691
+ 55132160.0,
692
+ 55115776.0,
693
+ 55132160.0,
694
+ 55132160.0,
695
+ 55115776.0,
696
+ 55164928.0,
697
+ 55115776.0
698
+ ]
699
+ },
700
+ "wasmtime": {
701
+ "command": "wasmtime run -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
702
+ "wall_seconds": [
703
+ 0.013592792000000001,
704
+ 0.013937708,
705
+ 0.013344792000000001,
706
+ 0.014010209000000001,
707
+ 0.014744666000000002,
708
+ 0.014873,
709
+ 0.015394667,
710
+ 0.014987167000000001,
711
+ 0.014354041000000001
712
+ ],
713
+ "peak_rss_bytes": [
714
+ 14925824.0,
715
+ 14876672.0,
716
+ 14958592.0,
717
+ 14909440.0,
718
+ 14925824.0,
719
+ 14893056.0,
720
+ 14909440.0,
721
+ 14958592.0,
722
+ 14974976.0
723
+ ]
724
+ },
725
+ "iwasm": {
726
+ "command": "iwasm --interp build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
727
+ "wall_seconds": [
728
+ 0.012205208,
729
+ 0.011966541,
730
+ 0.013333250000000001,
731
+ 0.014511667,
732
+ 0.013445709,
733
+ 0.011897541000000001,
734
+ 0.012333833,
735
+ 0.012044583000000001,
736
+ 0.013264000000000001
737
+ ],
738
+ "peak_rss_bytes": [
739
+ 11042816.0,
740
+ 11042816.0,
741
+ 11026432.0,
742
+ 11059200.0,
743
+ 11042816.0,
744
+ 11042816.0,
745
+ 11026432.0,
746
+ 11042816.0,
747
+ 11026432.0
748
+ ]
749
+ }
750
+ },
751
+ "match": "Match",
752
+ "wardite_load_seconds": [
753
+ 0.033370018005371094,
754
+ 0.03349113464355469,
755
+ 0.030360937118530273,
756
+ 0.03333926200866699,
757
+ 0.03493094444274902,
758
+ 0.03194999694824219,
759
+ 0.03323698043823242,
760
+ 0.03399920463562012,
761
+ 0.03351616859436035
762
+ ],
763
+ "mir_report": "dispatches=2731 copies=540 register_reads=3768 register_writes=1953 function_entries=120 frames_created=50 host_calls=4 indirect_calls=3",
764
+ "mir_opcode_counts": {
765
+ "COPY": 540,
766
+ "I32_ADD": 332,
767
+ "I32_SUB": 83,
768
+ "I32_MUL": 4,
769
+ "I32_XOR": 4,
770
+ "I32_SHL": 11,
771
+ "I32_SHR_U": 22,
772
+ "I32_EQZ": 79,
773
+ "BR": 48,
774
+ "BR_IF": 324,
775
+ "CALL": 112,
776
+ "RETURN": 116,
777
+ "BR_IF_ZERO": 19,
778
+ "I32_EQ": 38,
779
+ "I32_NE": 35,
780
+ "I32_LTS": 17,
781
+ "I32_LTU": 25,
782
+ "I32_GTU": 35,
783
+ "I32_LEU": 22,
784
+ "I32_GES": 1,
785
+ "I32_GEU": 12,
786
+ "I32_DIV_U": 2,
787
+ "I32_REM_U": 1,
788
+ "I32_AND": 89,
789
+ "I32_OR": 37,
790
+ "I32_ROTL": 5,
791
+ "I32_EXTEND8_S": 2,
792
+ "GLOBAL_GET": 45,
793
+ "GLOBAL_SET": 86,
794
+ "I32_LOAD": 182,
795
+ "I32_LOAD8_S": 13,
796
+ "I32_LOAD8_U": 30,
797
+ "I32_LOAD16_U": 3,
798
+ "I32_STORE": 252,
799
+ "I32_STORE8": 32,
800
+ "I32_STORE16": 3,
801
+ "MEMORY_COPY": 2,
802
+ "CALL_HOST": 4,
803
+ "CALL_INDIRECT": 3,
804
+ "I32_WRAP_I64": 5,
805
+ "I64_EQ": 5,
806
+ "I64_NE": 4,
807
+ "I64_AND": 2,
808
+ "I64_SHR_U": 3,
809
+ "I64_ADD": 1,
810
+ "I64_LOAD": 16,
811
+ "I64_STORE": 25
812
+ }
813
+ },
814
+ {
815
+ "name": "base64-encode",
816
+ "engines": {
817
+ "wardite": {
818
+ "command": "build/wardite --new-engine -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
819
+ "wall_seconds": [
820
+ 0.09416450000000001,
821
+ 0.09327162500000001,
822
+ 0.09472125,
823
+ 0.09409025,
824
+ 0.09365358400000001,
825
+ 0.094387541,
826
+ 0.09381708400000001,
827
+ 0.093722833,
828
+ 0.09302995800000001
829
+ ],
830
+ "peak_rss_bytes": [
831
+ 63733760.0,
832
+ 63782912.0,
833
+ 63733760.0,
834
+ 63717376.0,
835
+ 63700992.0,
836
+ 63750144.0,
837
+ 63733760.0,
838
+ 63733760.0,
839
+ 63782912.0
840
+ ]
841
+ },
842
+ "wasmtime": {
843
+ "command": "wasmtime run -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
844
+ "wall_seconds": [
845
+ 0.015562458000000001,
846
+ 0.01517825,
847
+ 0.015305750000000002,
848
+ 0.016432667,
849
+ 0.015545459000000001,
850
+ 0.015088750000000001,
851
+ 0.015955167,
852
+ 0.016192333,
853
+ 0.015946667
854
+ ],
855
+ "peak_rss_bytes": [
856
+ 16154624.0,
857
+ 16121856.0,
858
+ 16089088.0,
859
+ 16187392.0,
860
+ 16171008.0,
861
+ 16138240.0,
862
+ 16138240.0,
863
+ 16154624.0,
864
+ 16138240.0
865
+ ]
866
+ },
867
+ "iwasm": {
868
+ "command": "iwasm --interp build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
869
+ "wall_seconds": [
870
+ 0.016013541000000003,
871
+ 0.016597,
872
+ 0.01644,
873
+ 0.016299417,
874
+ 0.017101292,
875
+ 0.016285125,
876
+ 0.016899291,
877
+ 0.017191625000000002,
878
+ 0.017232375
879
+ ],
880
+ "peak_rss_bytes": [
881
+ 12140544.0,
882
+ 12156928.0,
883
+ 12156928.0,
884
+ 12173312.0,
885
+ 12156928.0,
886
+ 12173312.0,
887
+ 12156928.0,
888
+ 12173312.0,
889
+ 12189696.0
890
+ ]
891
+ }
892
+ },
893
+ "match": "Match",
894
+ "wardite_load_seconds": [
895
+ 0.03017592430114746,
896
+ 0.029963016510009766,
897
+ 0.029618024826049805,
898
+ 0.02977919578552246,
899
+ 0.029896974563598633,
900
+ 0.030118942260742188,
901
+ 0.028999805450439453,
902
+ 0.030073165893554688,
903
+ 0.029356718063354492
904
+ ],
905
+ "mir_report": "dispatches=4322082 copies=460627 register_reads=7274183 register_writes=3850622 function_entries=252 frames_created=59 host_calls=19 indirect_calls=3",
906
+ "mir_opcode_counts": {
907
+ "COPY": 460627,
908
+ "I32_ADD": 907330,
909
+ "I32_SUB": 249,
910
+ "I32_MUL": 28,
911
+ "I32_XOR": 11,
912
+ "I32_SHL": 86,
913
+ "I32_SHR_U": 87443,
914
+ "I32_EQZ": 212,
915
+ "BR": 131,
916
+ "BR_IF": 121122,
917
+ "CALL": 229,
918
+ "RETURN": 233,
919
+ "BR_IF_ZERO": 134,
920
+ "I32_EQ": 62,
921
+ "I32_NE": 122,
922
+ "I32_LTS": 18,
923
+ "I32_LTU": 43856,
924
+ "I32_GTU": 21983,
925
+ "I32_LES": 5,
926
+ "I32_LEU": 11008,
927
+ "I32_GES": 1,
928
+ "I32_GEU": 37,
929
+ "I32_CLZ": 13,
930
+ "I32_CTZ": 2,
931
+ "I32_DIV_U": 7,
932
+ "I32_REM_U": 1,
933
+ "I32_AND": 306138,
934
+ "I32_OR": 43819,
935
+ "I32_ROTL": 12,
936
+ "I32_EXTEND8_S": 3,
937
+ "GLOBAL_GET": 84,
938
+ "GLOBAL_SET": 164,
939
+ "I32_LOAD": 87916,
940
+ "I32_LOAD8_S": 13,
941
+ "I32_LOAD8_U": 349581,
942
+ "I32_LOAD16_U": 3,
943
+ "I32_STORE": 555,
944
+ "I32_STORE8": 349560,
945
+ "I32_STORE16": 3,
946
+ "MEMORY_GROW": 5,
947
+ "MEMORY_COPY": 9,
948
+ "MEMORY_FILL": 1,
949
+ "CALL_HOST": 19,
950
+ "CALL_INDIRECT": 3,
951
+ "I32_WRAP_I64": 305853,
952
+ "I64_EQ": 5,
953
+ "I64_NE": 4,
954
+ "I64_EXTEND_I32_U": 32,
955
+ "I64_AND": 262130,
956
+ "I64_OR": 305816,
957
+ "I64_SHL": 174752,
958
+ "I64_SHR_U": 436899,
959
+ "I64_ADD": 1,
960
+ "I64_MUL": 16,
961
+ "I64_LOAD": 43704,
962
+ "I64_STORE": 32
963
+ }
964
+ },
965
+ {
966
+ "name": "base64-encode-4m",
967
+ "engines": {
968
+ "wardite": {
969
+ "command": "build/wardite --new-engine -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
970
+ "wall_seconds": [
971
+ 0.837818166,
972
+ 0.838472875,
973
+ 0.838267583,
974
+ 0.838827333,
975
+ 0.83996775,
976
+ 0.8378565,
977
+ 0.8371979580000001,
978
+ 0.8421717500000001,
979
+ 0.8347342090000001
980
+ ],
981
+ "peak_rss_bytes": [
982
+ 122699776.0,
983
+ 122617856.0,
984
+ 122634240.0,
985
+ 122634240.0,
986
+ 122667008.0,
987
+ 122617856.0,
988
+ 122650624.0,
989
+ 122650624.0,
990
+ 122683392.0
991
+ ]
992
+ },
993
+ "wasmtime": {
994
+ "command": "wasmtime run -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
995
+ "wall_seconds": [
996
+ 0.045602834,
997
+ 0.046334209,
998
+ 0.047550834,
999
+ 0.046296333,
1000
+ 0.044552042,
1001
+ 0.044452709,
1002
+ 0.043953000000000006,
1003
+ 0.043928083,
1004
+ 0.044554416
1005
+ ],
1006
+ "peak_rss_bytes": [
1007
+ 33177600.0,
1008
+ 33226752.0,
1009
+ 33193984.0,
1010
+ 33177600.0,
1011
+ 33144832.0,
1012
+ 33210368.0,
1013
+ 33226752.0,
1014
+ 33193984.0,
1015
+ 33177600.0
1016
+ ]
1017
+ },
1018
+ "iwasm": {
1019
+ "command": "iwasm --interp build/rust/wasm32-wasip1/release/examples/base64_codec.wasm encode",
1020
+ "wall_seconds": [
1021
+ 0.07472125,
1022
+ 0.074871333,
1023
+ 0.07512062500000001,
1024
+ 0.075254333,
1025
+ 0.074599917,
1026
+ 0.074992709,
1027
+ 0.07571504200000001,
1028
+ 0.075499334,
1029
+ 0.07545937500000001
1030
+ ],
1031
+ "peak_rss_bytes": [
1032
+ 29179904.0,
1033
+ 29212672.0,
1034
+ 29196288.0,
1035
+ 29212672.0,
1036
+ 29179904.0,
1037
+ 29212672.0,
1038
+ 29179904.0,
1039
+ 29229056.0,
1040
+ 29212672.0
1041
+ ]
1042
+ }
1043
+ },
1044
+ "match": "Match",
1045
+ "wardite_load_seconds": [
1046
+ 0.028334856033325195,
1047
+ 0.028348922729492188,
1048
+ 0.029688119888305664,
1049
+ 0.02851700782775879,
1050
+ 0.028161048889160156,
1051
+ 0.02974390983581543,
1052
+ 0.029610872268676758,
1053
+ 0.028951644897460938,
1054
+ 0.02884697914123535
1055
+ ],
1056
+ "mir_report": "dispatches=69041163 copies=7342454 register_reads=116231022 register_writes=61524100 function_entries=292 frames_created=59 host_calls=23 indirect_calls=3",
1057
+ "mir_opcode_counts": {
1058
+ "COPY": 7342454,
1059
+ "I32_ADD": 14506256,
1060
+ "I32_SUB": 321,
1061
+ "I32_MUL": 40,
1062
+ "I32_XOR": 15,
1063
+ "I32_SHL": 112,
1064
+ "I32_SHR_U": 1398178,
1065
+ "I32_EQZ": 276,
1066
+ "BR": 169,
1067
+ "BR_IF": 1923651,
1068
+ "CALL": 265,
1069
+ "RETURN": 269,
1070
+ "BR_IF_ZERO": 170,
1071
+ "I32_EQ": 78,
1072
+ "I32_NE": 154,
1073
+ "I32_LTS": 22,
1074
+ "I32_LTU": 699269,
1075
+ "I32_GTU": 349706,
1076
+ "I32_LES": 9,
1077
+ "I32_LEU": 174870,
1078
+ "I32_GES": 1,
1079
+ "I32_GEU": 42,
1080
+ "I32_CLZ": 21,
1081
+ "I32_CTZ": 2,
1082
+ "I32_DIV_U": 11,
1083
+ "I32_REM_U": 1,
1084
+ "I32_AND": 4893768,
1085
+ "I32_OR": 699207,
1086
+ "I32_ROTL": 16,
1087
+ "I32_EXTEND8_S": 3,
1088
+ "GLOBAL_GET": 96,
1089
+ "GLOBAL_SET": 188,
1090
+ "I32_LOAD": 1398820,
1091
+ "I32_LOAD8_S": 17,
1092
+ "I32_LOAD8_U": 5592476,
1093
+ "I32_LOAD16_U": 3,
1094
+ "I32_STORE": 683,
1095
+ "I32_STORE8": 5592460,
1096
+ "I32_STORE16": 3,
1097
+ "MEMORY_GROW": 9,
1098
+ "MEMORY_COPY": 13,
1099
+ "MEMORY_FILL": 1,
1100
+ "CALL_HOST": 23,
1101
+ "CALL_INDIRECT": 3,
1102
+ "I32_WRAP_I64": 4893409,
1103
+ "I64_EQ": 5,
1104
+ "I64_NE": 4,
1105
+ "I64_EXTEND_I32_U": 40,
1106
+ "I64_AND": 4194314,
1107
+ "I64_OR": 4893364,
1108
+ "I64_SHL": 2796208,
1109
+ "I64_SHR_U": 6990543,
1110
+ "I64_ADD": 1,
1111
+ "I64_MUL": 20,
1112
+ "I64_LOAD": 699068,
1113
+ "I64_STORE": 36
1114
+ }
1115
+ },
1116
+ {
1117
+ "name": "base64-decode",
1118
+ "engines": {
1119
+ "wardite": {
1120
+ "command": "build/wardite --new-engine -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm decode",
1121
+ "wall_seconds": [
1122
+ 0.093108041,
1123
+ 0.090788667,
1124
+ 0.08829300000000001,
1125
+ 0.090298708,
1126
+ 0.08848175000000001,
1127
+ 0.128221167,
1128
+ 0.091055042,
1129
+ 0.08894787500000001,
1130
+ 0.089202583
1131
+ ],
1132
+ "peak_rss_bytes": [
1133
+ 61095936.0,
1134
+ 61128704.0,
1135
+ 61128704.0,
1136
+ 61145088.0,
1137
+ 61177856.0,
1138
+ 61554688.0,
1139
+ 61128704.0,
1140
+ 61112320.0,
1141
+ 61095936.0
1142
+ ]
1143
+ },
1144
+ "wasmtime": {
1145
+ "command": "wasmtime run -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm decode",
1146
+ "wall_seconds": [
1147
+ 0.017448917,
1148
+ 0.017743458,
1149
+ 0.018110042,
1150
+ 0.017625250000000002,
1151
+ 0.018590042,
1152
+ 0.01881275,
1153
+ 0.018776792,
1154
+ 0.019330166000000003,
1155
+ 0.018549333
1156
+ ],
1157
+ "peak_rss_bytes": [
1158
+ 15892480.0,
1159
+ 15859712.0,
1160
+ 15843328.0,
1161
+ 15843328.0,
1162
+ 15859712.0,
1163
+ 15892480.0,
1164
+ 15876096.0,
1165
+ 15859712.0,
1166
+ 15794176.0
1167
+ ]
1168
+ },
1169
+ "iwasm": {
1170
+ "command": "iwasm --interp build/rust/wasm32-wasip1/release/examples/base64_codec.wasm decode",
1171
+ "wall_seconds": [
1172
+ 0.017341708,
1173
+ 0.016998583,
1174
+ 0.017912625,
1175
+ 0.016924334000000003,
1176
+ 0.016585625,
1177
+ 0.016573208000000002,
1178
+ 0.016552125,
1179
+ 0.017535250000000002,
1180
+ 0.016044667000000002
1181
+ ],
1182
+ "peak_rss_bytes": [
1183
+ 11845632.0,
1184
+ 11862016.0,
1185
+ 11878400.0,
1186
+ 11878400.0,
1187
+ 11862016.0,
1188
+ 11878400.0,
1189
+ 11845632.0,
1190
+ 11894784.0,
1191
+ 11878400.0
1192
+ ]
1193
+ }
1194
+ },
1195
+ "match": "Match",
1196
+ "wardite_load_seconds": [
1197
+ 0.030969858169555664,
1198
+ 0.03266000747680664,
1199
+ 0.030169248580932617,
1200
+ 0.030066967010498047,
1201
+ 0.030098915100097656,
1202
+ 0.029597043991088867,
1203
+ 0.032610177993774414,
1204
+ 0.032028913497924805,
1205
+ 0.03126883506774902
1206
+ ],
1207
+ "mir_report": "dispatches=4934288 copies=1236240 register_reads=7559086 register_writes=4473730 function_entries=247 frames_created=58 host_calls=20 indirect_calls=3",
1208
+ "mir_opcode_counts": {
1209
+ "COPY": 1236240,
1210
+ "I32_ADD": 809108,
1211
+ "I32_SUB": 299,
1212
+ "I32_MUL": 31,
1213
+ "I32_XOR": 85,
1214
+ "I32_SHL": 94,
1215
+ "I32_SHR_U": 64,
1216
+ "I32_EQZ": 206,
1217
+ "BR": 127,
1218
+ "BR_IF": 372381,
1219
+ "CALL": 223,
1220
+ "RETURN": 227,
1221
+ "BR_IF_ZERO": 135,
1222
+ "I32_EQ": 116,
1223
+ "I32_NE": 21988,
1224
+ "I32_LTS": 16,
1225
+ "I32_LTU": 158,
1226
+ "I32_GTU": 138,
1227
+ "I32_LES": 4,
1228
+ "I32_LEU": 109,
1229
+ "I32_GEU": 25,
1230
+ "I32_CLZ": 12,
1231
+ "I32_CTZ": 2,
1232
+ "I32_DIV_U": 6,
1233
+ "I32_AND": 349,
1234
+ "I32_OR": 192,
1235
+ "I32_ROTL": 12,
1236
+ "I32_ROTR": 10,
1237
+ "I32_EXTEND8_S": 2,
1238
+ "GLOBAL_GET": 82,
1239
+ "GLOBAL_SET": 160,
1240
+ "I32_LOAD": 576,
1241
+ "I32_LOAD8_S": 13,
1242
+ "I32_LOAD8_U": 349595,
1243
+ "I32_LOAD16_U": 4,
1244
+ "I32_STORE": 540,
1245
+ "I32_STORE8": 40,
1246
+ "I32_STORE16": 8,
1247
+ "MEMORY_GROW": 4,
1248
+ "MEMORY_COPY": 9,
1249
+ "MEMORY_FILL": 1,
1250
+ "CALL_HOST": 20,
1251
+ "CALL_INDIRECT": 3,
1252
+ "I32_WRAP_I64": 37,
1253
+ "I64_EQ": 305821,
1254
+ "I64_NE": 43692,
1255
+ "I64_EXTEND_I32_U": 32,
1256
+ "I64_AND": 218442,
1257
+ "I64_OR": 480568,
1258
+ "I64_SHL": 436880,
1259
+ "I64_SHR_U": 218459,
1260
+ "I64_ADD": 1,
1261
+ "I64_MUL": 16,
1262
+ "I64_LOAD": 15,
1263
+ "I64_LOAD8_U": 349504,
1264
+ "I64_STORE": 31,
1265
+ "I64_STORE16": 43688,
1266
+ "I64_STORE32": 43688
1267
+ }
1268
+ },
1269
+ {
1270
+ "name": "base64-decode-4m",
1271
+ "engines": {
1272
+ "wardite": {
1273
+ "command": "build/wardite --new-engine -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm decode",
1274
+ "wall_seconds": [
1275
+ 0.7561171250000001,
1276
+ 0.758386875,
1277
+ 0.75900325,
1278
+ 0.759412583,
1279
+ 0.760716417,
1280
+ 0.7624704590000001,
1281
+ 0.7657419160000001,
1282
+ 0.758293667,
1283
+ 0.759624166
1284
+ ],
1285
+ "peak_rss_bytes": [
1286
+ 99794944.0,
1287
+ 99778560.0,
1288
+ 99811328.0,
1289
+ 99811328.0,
1290
+ 99762176.0,
1291
+ 99762176.0,
1292
+ 99745792.0,
1293
+ 99762176.0,
1294
+ 99745792.0
1295
+ ]
1296
+ },
1297
+ "wasmtime": {
1298
+ "command": "wasmtime run -- build/rust/wasm32-wasip1/release/examples/base64_codec.wasm decode",
1299
+ "wall_seconds": [
1300
+ 0.051826042,
1301
+ 0.052776959000000005,
1302
+ 0.052952375,
1303
+ 0.052587292,
1304
+ 0.052167458,
1305
+ 0.053190042,
1306
+ 0.052764167,
1307
+ 0.053297834,
1308
+ 0.053343666000000005
1309
+ ],
1310
+ "peak_rss_bytes": [
1311
+ 28999680.0,
1312
+ 28934144.0,
1313
+ 28983296.0,
1314
+ 28950528.0,
1315
+ 28966912.0,
1316
+ 28983296.0,
1317
+ 28950528.0,
1318
+ 28999680.0,
1319
+ 28966912.0
1320
+ ]
1321
+ },
1322
+ "iwasm": {
1323
+ "command": "iwasm --interp build/rust/wasm32-wasip1/release/examples/base64_codec.wasm decode",
1324
+ "wall_seconds": [
1325
+ 0.078541917,
1326
+ 0.07831175,
1327
+ 0.08310100000000001,
1328
+ 0.078202083,
1329
+ 0.082496334,
1330
+ 0.07763325,
1331
+ 0.07739775,
1332
+ 0.07736712500000001,
1333
+ 0.077724333
1334
+ ],
1335
+ "peak_rss_bytes": [
1336
+ 24985600.0,
1337
+ 24952832.0,
1338
+ 25001984.0,
1339
+ 24969216.0,
1340
+ 25001984.0,
1341
+ 24969216.0,
1342
+ 24985600.0,
1343
+ 24952832.0,
1344
+ 24969216.0
1345
+ ]
1346
+ }
1347
+ },
1348
+ "match": "Match",
1349
+ "wardite_load_seconds": [
1350
+ 0.028710126876831055,
1351
+ 0.028512001037597656,
1352
+ 0.02852487564086914,
1353
+ 0.02852487564086914,
1354
+ 0.028618335723876953,
1355
+ 0.028778076171875,
1356
+ 0.028567075729370117,
1357
+ 0.028509855270385742,
1358
+ 0.028524160385131836
1359
+ ],
1360
+ "mir_report": "dispatches=78828412 copies=19750757 register_reads=120775723 register_writes=71486099 function_entries=287 frames_created=58 host_calls=24 indirect_calls=3",
1361
+ "mir_opcode_counts": {
1362
+ "COPY": 19750757,
1363
+ "I32_ADD": 12933464,
1364
+ "I32_SUB": 370,
1365
+ "I32_MUL": 43,
1366
+ "I32_XOR": 83,
1367
+ "I32_SHL": 114,
1368
+ "I32_SHR_U": 74,
1369
+ "I32_EQZ": 270,
1370
+ "BR": 164,
1371
+ "BR_IF": 5943241,
1372
+ "CALL": 259,
1373
+ "RETURN": 263,
1374
+ "BR_IF_ZERO": 171,
1375
+ "I32_EQ": 122,
1376
+ "I32_NE": 349693,
1377
+ "I32_LTS": 16,
1378
+ "I32_LTU": 210,
1379
+ "I32_GTU": 179,
1380
+ "I32_LES": 8,
1381
+ "I32_LEU": 133,
1382
+ "I32_GEU": 33,
1383
+ "I32_CLZ": 20,
1384
+ "I32_CTZ": 2,
1385
+ "I32_DIV_U": 10,
1386
+ "I32_AND": 441,
1387
+ "I32_OR": 215,
1388
+ "I32_ROTL": 16,
1389
+ "I32_ROTR": 4,
1390
+ "I32_EXTEND8_S": 2,
1391
+ "GLOBAL_GET": 94,
1392
+ "GLOBAL_SET": 184,
1393
+ "I32_LOAD": 756,
1394
+ "I32_LOAD8_S": 13,
1395
+ "I32_LOAD8_U": 5592487,
1396
+ "I32_LOAD16_U": 4,
1397
+ "I32_STORE": 668,
1398
+ "I32_STORE8": 37,
1399
+ "I32_STORE16": 5,
1400
+ "MEMORY_GROW": 8,
1401
+ "MEMORY_COPY": 13,
1402
+ "MEMORY_FILL": 1,
1403
+ "CALL_HOST": 24,
1404
+ "CALL_INDIRECT": 3,
1405
+ "I32_WRAP_I64": 45,
1406
+ "I64_EQ": 4893369,
1407
+ "I64_NE": 699056,
1408
+ "I64_EXTEND_I32_U": 40,
1409
+ "I64_AND": 3495262,
1410
+ "I64_OR": 7689572,
1411
+ "I64_SHL": 6990520,
1412
+ "I64_SHR_U": 3495283,
1413
+ "I64_ADD": 1,
1414
+ "I64_MUL": 20,
1415
+ "I64_LOAD": 15,
1416
+ "I64_LOAD8_U": 5592416,
1417
+ "I64_STORE": 35,
1418
+ "I64_STORE16": 699052,
1419
+ "I64_STORE32": 699052
1420
+ }
1421
+ },
1422
+ {
1423
+ "name": "png",
1424
+ "engines": {
1425
+ "wardite": {
1426
+ "command": "build/wardite --new-engine -- build/rust/wasm32-wasip1/release/examples/png_grayscale.wasm ",
1427
+ "wall_seconds": [
1428
+ 0.09908125000000001,
1429
+ 0.09806466700000001,
1430
+ 0.09824579100000001,
1431
+ 0.098850584,
1432
+ 0.0989125,
1433
+ 0.0991235,
1434
+ 0.09804104200000001,
1435
+ 0.09902229200000001,
1436
+ 0.09880975
1437
+ ],
1438
+ "peak_rss_bytes": [
1439
+ 111525888.0,
1440
+ 111493120.0,
1441
+ 111476736.0,
1442
+ 111476736.0,
1443
+ 111476736.0,
1444
+ 111460352.0,
1445
+ 111493120.0,
1446
+ 111493120.0,
1447
+ 111509504.0
1448
+ ]
1449
+ },
1450
+ "wasmtime": {
1451
+ "command": "wasmtime run -- build/rust/wasm32-wasip1/release/examples/png_grayscale.wasm ",
1452
+ "wall_seconds": [
1453
+ 0.015358042,
1454
+ 0.015538417,
1455
+ 0.015432875,
1456
+ 0.015477917,
1457
+ 0.015158084,
1458
+ 0.015462792000000001,
1459
+ 0.014880625000000001,
1460
+ 0.014953208,
1461
+ 0.016895333000000002
1462
+ ],
1463
+ "peak_rss_bytes": [
1464
+ 16826368.0,
1465
+ 16842752.0,
1466
+ 16744448.0,
1467
+ 16777216.0,
1468
+ 16728064.0,
1469
+ 16777216.0,
1470
+ 16744448.0,
1471
+ 16760832.0,
1472
+ 16744448.0
1473
+ ]
1474
+ },
1475
+ "iwasm": {
1476
+ "command": "iwasm --interp build/rust/wasm32-wasip1/release/examples/png_grayscale.wasm ",
1477
+ "wall_seconds": [
1478
+ 0.017850209000000002,
1479
+ 0.018913125000000003,
1480
+ 0.018189375,
1481
+ 0.0179455,
1482
+ 0.017830500000000003,
1483
+ 0.018584709,
1484
+ 0.018738791,
1485
+ 0.01812925,
1486
+ 0.018574
1487
+ ],
1488
+ "peak_rss_bytes": [
1489
+ 12140544.0,
1490
+ 12124160.0,
1491
+ 12140544.0,
1492
+ 12124160.0,
1493
+ 12124160.0,
1494
+ 12140544.0,
1495
+ 12140544.0,
1496
+ 12124160.0,
1497
+ 12124160.0
1498
+ ]
1499
+ }
1500
+ },
1501
+ "match": "Match",
1502
+ "wardite_load_seconds": [
1503
+ 0.06400609016418457,
1504
+ 0.0699770450592041,
1505
+ 0.06199789047241211,
1506
+ 0.06153392791748047,
1507
+ 0.06057095527648926,
1508
+ 0.06199312210083008,
1509
+ 0.06152606010437012,
1510
+ 0.061189889907836914,
1511
+ 0.06154990196228027
1512
+ ],
1513
+ "mir_report": "dispatches=3779456 copies=869964 register_reads=5892543 register_writes=3207788 function_entries=1933 frames_created=88 host_calls=14 indirect_calls=266",
1514
+ "mir_opcode_counts": {
1515
+ "COPY": 869964,
1516
+ "I32_ADD": 1143845,
1517
+ "I32_SUB": 98531,
1518
+ "I32_MUL": 198053,
1519
+ "I32_XOR": 20971,
1520
+ "I32_SHL": 14151,
1521
+ "I32_SHR_U": 13313,
1522
+ "I32_EQZ": 18601,
1523
+ "BR": 20161,
1524
+ "BR_IF": 229588,
1525
+ "CALL": 1652,
1526
+ "RETURN": 1919,
1527
+ "BR_IF_ZERO": 7032,
1528
+ "I32_EQ": 17405,
1529
+ "I32_NE": 4809,
1530
+ "I32_LTS": 780,
1531
+ "I32_LTU": 12617,
1532
+ "I32_GTS": 5,
1533
+ "I32_GTU": 39468,
1534
+ "I32_LES": 5,
1535
+ "I32_LEU": 89551,
1536
+ "I32_GEU": 9980,
1537
+ "I32_CLZ": 316,
1538
+ "I32_CTZ": 9,
1539
+ "I32_DIV_U": 67215,
1540
+ "I32_REM_U": 262,
1541
+ "I32_AND": 36381,
1542
+ "I32_OR": 19960,
1543
+ "I32_ROTL": 10,
1544
+ "I32_ROTR": 24,
1545
+ "I32_EXTEND8_S": 6,
1546
+ "GLOBAL_GET": 699,
1547
+ "GLOBAL_SET": 1394,
1548
+ "I32_LOAD": 37263,
1549
+ "I32_LOAD8_U": 405062,
1550
+ "I32_LOAD16_U": 79,
1551
+ "I32_STORE": 6455,
1552
+ "I32_STORE8": 274528,
1553
+ "I32_STORE16": 387,
1554
+ "MEMORY_GROW": 4,
1555
+ "MEMORY_COPY": 318,
1556
+ "MEMORY_FILL": 32,
1557
+ "CALL_HOST": 14,
1558
+ "CALL_INDIRECT": 266,
1559
+ "I64_EQZ": 26,
1560
+ "I32_WRAP_I64": 9158,
1561
+ "I64_EQ": 6,
1562
+ "I64_NE": 30,
1563
+ "I64_LTU": 31,
1564
+ "I64_GTU": 30,
1565
+ "I64_GEU": 1,
1566
+ "I64_EXTEND_I32_U": 13195,
1567
+ "I64_AND": 3510,
1568
+ "I64_OR": 2348,
1569
+ "I64_XOR": 3457,
1570
+ "I64_SHL": 5801,
1571
+ "I64_SHR_U": 9040,
1572
+ "I64_ADD": 63,
1573
+ "I64_SUB": 25,
1574
+ "I64_MUL": 28,
1575
+ "I64_LOAD": 33786,
1576
+ "I64_LOAD8_U": 11,
1577
+ "I64_LOAD32_U": 7,
1578
+ "I64_STORE": 35818
1579
+ }
1580
+ },
1581
+ {
1582
+ "name": "png-1024",
1583
+ "engines": {
1584
+ "wardite": {
1585
+ "command": "build/wardite --new-engine -- build/rust/wasm32-wasip1/release/examples/png_grayscale.wasm ",
1586
+ "wall_seconds": [
1587
+ 0.419772042,
1588
+ 0.41392916700000004,
1589
+ 0.426964791,
1590
+ 0.472408166,
1591
+ 0.41722370900000005,
1592
+ 0.417194375,
1593
+ 0.41512008300000003,
1594
+ 0.41596387500000004,
1595
+ 0.41911975
1596
+ ],
1597
+ "peak_rss_bytes": [
1598
+ 120111104.0,
1599
+ 120094720.0,
1600
+ 120111104.0,
1601
+ 120160256.0,
1602
+ 120094720.0,
1603
+ 120078336.0,
1604
+ 120111104.0,
1605
+ 120111104.0,
1606
+ 120111104.0
1607
+ ]
1608
+ },
1609
+ "wasmtime": {
1610
+ "command": "wasmtime run -- build/rust/wasm32-wasip1/release/examples/png_grayscale.wasm ",
1611
+ "wall_seconds": [
1612
+ 0.019159041,
1613
+ 0.0192065,
1614
+ 0.019002583,
1615
+ 0.019820958,
1616
+ 0.018176458,
1617
+ 0.018543042000000003,
1618
+ 0.019260291000000002,
1619
+ 0.019219708000000002,
1620
+ 0.020338250000000002
1621
+ ],
1622
+ "peak_rss_bytes": [
1623
+ 20840448.0,
1624
+ 20840448.0,
1625
+ 20807680.0,
1626
+ 20791296.0,
1627
+ 20840448.0,
1628
+ 20840448.0,
1629
+ 20840448.0,
1630
+ 20873216.0,
1631
+ 20856832.0
1632
+ ]
1633
+ },
1634
+ "iwasm": {
1635
+ "command": "iwasm --interp build/rust/wasm32-wasip1/release/examples/png_grayscale.wasm ",
1636
+ "wall_seconds": [
1637
+ 0.064111583,
1638
+ 0.062399292,
1639
+ 0.061948541,
1640
+ 0.06254425000000001,
1641
+ 0.063310875,
1642
+ 0.06284925000000001,
1643
+ 0.06294975,
1644
+ 0.063052625,
1645
+ 0.063202375
1646
+ ],
1647
+ "peak_rss_bytes": [
1648
+ 16203776.0,
1649
+ 16236544.0,
1650
+ 16220160.0,
1651
+ 16203776.0,
1652
+ 16203776.0,
1653
+ 16203776.0,
1654
+ 16203776.0,
1655
+ 16203776.0,
1656
+ 16220160.0
1657
+ ]
1658
+ }
1659
+ },
1660
+ "match": "Match",
1661
+ "wardite_load_seconds": [
1662
+ 0.058985233306884766,
1663
+ 0.05749773979187012,
1664
+ 0.05907392501831055,
1665
+ 0.057341814041137695,
1666
+ 0.05694293975830078,
1667
+ 0.05681800842285156,
1668
+ 0.05750393867492676,
1669
+ 0.05655503273010254,
1670
+ 0.09833908081054688
1671
+ ],
1672
+ "mir_report": "dispatches=54437427 copies=12560841 register_reads=85146158 register_writes=46194964 function_entries=8287 frames_created=88 host_calls=16 indirect_calls=1034",
1673
+ "mir_opcode_counts": {
1674
+ "COPY": 12560841,
1675
+ "I32_ADD": 17541467,
1676
+ "I32_SUB": 1257756,
1677
+ "I32_MUL": 3159947,
1678
+ "I32_XOR": 95254,
1679
+ "I32_SHL": 88750,
1680
+ "I32_SHR_U": 104787,
1681
+ "I32_EQZ": 241463,
1682
+ "BR": 250748,
1683
+ "BR_IF": 3088804,
1684
+ "CALL": 7236,
1685
+ "RETURN": 8271,
1686
+ "BR_IF_ZERO": 50209,
1687
+ "I32_EQ": 141533,
1688
+ "I32_NE": 36159,
1689
+ "I32_LTS": 3084,
1690
+ "I32_LTU": 97794,
1691
+ "I32_GTS": 5,
1692
+ "I32_GTU": 532350,
1693
+ "I32_LES": 6,
1694
+ "I32_LEU": 1313552,
1695
+ "I32_GEU": 117497,
1696
+ "I32_CLZ": 587,
1697
+ "I32_CTZ": 11,
1698
+ "I32_DIV_U": 1063793,
1699
+ "I32_REM_U": 1030,
1700
+ "I32_AND": 220148,
1701
+ "I32_OR": 87107,
1702
+ "I32_ROTL": 8,
1703
+ "I32_ROTR": 24,
1704
+ "I32_EXTEND8_S": 6,
1705
+ "GLOBAL_GET": 3352,
1706
+ "GLOBAL_SET": 6700,
1707
+ "I32_LOAD": 185741,
1708
+ "I32_LOAD8_U": 6416838,
1709
+ "I32_LOAD16_U": 814,
1710
+ "I32_STORE": 27216,
1711
+ "I32_STORE8": 4334896,
1712
+ "I32_STORE16": 1382,
1713
+ "MEMORY_GROW": 5,
1714
+ "MEMORY_COPY": 1292,
1715
+ "MEMORY_FILL": 38,
1716
+ "CALL_HOST": 16,
1717
+ "CALL_INDIRECT": 1034,
1718
+ "I64_EQZ": 387,
1719
+ "I32_WRAP_I64": 77423,
1720
+ "I64_EQ": 6,
1721
+ "I64_NE": 390,
1722
+ "I64_LTU": 391,
1723
+ "I64_GTU": 390,
1724
+ "I64_GEU": 1,
1725
+ "I64_EXTEND_I32_U": 112326,
1726
+ "I64_AND": 32624,
1727
+ "I64_OR": 18854,
1728
+ "I64_XOR": 32239,
1729
+ "I64_SHL": 51086,
1730
+ "I64_SHR_U": 75857,
1731
+ "I64_ADD": 783,
1732
+ "I64_SUB": 385,
1733
+ "I64_MUL": 30,
1734
+ "I64_LOAD": 483843,
1735
+ "I64_LOAD8_U": 11,
1736
+ "I64_LOAD32_U": 7,
1737
+ "I64_STORE": 500843
1738
+ }
1739
+ }
1740
+ ]
1741
+ }