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.
This commit is contained in:
Michael Schimmel
2026-02-21 15:16:36 +01:00
parent dc81b7d616
commit 9222fb5bc8
15 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
;; Closure Scope Test ;; Closure Scope Test
;; Benchmark: 780ns ;; Benchmark: 777ns
;; Benchmark-Repeat: 2602 ;; Benchmark-Repeat: 2659
;; Output: 15 ;; Output: 15
(do (do
(def make-adder (fn [x] (def make-adder (fn [x]
+1 -1
View File
@@ -1,5 +1,5 @@
;; Complex Data Structure Test ;; Complex Data Structure Test
;; Benchmark: 52.9us ;; Benchmark: 53.1us
;; Benchmark-Repeat: 39 ;; Benchmark-Repeat: 39
;; Output: {:name "Fibonacci", :input 10, :output 55} ;; Output: {:name "Fibonacci", :input 10, :output 55}
(do (do
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 2.6us ;; Benchmark: 2.3us
;; Benchmark-Repeat: 788 ;; Benchmark-Repeat: 880
;; Comprehensive Destructuring Test ;; Comprehensive Destructuring Test
;; Covers: Nested tuples, mixed params, dynamic passing ;; Covers: Nested tuples, mixed params, dynamic passing
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 1.8us ;; Benchmark: 1.7us
;; Benchmark-Repeat: 1103 ;; Benchmark-Repeat: 1198
;; Output: 36 ;; Output: 36
(do (do
;; Excessive capture test ;; Excessive capture test
+1 -1
View File
@@ -1,5 +1,5 @@
;; Fibonacci Recursive ;; Fibonacci Recursive
;; Benchmark: 52.7us ;; Benchmark: 52.5us
;; Benchmark-Repeat: 38 ;; Benchmark-Repeat: 38
;; Output: 55 ;; Output: 55
(do (do
+2 -2
View File
@@ -1,6 +1,6 @@
;; Higher-Order Function Example ;; Higher-Order Function Example
;; Benchmark: 725ns ;; Benchmark: 680ns
;; Benchmark-Repeat: 2768 ;; Benchmark-Repeat: 2981
;; Output: 25 ;; Output: 25
(do (do
(def apply (fn [f x] (f x))) (def apply (fn [f x] (f x)))
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 484ns ;; Benchmark: 462ns
;; Benchmark-Repeat: 4144 ;; Benchmark-Repeat: 4348
;; Financial DSL Macro example ;; Financial DSL Macro example
;; Demonstrates generating complex records from simple parameters. ;; Demonstrates generating complex records from simple parameters.
;; Output: {:price 100, :size 2, :total 200} ;; Output: {:price 100, :size 2, :total 200}
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 448ns ;; Benchmark: 350ns
;; Benchmark-Repeat: 4488 ;; Benchmark-Repeat: 5767
;; Output: 5 ;; Output: 5
(do (do
(def y 1) (def y 1)
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 429ns ;; Benchmark: 376ns
;; Benchmark-Repeat: 4712 ;; Benchmark-Repeat: 5359
;; Nested Macro and Arithmetic example ;; Nested Macro and Arithmetic example
;; Output: 81 ;; Output: 81
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 320ns ;; Benchmark: 277ns
;; Benchmark-Repeat: 6238 ;; Benchmark-Repeat: 7185
;; Macro Splicing example ;; Macro Splicing example
;; Demonstrates unrolling a list into another list. ;; Demonstrates unrolling a list into another list.
;; Output: [0 1 2 3 4] ;; Output: [0 1 2 3 4]
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 209ns ;; Benchmark: 177ns
;; Benchmark-Repeat: 9540 ;; Benchmark-Repeat: 11587
;; Classic "unless" macro example ;; Classic "unless" macro example
;; Demonstrates simple template substitution. ;; Demonstrates simple template substitution.
;; Output: 42 ;; Output: 42
+2 -2
View File
@@ -1,7 +1,7 @@
;; Record to Tuple Mapping Test ;; Record to Tuple Mapping Test
;; Output: 30 ;; Output: 30
;; Benchmark: 755ns ;; Benchmark: 743ns
;; Benchmark-Repeat: 2652 ;; Benchmark-Repeat: 2733
(do (do
(def rec {:x 10 :y 20}) (def rec {:x 10 :y 20})
+2 -2
View File
@@ -2,8 +2,8 @@
;; This test calls a function that destructures a record ;; This test calls a function that destructures a record
;; Current implementation is now zero-allocation for destructuring. ;; Current implementation is now zero-allocation for destructuring.
;; Output: 3 ;; Output: 3
;; Benchmark: 775ns ;; Benchmark: 723ns
;; Benchmark-Repeat: 2587 ;; Benchmark-Repeat: 2783
(do (do
(def process (fn [[x y]] (def process (fn [[x y]]
+1 -1
View File
@@ -2,7 +2,7 @@
;; heavily recursive, benefits significantly from specialization of integer arithmetic ;; heavily recursive, benefits significantly from specialization of integer arithmetic
;; and direct function calls (skipping dynamic dispatch). ;; and direct function calls (skipping dynamic dispatch).
;; Output: 5 ;; Output: 5
;; Benchmark: 471.9us ;; Benchmark: 471.9us
;; Benchmark-Repeat: 6 ;; Benchmark-Repeat: 6
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 1.7us ;; Benchmark: 1.9us
;; Benchmark-Repeat: 1196 ;; Benchmark-Repeat: 1061
;; Demonstration of N-dimensional Tuples, Vectors, and Matrices ;; Demonstration of N-dimensional Tuples, Vectors, and Matrices
;; Based on docs/Tupel 1.md ;; Based on docs/Tupel 1.md
;; ;;