Update benchmark and repeat counts

This commit updates the benchmark and repeat counts for various example
files. These changes reflect potential performance improvements or
variations observed during testing.
This commit is contained in:
Michael Schimmel
2026-03-03 18:55:31 +01:00
parent 8c4db9a5ba
commit d1b8d03604
31 changed files with 59 additions and 59 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 2.1us
;; Benchmark-Repeat: 993
;; Benchmark: 1.8us
;; Benchmark-Repeat: 1122
;; Output: 120
(do
(def factorial (fn [n acc]
+2 -2
View File
@@ -1,6 +1,6 @@
;; Closure Scope Test
;; Benchmark: 391ns
;; Benchmark-Repeat: 5155
;; Benchmark: 416ns
;; Benchmark-Repeat: 4848
;; Output: 15
(do
(def make-adder (fn [x]
+2 -2
View File
@@ -1,4 +1,4 @@
;; Benchmark: 91ns
;; Benchmark-Repeat: 21799
;; Benchmark: 89ns
;; Benchmark-Repeat: 23053
;; Output: 5
(((fn [x] (fn [] x)) 5))
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 92ns
;; Benchmark-Repeat: 21826
;; Benchmark: 89ns
;; Benchmark-Repeat: 23311
;; Output: 5
(do
(def f (fn [x] (fn [] x)))
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 93ns
;; Benchmark-Repeat: 21799
;; Benchmark: 87ns
;; Benchmark-Repeat: 23196
;; Output: 42
(do
(def f (fn [a] (fn [b] (fn [c] (+ a (+ b c))))))
+2 -2
View File
@@ -1,6 +1,6 @@
;; Complex Data Structure Test
;; Benchmark: 48.1us
;; Benchmark-Repeat: 43
;; Benchmark: 32.9us
;; Benchmark-Repeat: 61
;; Output: {:name "Fibonacci", :input 10, :output 55}
(do
(def fib (fn [n]
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 297ns
;; Benchmark-Repeat: 6735
;; Benchmark: 300ns
;; Benchmark-Repeat: 6698
;; examples/def_local_inlining.myc
;; Demonstrates potential for DefLocal-Inlining (Phase 2.5)
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 732ns
;; Benchmark-Repeat: 2711
;; Benchmark: 773ns
;; Benchmark-Repeat: 2598
;; Comprehensive Destructuring Test
;; Covers: Nested tuples, mixed params, dynamic passing
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 92ns
;; Benchmark-Repeat: 21750
;; Benchmark: 85ns
;; Benchmark-Repeat: 23630
;; Output: 36
(do
;; Excessive capture test
+2 -2
View File
@@ -1,6 +1,6 @@
;; Fibonacci Recursive
;; Benchmark: 47.6us
;; Benchmark-Repeat: 44
;; Benchmark: 32.8us
;; Benchmark-Repeat: 62
;; Output: 55
(do
(def fib (fn [n]
+2 -2
View File
@@ -1,4 +1,4 @@
;; Benchmark: 92ns
;; Benchmark-Repeat: 21631
;; Benchmark: 87ns
;; Benchmark-Repeat: 23361
;; Output: 30
(+ 10 20)
+2 -2
View File
@@ -1,6 +1,6 @@
;; Higher-Order Function Example
;; Benchmark: 93ns
;; Benchmark-Repeat: 21559
;; Benchmark: 86ns
;; Benchmark-Repeat: 23023
;; Output: 25
(do
(def apply (fn [f x] (f x)))
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 93ns
;; Benchmark-Repeat: 21362
;; Benchmark: 88ns
;; Benchmark-Repeat: 22522
;; 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: 206ns
;; Benchmark-Repeat: 9658
;; Benchmark: 246ns
;; Benchmark-Repeat: 8261
;; Output: 5
(do
(def y 1)
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 162ns
;; Benchmark-Repeat: 12339
;; Benchmark: 194ns
;; Benchmark-Repeat: 10337
;; Nested Macro and Arithmetic example
;; Output: 81
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 200ns
;; Benchmark-Repeat: 9985
;; Benchmark: 195ns
;; Benchmark-Repeat: 10279
;; 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: 92ns
;; Benchmark-Repeat: 21825
;; Benchmark: 87ns
;; Benchmark-Repeat: 23129
;; Classic "unless" macro example
;; Demonstrates simple template substitution.
;; Output: 42
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 1.6us
;; Benchmark-Repeat: 1233
;; Benchmark: 1.4us
;; Benchmark-Repeat: 1473
;; Output: [150 130 "Insufficient funds" 130]
; ---------------------------------------------------------
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 93ns
;; Benchmark-Repeat: 21646
;; Benchmark: 86ns
;; Benchmark-Repeat: 23328
;; Output: 13
(do
(macro wrap [f] `(fn [x] (~f x)))
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 92ns
;; Benchmark-Repeat: 21507
;; Benchmark: 87ns
;; Benchmark-Repeat: 23072
;; Output: 31.41592653589793
(do
(def area (fn [x] (* PI x)))
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 172ns
;; Benchmark-Repeat: 11766
;; Benchmark: 167ns
;; Benchmark-Repeat: 12120
;; Output: [42 150]
(do
;; 1. Provokation Stack-Gap (bei Optimization Level 2)
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 2.0us
;; Benchmark-Repeat: 1015
;; Benchmark: 2.1us
;; Benchmark-Repeat: 921
;; Output: PipelineNode[last: Some(110.45243843391206)]
(do
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 3.0us
;; Benchmark-Repeat: 593
;; Benchmark: 3.2us
;; Benchmark-Repeat: 613
;; Output: PipelineNode[last: Some(110.45243843391206)]
(do
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 1.2ms
;; Benchmark-Repeat: 3
;; Benchmark: 900.6us
;; Benchmark-Repeat: 4
;; Tests the effect of record inlining and field lookup optimization
;; Output: 10000
(do
+1 -1
View File
@@ -1,5 +1,5 @@
;; Benchmark: 1.5us
;; Benchmark-Repeat: 1367
;; Benchmark-Repeat: 1348
;; Test Record SoA specialization in Pipelines
;; Dank der neuen Spezialisierung wird hierfür im Hintergrund
;; eine SharedRecordSeries mit SoA-Layout (Float-Puffer für mid und range) erstellt.
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 1.3us
;; Benchmark-Repeat: 1599
;; Benchmark: 1.2us
;; Benchmark-Repeat: 1634
;; Output: ["Alice" 101 :admin "Zürich" ["Alice" "Bob"] true]
; ---------------------------------------------------------
+2 -2
View File
@@ -1,6 +1,6 @@
;; Output: 26.7
;; Benchmark: 1.1us
;; Benchmark-Repeat: 1753
;; Benchmark: 1.0us
;; Benchmark-Repeat: 1944
(do
(def template {:price 10.0 :volume 100 :msg "hi"})
(def my_ticks (create-series template))
+2 -2
View File
@@ -2,8 +2,8 @@
;; heavily recursive, benefits significantly from specialization of integer arithmetic
;; and direct function calls (skipping dynamic dispatch).
;; Output: 5
;; Benchmark: 423.0us
;; Benchmark: 312.6us
;; Benchmark-Repeat: 8
(do
+1 -1
View File
@@ -1,4 +1,4 @@
;; Benchmark: 2.5ms
;; Benchmark: 2.0ms
;; Output: "done"
(do
(def count_down (fn [n]
+2 -2
View File
@@ -1,5 +1,5 @@
;; Benchmark: 890ns
;; Benchmark-Repeat: 2258
;; Benchmark: 855ns
;; Benchmark-Repeat: 2366
;; Output: ["Symbol:" "btc" "field:" :close "id:" "cls"]
(do
(def p (fn [conf]
+1 -1
View File
@@ -1,5 +1,5 @@
;; Benchmark: 1.7us
;; Benchmark-Repeat: 1209
;; Benchmark-Repeat: 1175
;; Demonstration of N-dimensional Tuples, Vectors, and Matrices
;; Based on docs/Tupel 1.md
;;