File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments