Created
March 18, 2019 13:50
-
-
Save ROCKTAKEY/7693a052030091550b31342f137d4f7c to your computer and use it in GitHub Desktop.
each-benchmark.el
This file contains hidden or 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
(require 'cl-lib) | |
(defun each-benchmark (repetitions function-list &optional args) | |
"" | |
(cl-loop | |
with a | |
for func in function-list | |
do (setq a (benchmark-run repetitions | |
(apply func args))) | |
collect (cons func (car a)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment