overhead: what recording adds to the time of a run

N = 20 runs of each row, after 1 discarded; the rows take turns. Written by bench/run.py. Each row is the whole command, from start to exit, in milliseconds of wall-clock time: for ormaos run that includes starting the CLI, running the program, and reading the recording to print the summary.

Ormaos records and shows what happened inside your Python execution — the runtime context for your agent and for you.

CPU-bound workload, the default capability set, median 2798.2 ms
x34.28
I/O workload, the default capability set, median 265.7 ms
x7.69

Results

Time of a recorded run, as a multiple of the same run without Ormaos The median wall time of each capability set divided by the median without Ormaos, per workload, on a log scale. context only: CPU-bound x1.59 (130.2 ms), I/O x2.50 (86.3 ms); calls and exceptions: CPU-bound x31.17 (2544.4 ms), I/O x4.00 (138.0 ms); calls, exceptions and path: CPU-bound x33.58 (2741.4 ms), I/O x4.10 (141.7 ms); calls, exceptions and io (the default): CPU-bound x34.28 (2798.2 ms), I/O x7.69 (265.7 ms). CPU-bound I/O x1 x2 x5 x10 x20 x50 x100 context only context only, CPU-bound: x1.59 (130.2 ms) context only, I/O: x2.50 (86.3 ms) calls and exceptions calls and exceptions, CPU-bound: x31.17 (2544.4 ms) calls and exceptions, I/O: x4.00 (138.0 ms) calls, exceptions and path calls, exceptions and path, CPU-bound: x33.58 (2741.4 ms) calls, exceptions and path, I/O: x4.10 (141.7 ms) calls, exceptions and io, the default calls, exceptions and io, the default, CPU-bound: x34.28 (2798.2 ms) calls, exceptions and io, the default, I/O: x7.69 (265.7 ms)
Time of a recorded run, as a multiple of the same run without Ormaos The median wall time of each capability set divided by the median without Ormaos, per workload, on a log scale. context only: CPU-bound x1.59 (130.2 ms), I/O x2.50 (86.3 ms); calls and exceptions: CPU-bound x31.17 (2544.4 ms), I/O x4.00 (138.0 ms); calls, exceptions and path: CPU-bound x33.58 (2741.4 ms), I/O x4.10 (141.7 ms); calls, exceptions and io (the default): CPU-bound x34.28 (2798.2 ms), I/O x7.69 (265.7 ms). CPU-bound I/O x1 x2 x5 x10 x20 x50 x100 context only context only, CPU-bound: x1.59 (130.2 ms) context only, I/O: x2.50 (86.3 ms) calls and exceptions calls and exceptions, CPU-bound: x31.17 (2544.4 ms) calls and exceptions, I/O: x4.00 (138.0 ms) calls, exceptions and path calls, exceptions and path, CPU-bound: x33.58 (2741.4 ms) calls, exceptions and path, I/O: x4.10 (141.7 ms) calls, exceptions and io, the default calls, exceptions and io, the default, CPU-bound: x34.28 (2798.2 ms) calls, exceptions and io, the default, I/O: x7.69 (265.7 ms)
Capability setCPU-boundI/O
context onlyx1.59x2.50
calls and exceptionsx31.17x4.00
calls, exceptions and pathx33.58x4.10
calls, exceptions and io (the default)x34.28x7.69

CPU-bound workload

bench/workloads/cpu_bound.py: 150,000 calls of small pure-Python functions, no I/O.

Capability setCommandMedian (ms)p25-p75 (ms)Min-max (ms)Added to the medianRecorded in one run
without Ormaospython81.680.2-82.278.4-99.5nothing
context onlyormaos run -- env -u ORMAOS_DIR python130.2128.6-131.0127.0-133.948.6 (x1.59)the context of the command
calls and exceptionsormaos run --no-io -- python2544.42536.5-2557.02514.1-2586.42462.8 (x31.17)150,002 calls, 0 exceptions, 0 io events
calls, exceptions and pathormaos run --no-io --path cpu_bound.py:score -- python2741.42726.9-2757.12705.1-2886.52659.7 (x33.58)150,002 calls, 0 exceptions, 150,000 lines, 0 io events
calls, exceptions and io (the default)ormaos run -- python2798.22785.0-2810.02770.3-2929.52716.6 (x34.28)150,002 calls, 0 exceptions, 0 io events

Listed as not collected in these recordings:

I/O workload

bench/workloads/io_bound.py: a SQLite file (2,000 inserts in 20 transactions, 200 queries) and 200 small files written and read back.

Capability setCommandMedian (ms)p25-p75 (ms)Min-max (ms)Added to the medianRecorded in one run
without Ormaospython34.534.1-35.233.9-38.7nothing
context onlyormaos run -- env -u ORMAOS_DIR python86.385.1-87.083.3-100.951.8 (x2.50)the context of the command
calls and exceptionsormaos run --no-io -- python138.0136.9-138.8136.0-149.4103.5 (x4.00)2,402 calls, 0 exceptions, 0 io events
calls, exceptions and pathormaos run --no-io --path io_bound.py:store -- python141.7140.9-142.7140.0-149.7107.2 (x4.10)2,402 calls, 0 exceptions, 2,000 lines, 0 io events
calls, exceptions and io (the default)ormaos run -- python265.7264.0-267.4262.5-282.3231.2 (x7.69)2,402 calls, 0 exceptions, 3,042 io events

Listed as not collected in these recordings:

The machine

How to read it

As the results file says:

This run

To run it again: Linux or another POSIX system, Python 3.12 or newer, and uv.

Shell
git clone https://github.com/ormaos/ormaos-python && cd ormaos-python
git checkout 968f697
uv run python bench/run.py --runs 20