Four routes measured on one frozen contract at one session's container size, with RAM and CPU as first-class results: in-process pywayland is ~1.5x faster (78 vs 117 ms), uses ~2.8x less of our own CPU, and nearly halves the compositor's per-frame CPU (67 vs 116 ms). grim-rs buys nothing and costs 746 MB RSS. ext-image-copy-capture measures identical to screencopy and appears in a compositor crash stack, so the deprecated-but-working protocol is the pick. Also fixes the client's unclean exit (pywayland teardown segfaulted after the result was printed, 16 times, one batch coinciding with a compositor crash).
2 lines
770 B
Plaintext
2 lines
770 B
Plaintext
{"route": "grim-subprocess", "language": "python", "protocol": "zwlr-screencopy-v1 (grim's client)", "output": "hh-chromium-gqkxz3", "geometry": [1280, 720], "mode": "raw", "warmup": 10, "frames": 200, "frame_ms": {"min": 64.061, "p50": 122.389, "mean": 127.307, "p95": 196.38, "max": 264.387}, "fps_sustained": 7.86, "wall_ms": 25757.6, "bytes_p50": 2764816, "persistent": false, "notes": "one grim process per frame, fork and encode inside the timed span; territory: --output; ppm, unencoded", "cpu_ms_per_frame": 3.858, "rss_peak_mb": 20.51, "rss_peak_kb_raw": 21004, "system_cpu_ms_per_frame": 256.65, "compositor_cpu_ms_per_frame": 118.25, "machine_cpu_pct": 199.3, "machine_cpu_pct_of_all_cores": 99.6, "frames_bytes_allocated_p50": 3686400, "resource_notes": ""}
|