Created
January 21, 2023 02:54
-
-
Save casouri/3ca3105d73c883475a3e2f01567c7d22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun scroll-up-benchmark () | |
(interactive) | |
(let ((oldgc gcs-done) | |
(oldtime (float-time)) | |
(count 0)) | |
(condition-case nil (while t (scroll-up) (redisplay) (cl-incf count)) | |
(error (message "GCs: %d Elapsed time: %f seconds Second/scroll: %f" | |
(- gcs-done oldgc) (- (float-time) oldtime) | |
(/ (- (float-time) oldtime) count)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment