Stream: wasmtime

Topic: ✔ Ready for AWFY to "go live"?


view this post on Zulip fitzgen (he/him) (Nov 05 2026 at 19:37):

Okay, new regressions should get issues filed to the Wasmtime repo, rather than AWFY going forward!

view this post on Zulip Notification Bot (Nov 05 2026 at 19:37):

fitzgen (he/him) has marked this topic as resolved.

view this post on Zulip fitzgen (he/him) (Nov 09 2026 at 18:33):

and the regression issues are working! first one on the Wasmtime repo is here: https://github.com/bytecodealliance/wasmtime/issues/15192

view this post on Zulip Alex Crichton (Nov 10 2026 at 15:18):

Question for you @fitzgen (he/him), how come the results are rolled up and made for a series of commits? Does AWFY run on a fixed schedule and just benchmark whatever's there? If so, would it be possible to refactor to run for individual commits or is that expected to take too long?

With https://github.com/bytecodealliance/wasmtime/issues/15210 there's both improvements and regressions from what I think are orthogonal changes, and assuming it's "just a bit of infrastructure" it'd be best I think to not need to manually sort through commits

view this post on Zulip fitzgen (he/him) (Nov 10 2026 at 15:53):

Alex Crichton said:

how come the results are rolled up and made for a series of commits? Does AWFY run on a fixed schedule and just benchmark whatever's there? If so, would it be possible to refactor to run for individual commits or is that expected to take too long?

It runs on a cron job scheduled every 2 hours, but each benchmarking run takes up to ~2.5 hours and we limit concurrency to 1. So it just benchmarks whatever new commits are there since the last job (or doesn't benchmark anything if there are no new commits)

We could look into lifting the concurrency limit (since running the cron more frequently won't change much given that a run takes longer than the scheduled interval) but then we also have to figure out how to merge automatically results better, since a previous run won't have finished and been committed before we kick off the next run. And the data for runs is stored in incrementing ID directories...

Also not sure we want to burn more of our CI time on this or not.

What I've been doing when there is a regression range is try to bisect locally to figure out which exact commit(s) are responsible. I guess we could also look into automating the bisect?

view this post on Zulip Chris Fallin (Nov 10 2026 at 15:56):

It seems like (with the baseline assumption that building infra is easier now than it would have been otherwise) a bisect that only runs the benchmarks that showed statistical movement in the rollup run would be both useful, and much faster/cheaper. Maybe even as simple as: for any run with movement, spawn off sub-runs for every contained commit individually (N against N-1 in the linear history) just for the benchmarks the moved.

That does have the potential to miss a benchmark that moved one way in commit N then exactly canceled out in N+1 in the rollup, but for most common cases of "two different orthogonal signals are contained here" it seems cheap and easy (in terms of CI time)?

view this post on Zulip Alex Crichton (Nov 10 2026 at 15:57):

Usage-wise a full CI run in the wasmtime repo is 22h worth of minutes, so adding 2 to that for each commit doesn't seem like it'd really radically change usage all that much. 2.5h of benchmarking for each commit is indeed quite weighty though...

Infrastructure-wise the way I'd imagine it is that a cron sees what new commits are available and then there's a job of "hey benchmark this commit" and triggers that for each commit, and then the parallelism isn't capped for "benchmark this commit". I'd ideally like to one day have the workflow for "leave a comment on a PR and get a benchmark summary" and this might be a step towards that perhaps.

view this post on Zulip fitzgen (he/him) (Nov 10 2026 at 19:07):

With a little sharding across parallel jobs, I think I can get a full benchmark run to take about an hour. This will let us speed up the frequency of scheduling to narrow ranges benchmarked as well.

I'm also investigating automating a parallel bisect that runs only the regressing benchmarks, which should give us precise commit blame in ~15-60 minutes depending on the benchmarks that regressed.

view this post on Zulip Alex Crichton (Nov 18 2026 at 22:24):

Question for this -- I'm trying to simulate "PR run" locally on https://github.com/bytecodealliance/wasmtime/pull/15358. To do that I took the instructions from https://github.com/bytecodealliance/wasmtime/issues/15342, edited the revisions, then ran

cargo run --release -- benchmark --measure callgrind --engine old/libengine.so --engine new/libengine.so

is that the best way to get a view of what's going on? I realize using native would be faster but the machine is noisy from other builds right now so I figured I'd try valgrind. The current ETA is 8h in the future so I'm not sure if I need to pass a flag to run less or something like that

view this post on Zulip fitzgen (he/him) (Nov 18 2026 at 23:53):

@Alex Crichton how many iterations does it say it is using? It should be only 6 when using callgrind, but yeah, callgrind is really slow. I think a full run of every benchmark (not the default suite subset) took ~3-4 hours on my linux laptop? AWFY will run stuff in parallel to speed it up (which ~shouldn't matter for callgrind, unlike real cycles) but sightglass itself doesn't ever run anything in parallel

view this post on Zulip Alex Crichton (Nov 19 2026 at 00:08):

looks like 6 yeah

Running 348 total callgrind iterations (2 engines * 29 benchmarks * 6 iterations)

[Done] [Elapsed    ] [Est. Rem.  ]
[  0%] [00h:00m:05s] [00h:28m:55s] ..........
[  3%] [00h:15m:28s] [07h:53m:51s] ..........
[  6%] [00h:32m:19s] [08h:23m:13s] ..........
[  9%] [00h:37m:02s] [06h:18m:42s] ..........
[ 12%] [00h:39m:22s] [04h:54m:46s] ..........
[ 15%] [00h:53m:48s] [05h:13m:18s] ..........
[ 18%] [00h:58m:51s] [04h:36m:53s] ..........
[ 20%] [01h:00m:44s] [03h:56m:57s] ..........
[ 23%] [01h:02m:30s] [03h:26m:01s] ..........
[ 26%] [01h:03m:16s] [02h:58m:41s] ..........
[ 29%] [01h:17m:30s] [03h:09m:32s] ..........
[ 32%] [01h:20m:18s] [02h:51m:27s] ..........
[ 35%] [01h:35m:22s] [02h:58m:55s] ..........
[ 38%] [01h:52m:16s] [03h:05m:58s] ..........
[ 41%] [02h:07m:16s] [03h:06m:50s] ..........
[ 43%] [02h:10m:23s] [02h:50m:06s] .........

view this post on Zulip Alex Crichton (Nov 19 2026 at 00:08):

I suppose I should filter by phase b/c I only care about execution here

view this post on Zulip fitzgen (he/him) (Nov 19 2026 at 00:20):

Alex Crichton said:

I suppose I should filter by phase b/c I only care about execution here

yeah, also doing a non-callgrind 1-iteration run should pre-fill your compilation cache, so that you don't run compilation under callgrind

view this post on Zulip Alex Crichton (Nov 19 2026 at 15:29):

well it did eventually finish, but apparently I don't have enough scrollback in my terminal to see the results lol

view this post on Zulip fitzgen (he/him) (Nov 19 2026 at 16:57):

it always saves sightglass-data.csv for posterity, so you can run sightglass effect-size or sightglass summarize or whatever on it


Last updated: Nov 19 2026 at 20:05 UTC