Compare Execution
compare_executionRun the same code in multiple languages side by side and compare per-language output, exit code, duration, and performance.
Instructions
Run the same code in multiple languages side by side.
Returns per-language stdout/stderr/exit/duration plus which was fastest. Example: {"python3": "print(67)", "node": "console.log(67)"}
This tool fans out across every language with no per-language install
plumbing behind it; use install_package/execute_code(dependencies=...)
beforehand instead. A # /// script block in a snippet is likewise never
installed, but is DISCLOSED, not dropped: a python3 row that carries one
gets dependencies: {"status": "unsupported", "reason": ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdin | No | Text piped to every snippet's standard input; empty means no input | |
| timeout | No | Wall-clock seconds allowed per language before that run is killed | |
| snippets | Yes | Language name -> code; each snippet must be a complete, valid program in its own language | |
| dependencies | No | Not supported here; any truthy value is refused — install packages beforehand instead |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||