feat(bench): add gbash and gbash-server benchmark runners#1269
Merged
Conversation
Add two runners for gbash (Go bash runtime): - gbash: subprocess runner (cold start, like bash) - gbash-server: persistent child via JSON-RPC server (warm interpreter) The server runner bridges gbash's JSON-RPC Unix socket protocol to the PersistentChild stdin/stdout JSON lines protocol via a Python wrapper.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gbashsubprocess runner (cold start, new Go process per run)gbash-serverpersistent child runner (JSON-RPC server on Unix socket, warm interpreter)Why
gbash is a Go-based sandboxed bash runtime for AI agents. Adding it to the benchmark suite enables direct performance comparison across all three runtimes (bashkit/Rust, gbash/Go, just-bash/TypeScript) in both subprocess and persistent execution models.
Smoke test results
awk(6) andjq(5) cases — gbash sandboxes unknown commands (exit 127)Test plan
cargo test --all-features— all 2564+ tests pass (pre-existing ssh_supabase failure unrelated)cargo fmt --checkcleancargo clippy -p bashkit-benchclean (pre-existing warnings in bashkit lib only)ruff checkandruff format --checkon Python wrapper