mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
Each bench program gets an equivalent, differently written variant in bench/variants/, run next to its original on both implementations, with the variant / original ratio per side. A plugin-event benchmark runs the conformance reducer with a git.status tool as a 226-byte and a 3 KB source. RESULTS.md labels medians, mins and means, computes speed-ups from medians only, and notes that the reference tools validate through Effect Schema.
2 lines
No EOL
226 B
JavaScript
2 lines
No EOL
226 B
JavaScript
if (event.type === "command" && event.name === "git.status") { const s = await tools.git.status(); return { state: { runs: state.runs + 1 }, slots: { statusbar: { text: s.branch + (s.dirty ? " *" : "") } } } }
|
|
return { state } |