9222fb5bc8
The benchmark results in several example files have been updated. This commit reflects slight variations in performance measurements for various test cases, including closure scope, data structures, destructuring, higher-order functions, macros, and tuple operations.
13 lines
231 B
Plaintext
13 lines
231 B
Plaintext
;; Record to Tuple Mapping Test
|
|
;; Output: 30
|
|
;; Benchmark: 743ns
|
|
;; Benchmark-Repeat: 2733
|
|
(do
|
|
(def rec {:x 10 :y 20})
|
|
|
|
;; Map record to tuple pattern
|
|
(def add-tuple (fn [[a b]] (+ a b)))
|
|
|
|
(add-tuple rec)
|
|
)
|