aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStefan Monnier2021-03-17 19:04:28 -0400
committerStefan Monnier2021-03-17 19:04:28 -0400
commit82c3bd1e4a58f6fefcb7d69b6e04013bd86f54be (patch)
tree183c0845052e3d8a51c80e429b6333471a251b36 /doc
parent3cd3f230c924e5a095f37ea9c6ea6f9f6c5cf473 (diff)
downloademacs-82c3bd1e4a58f6fefcb7d69b6e04013bd86f54be.tar.gz
emacs-82c3bd1e4a58f6fefcb7d69b6e04013bd86f54be.zip
* lisp/emacs-lisp/benchmark.el (benchmark-call): New function
(benchmark-run, benchmark-run-compiled, benchmark): Use it. (benchmark--adaptive): New internal function.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/debugging.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi
index 8e4b0ebfe96..de98d2206e2 100644
--- a/doc/lispref/debugging.texi
+++ b/doc/lispref/debugging.texi
@@ -1041,7 +1041,8 @@ functions written in Lisp, it cannot profile Emacs primitives.
1041@cindex @file{benchmark.el} 1041@cindex @file{benchmark.el}
1042@cindex benchmarking 1042@cindex benchmarking
1043You can measure the time it takes to evaluate individual Emacs Lisp 1043You can measure the time it takes to evaluate individual Emacs Lisp
1044forms using the @file{benchmark} library. See the macros 1044forms using the @file{benchmark} library. See the function
1045@code{benchmark-call} as well as the macros
1045@code{benchmark-run}, @code{benchmark-run-compiled} and 1046@code{benchmark-run}, @code{benchmark-run-compiled} and
1046@code{benchmark-progn} in @file{benchmark.el}. You can also use the 1047@code{benchmark-progn} in @file{benchmark.el}. You can also use the
1047@code{benchmark} command for timing forms interactively. 1048@code{benchmark} command for timing forms interactively.