Files
RustAst/examples/data.myc
T
Michael Schimmel 9222fb5bc8 Update benchmark results
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.
2026-02-21 15:16:36 +01:00

21 lines
351 B
Plaintext

;; Complex Data Structure Test
;; Benchmark: 53.1us
;; Benchmark-Repeat: 39
;; Output: {:name "Fibonacci", :input 10, :output 55}
(do
(def fib (fn [n]
(if (< n 2)
n
(+ (fib (- n 1)) (fib (- n 2))))))
(def result (fib 10))
(def data {
:name "Fibonacci"
:input 10
:output result
})
data
)