d1b8d03604
This commit updates the benchmark and repeat counts for various example files. These changes reflect potential performance improvements or variations observed during testing.
22 lines
544 B
Plaintext
22 lines
544 B
Plaintext
;; Benchmark: 167ns
|
|
;; Benchmark-Repeat: 12120
|
|
;; Output: [42 150]
|
|
(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)]
|
|
) |