Files
RustAst/examples/record_unpack.myc
T
2026-02-20 17:18:45 +01:00

12 lines
308 B
Plaintext

;; Benchmark: Record Destructuring Performance
;; This test calls a function that destructures a record
;; Current implementation is now zero-allocation for destructuring.
;; Output: 3
;; Benchmark: 775ns
;; Benchmark-Repeat: 2587
(do
(def process (fn [[x y]]
(+ x y)))
(process {:a 1 :b 2})
)