Skip to content

Commit a1db374

Browse files
committed
Tasks: Add MAYBE
1 parent 9087754 commit a1db374

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.org

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3745,6 +3745,24 @@ The benchmark macros need to be extended to allow definitions that aren't part o
37453745
| s-lines | 10.47 | 0.000513 | 0 | 0 |
37463746
| stream/seq-into | slowest | 0.005370 | 0 | 0 |
37473747

3748+
** MAYBE Benchmarking =seq-let= vs =pcase-let*= with backquoted patterns
3749+
3750+
#+BEGIN_SRC elisp
3751+
(bench-multi-lexical :times 1000 :ensure-equal t
3752+
:forms (("pcase-let* backquoted pattern"
3753+
(pcase-let* ((`(,name ,argument) (list 'NAME 'ARGUMENT)))
3754+
(list name argument)))
3755+
3756+
("seq-let"
3757+
(seq-let (name argument) (list 'NAME 'ARGUMENT)
3758+
(list name argument)))))
3759+
#+END_SRC
3760+
3761+
#+RESULTS:
3762+
| Form | x faster than next | Total runtime | # of GCs | Total GC runtime |
3763+
|-------------------------------+--------------------+---------------+----------+------------------|
3764+
| pcase-let* backquoted pattern | 2.73 | 0.000188 | 0 | 0 |
3765+
| seq-let | slowest | 0.000515 | 0 | 0 |
37483766

37493767
** TODO Mention Emacs 27.1 SVG screenshots
37503768

0 commit comments

Comments
 (0)