Subject: Re: bug#78474: 31.0.50; Wrong char insertion in rxvt

From: Eli Zaretskii <[email-masked]>
Date: Wed, 23 Jul 2025 20:16:11 +0300

> Cc: [email-masked], [email-masked], [email-masked],
>  [email-masked], [email-masked]
> Date: Wed, 23 Jul 2025 20:06:57 +0300
> From: Eli Zaretskii <[email-masked]>
> 
> (defun scroll-up-benchmark ()
>   (interactive)
>   (let ((oldgc gcs-done)
>         (oldtime (float-time)))
>     (condition-case nil (while t (scroll-up) (redisplay))
>       (error (message "GCs: %d Elapsed time: %f seconds"
>                       (- gcs-done oldgc) (- (float-time) oldtime))))))
> 
> Evaluate this in an interactive session, then visit src/xdisp.c, and
> invoke the command.  Wait until it finishes scrolling and record the
> time it shows.  Then run the same in the version with the patch, and
> compare the times.

Btw, please also record which terminal(s) you benchmark this.  I'd
like this to be measured at least on the most popular terminals,
because there could be differences.

Thanks.