c03b2af770
This commit updates the benchmark numbers in various example files. The changes reflect recent performance optimizations or adjustments to the benchmarking environment.
21 lines
523 B
Plaintext
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)]
|
|
) |