Repository navigation
spikes/webgpu: compare candle and vectoron on the CPU - #61
Conversation
ec470e2 to
2fcd6bd
Compare
There was a problem hiding this comment.
This change introduces a new CPU benchmarking harness for the vectoron engine, alongside the existing candle-based cpu-baseline, enabling direct performance comparisons in both browser (wasm) and native environments. The new workflow (engine-bench.yml) builds and runs both engines on macOS and Ubuntu runners, collecting results in a unified format for reporting. The vectoron-cpu harness mirrors the cpu-baseline's prompt, decode loop, and result schema, ensuring comparability. The report script and workflow triggers are updated to handle the new engine and avoid unnecessary reruns. The implementation appears robust, with careful error handling and matching measurement logic. No critical or warning-level issues are present in the new or modified code.
Automated review by siGit Code Review · commit ec470e2 · see the review dashboard
2fcd6bd to
e39a8df
Compare
e39a8df to
84e6b2d
Compare
There was a problem hiding this comment.
This change adds a CPU benchmarking harness for the vectoron engine alongside the existing candle-based cpu-baseline, enabling direct comparison of both engines in the same CI job and with the same prompt/config. The new vectoron-cpu crate is structured to match cpu-baseline, with a native bench binary and a wasm harness for browser runs. The workflow engine-bench.yml builds and runs both engines on macOS and Ubuntu runners, in Chrome and WebKit, and collects results for reporting. The findings.md and report.mjs are updated to include and explain the new results. No critical or correctness issues are apparent in the new code or workflow. The implementation matches the described intent and is careful to keep the two engines' runs comparable.
Automated review by siGit Code Review · commit 84e6b2d · see the review dashboard
vectoron-cpu is cpu-baseline with vectoron 0.2 in place of candle: same prompt, prefill chunk, greedy decode loop, result schema and release profile. engine-bench.yml runs both engines back to back in one job per runner and browser, plus native on macos-26 and ubuntu, so each pair of numbers comes from the same machine. It has its own workflow so that engine work doesn't rerun the GPU matrix, and webgpu-spike.yml now ignores these files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si> Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>
The push trigger named only spike/webgpu, so a branch stacked on it could not run its own benchmark before merging. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si> Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>
…sults vectoron 0.3.0 is on crates.io, so vectoron-cpu depends on it instead of the 0.2 baseline. findings.md gets the candle and vectoron numbers from run 45602570325, including the near-tie that makes the first token differ between the engines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si> Co-Authored-By: OndeCode v1.1.3 <noreply@ondeinference.com>
84e6b2d to
02b6f29
Compare
Adds a CPU harness for vectoron next to
cpu-baseline, so candle and vectoron can be compared on the same runner in the same job. The spike only ever measured candle. The results are recorded infindings.md.vectoron-cpuruns the same prompt, prefill chunk, greedy decode loop, result schema and release profile ascpu-baseline, in the browser and natively, and depends on vectoron 0.3.engine-bench.ymlbuilds both, runs them back to back on macos-26 (Chrome, WebKit) and ubuntu-latest (Chrome), andreport.mjsputs the rows in one table. Hosted runners only.Run 45602570325,
bench.json, wasm simd128, no yields, with vectoron atd15c228(0.3.0 apart from a test helper and the manifest):Peak Chrome memory is 1.0 to 1.3 GB for vectoron and 2.0 to 2.3 GB for candle. Natively on macos-26, candle still decodes faster (20.3 against 18.5 tok/s), which does not apply to the single-threaded web engine.
The first generated token differs between the engines. That is a near-tie, not a bug: the top two logits are within 0.07 of each other in both, with the same top five. The report's "first 20 tokens vs native CPU" column is therefore not a useful cross-engine check.
Notes for review:
engine-bench.ymlalso matchesspike/webgpu-*, so branches stacked on this one can run it.Cargo.lockis committed so CI builds with--locked.