Subject: Re: bug#76103: [PATCH] New function 'process-output'

From: Ihor Radchenko <[email-masked]>
Date: Fri, 07 Feb 2025 17:15:44 +0000

Alvaro Ramirez <[email-masked]> writes:

> (let ((before (benchmark-run 1000
>                 (shell-command-to-string "seq 200")))
>       (after (benchmark-run 1000
>                (process-output "seq" "200"))))
>   (/ (car before)
>      (car after))) => 3.27
>
> Roughly a 3.27 gain, or should I calculate differently?

Linux. Not the same every times, but always larger than 2x improvement.

; 5.333148970679263
; 3.204657728630843
; 2.0283408689679625
; 4.1317904673085035
; 5.0238578857970575

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>