Files
RustAst/examples/optimizer_repro.myc
T
Michael Schimmel c03b2af770 Update benchmark numbers in examples
This commit updates the benchmark numbers in various example files. The
changes reflect recent performance optimizations or adjustments to the
benchmarking environment.
2026-02-22 16:13:11 +01:00

21 lines
523 B
Plaintext

;; Benchmark: 212ns
;; Benchmark-Repeat: 9439
(do
;; 1. Provokation Stack-Gap (bei Optimization Level 2)
(def result
(fn []
(do
(def unused 10) ;; Wird entfernt, Slot 0 ist dann "leer"
(def used 42) ;; Bleibt auf Slot 1 -> Lücke!
used)))
;; 2. Provokation Inlining-Blockade
;; Diese Funktion wird nicht inlined, weil sie ein 'def' enthält
(def complex-add
(fn [a]
(do
(def b 100)
(+ a b))))
[(result) (complex-add 50)]
)