You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the macros should have them too, because if the user hasn't
called one of the autoloaded commands yet, or hasn't explicitly
REQUIREd the library, the macros won't be loaded.
(cl-defmacro bench-multi (&key (times 1) forms ensure-equal raw)
1488
1492
"Return Org table as a list with benchmark results for FORMS.
1489
1493
Runs FORMS with `benchmark-run-compiled' for TIMES iterations.
@@ -1668,6 +1672,7 @@ So this macro showed which code is faster and helped catch a subtle bug.
1668
1672
To evaluate forms with lexical binding enabled, use this macro:
1669
1673
1670
1674
#+BEGIN_SRC elisp :exports code :tangle epdh.el
1675
+
;;;###autoload
1671
1676
(cl-defmacro bench-multi-lexical (&key (times 1) forms ensure-equal raw)
1672
1677
"Return Org table as a list with benchmark results for FORMS.
1673
1678
Runs FORMS from a byte-compiled temp file with `lexical-binding'
@@ -1758,6 +1763,7 @@ The ~buffer-local-value~ form improved by about 24% when using lexical binding.
1758
1763
This macro compares dynamic and lexical binding.
1759
1764
1760
1765
#+BEGIN_SRC elisp :exports code :tangle epdh.el
1766
+
;;;###autoload
1761
1767
(cl-defmacro bench-dynamic-vs-lexical-binding (&key (times 1) forms ensure-equal)
1762
1768
"Benchmark FORMS with both dynamic and lexical binding.
1763
1769
Calls `bench-multi' and `bench-multi-lexical', which see."
@@ -1803,6 +1809,7 @@ Example:
1803
1809
Call this macro from an Org source block and you'll get a results block showing which 20 functions were called the most times, how long they took to run, etc. =prefixes= should be a list of symbols matching the prefixes of the functions you want to instrument.
1804
1810
1805
1811
#+BEGIN_SRC elisp :exports both :eval no-export :tangle epdh.el
0 commit comments