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