diff options
| author | Stefan Monnier | 2021-03-17 19:04:28 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2021-03-17 19:04:28 -0400 |
| commit | 82c3bd1e4a58f6fefcb7d69b6e04013bd86f54be (patch) | |
| tree | 183c0845052e3d8a51c80e429b6333471a251b36 /doc | |
| parent | 3cd3f230c924e5a095f37ea9c6ea6f9f6c5cf473 (diff) | |
| download | emacs-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.texi | 3 |
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 |
| 1043 | You can measure the time it takes to evaluate individual Emacs Lisp | 1043 | You can measure the time it takes to evaluate individual Emacs Lisp |
| 1044 | forms using the @file{benchmark} library. See the macros | 1044 | forms 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. |