From d1b8d0360491543e27a8d2f896c5f8bc1cd5a293 Mon Sep 17 00:00:00 2001 From: Michael Schimmel Date: Tue, 3 Mar 2026 18:55:31 +0100 Subject: [PATCH] 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. --- examples/again.myc | 4 ++-- examples/closure.myc | 4 ++-- examples/closure_cracking.myc | 4 ++-- examples/closure_cracking_named.myc | 4 ++-- examples/currying.myc | 4 ++-- examples/data.myc | 4 ++-- examples/def_local_inlining.myc | 4 ++-- examples/destructuring.myc | 4 ++-- examples/extreme_capture.myc | 4 ++-- examples/fib.myc | 4 ++-- examples/folding.myc | 4 ++-- examples/hof.myc | 4 ++-- examples/macro_financial.myc | 4 ++-- examples/macro_hygiene.myc | 4 ++-- examples/macro_power.myc | 4 ++-- examples/macro_splice.myc | 4 ++-- examples/macro_unless.myc | 4 ++-- examples/object_records.myc | 4 ++-- examples/optimizer_collision_repro.myc | 4 ++-- examples/optimizer_purity.myc | 4 ++-- examples/optimizer_repro.myc | 4 ++-- examples/pipeline.myc | 4 ++-- examples/pipeline_script_ticker.myc | 4 ++-- examples/record_optimizations.myc | 4 ++-- examples/record_specialization_test.myc | 2 +- examples/records.myc | 4 ++-- examples/soa_series.myc | 4 ++-- examples/tak.myc | 4 ++-- examples/tco_test.myc | 2 +- examples/tuple-struct.myc | 4 ++-- examples/tuples.myc | 2 +- 31 files changed, 59 insertions(+), 59 deletions(-) diff --git a/examples/again.myc b/examples/again.myc index c2ed7ad..9861e93 100644 --- a/examples/again.myc +++ b/examples/again.myc @@ -1,5 +1,5 @@ -;; Benchmark: 2.1us -;; Benchmark-Repeat: 993 +;; Benchmark: 1.8us +;; Benchmark-Repeat: 1122 ;; Output: 120 (do (def factorial (fn [n acc] diff --git a/examples/closure.myc b/examples/closure.myc index f1659d0..a65111d 100644 --- a/examples/closure.myc +++ b/examples/closure.myc @@ -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] diff --git a/examples/closure_cracking.myc b/examples/closure_cracking.myc index 0ef8e84..dceca3a 100644 --- a/examples/closure_cracking.myc +++ b/examples/closure_cracking.myc @@ -1,4 +1,4 @@ -;; Benchmark: 91ns -;; Benchmark-Repeat: 21799 +;; Benchmark: 89ns +;; Benchmark-Repeat: 23053 ;; Output: 5 (((fn [x] (fn [] x)) 5)) diff --git a/examples/closure_cracking_named.myc b/examples/closure_cracking_named.myc index c5aabc1..17f1eae 100644 --- a/examples/closure_cracking_named.myc +++ b/examples/closure_cracking_named.myc @@ -1,5 +1,5 @@ -;; Benchmark: 92ns -;; Benchmark-Repeat: 21826 +;; Benchmark: 89ns +;; Benchmark-Repeat: 23311 ;; Output: 5 (do (def f (fn [x] (fn [] x))) diff --git a/examples/currying.myc b/examples/currying.myc index 036b75d..0981f11 100644 --- a/examples/currying.myc +++ b/examples/currying.myc @@ -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)))))) diff --git a/examples/data.myc b/examples/data.myc index 9061a48..b2efbdd 100644 --- a/examples/data.myc +++ b/examples/data.myc @@ -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] diff --git a/examples/def_local_inlining.myc b/examples/def_local_inlining.myc index 091b2af..9327748 100644 --- a/examples/def_local_inlining.myc +++ b/examples/def_local_inlining.myc @@ -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) diff --git a/examples/destructuring.myc b/examples/destructuring.myc index 660a3c9..8985ab2 100644 --- a/examples/destructuring.myc +++ b/examples/destructuring.myc @@ -1,5 +1,5 @@ -;; Benchmark: 732ns -;; Benchmark-Repeat: 2711 +;; Benchmark: 773ns +;; Benchmark-Repeat: 2598 ;; Comprehensive Destructuring Test ;; Covers: Nested tuples, mixed params, dynamic passing diff --git a/examples/extreme_capture.myc b/examples/extreme_capture.myc index 6e4b2ef..fb3b059 100644 --- a/examples/extreme_capture.myc +++ b/examples/extreme_capture.myc @@ -1,5 +1,5 @@ -;; Benchmark: 92ns -;; Benchmark-Repeat: 21750 +;; Benchmark: 85ns +;; Benchmark-Repeat: 23630 ;; Output: 36 (do ;; Excessive capture test diff --git a/examples/fib.myc b/examples/fib.myc index f495565..479f0dc 100644 --- a/examples/fib.myc +++ b/examples/fib.myc @@ -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] diff --git a/examples/folding.myc b/examples/folding.myc index 12225dc..916b60b 100644 --- a/examples/folding.myc +++ b/examples/folding.myc @@ -1,4 +1,4 @@ -;; Benchmark: 92ns -;; Benchmark-Repeat: 21631 +;; Benchmark: 87ns +;; Benchmark-Repeat: 23361 ;; Output: 30 (+ 10 20) diff --git a/examples/hof.myc b/examples/hof.myc index bdfd4ee..f1b6fa7 100644 --- a/examples/hof.myc +++ b/examples/hof.myc @@ -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))) diff --git a/examples/macro_financial.myc b/examples/macro_financial.myc index a37750f..602891c 100644 --- a/examples/macro_financial.myc +++ b/examples/macro_financial.myc @@ -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} diff --git a/examples/macro_hygiene.myc b/examples/macro_hygiene.myc index 4f610b1..071dcc6 100644 --- a/examples/macro_hygiene.myc +++ b/examples/macro_hygiene.myc @@ -1,5 +1,5 @@ -;; Benchmark: 206ns -;; Benchmark-Repeat: 9658 +;; Benchmark: 246ns +;; Benchmark-Repeat: 8261 ;; Output: 5 (do (def y 1) diff --git a/examples/macro_power.myc b/examples/macro_power.myc index 24fc3c3..c9160a1 100644 --- a/examples/macro_power.myc +++ b/examples/macro_power.myc @@ -1,5 +1,5 @@ -;; Benchmark: 162ns -;; Benchmark-Repeat: 12339 +;; Benchmark: 194ns +;; Benchmark-Repeat: 10337 ;; Nested Macro and Arithmetic example ;; Output: 81 diff --git a/examples/macro_splice.myc b/examples/macro_splice.myc index f540f93..8739102 100644 --- a/examples/macro_splice.myc +++ b/examples/macro_splice.myc @@ -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] diff --git a/examples/macro_unless.myc b/examples/macro_unless.myc index 44e189b..93eaf62 100644 --- a/examples/macro_unless.myc +++ b/examples/macro_unless.myc @@ -1,5 +1,5 @@ -;; Benchmark: 92ns -;; Benchmark-Repeat: 21825 +;; Benchmark: 87ns +;; Benchmark-Repeat: 23129 ;; Classic "unless" macro example ;; Demonstrates simple template substitution. ;; Output: 42 diff --git a/examples/object_records.myc b/examples/object_records.myc index 32dddf8..0955e4a 100644 --- a/examples/object_records.myc +++ b/examples/object_records.myc @@ -1,5 +1,5 @@ -;; Benchmark: 1.6us -;; Benchmark-Repeat: 1233 +;; Benchmark: 1.4us +;; Benchmark-Repeat: 1473 ;; Output: [150 130 "Insufficient funds" 130] ; --------------------------------------------------------- diff --git a/examples/optimizer_collision_repro.myc b/examples/optimizer_collision_repro.myc index 6ec9383..970c556 100644 --- a/examples/optimizer_collision_repro.myc +++ b/examples/optimizer_collision_repro.myc @@ -1,5 +1,5 @@ -;; Benchmark: 93ns -;; Benchmark-Repeat: 21646 +;; Benchmark: 86ns +;; Benchmark-Repeat: 23328 ;; Output: 13 (do (macro wrap [f] `(fn [x] (~f x))) diff --git a/examples/optimizer_purity.myc b/examples/optimizer_purity.myc index 1aa580c..9782395 100644 --- a/examples/optimizer_purity.myc +++ b/examples/optimizer_purity.myc @@ -1,5 +1,5 @@ -;; Benchmark: 92ns -;; Benchmark-Repeat: 21507 +;; Benchmark: 87ns +;; Benchmark-Repeat: 23072 ;; Output: 31.41592653589793 (do (def area (fn [x] (* PI x))) diff --git a/examples/optimizer_repro.myc b/examples/optimizer_repro.myc index fa8194c..87a80f7 100644 --- a/examples/optimizer_repro.myc +++ b/examples/optimizer_repro.myc @@ -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) diff --git a/examples/pipeline.myc b/examples/pipeline.myc index 4cf65a4..69ca49c 100644 --- a/examples/pipeline.myc +++ b/examples/pipeline.myc @@ -1,5 +1,5 @@ -;; Benchmark: 2.0us -;; Benchmark-Repeat: 1015 +;; Benchmark: 2.1us +;; Benchmark-Repeat: 921 ;; Output: PipelineNode[last: Some(110.45243843391206)] (do diff --git a/examples/pipeline_script_ticker.myc b/examples/pipeline_script_ticker.myc index 5d510d2..1887fa6 100644 --- a/examples/pipeline_script_ticker.myc +++ b/examples/pipeline_script_ticker.myc @@ -1,5 +1,5 @@ -;; Benchmark: 3.0us -;; Benchmark-Repeat: 593 +;; Benchmark: 3.2us +;; Benchmark-Repeat: 613 ;; Output: PipelineNode[last: Some(110.45243843391206)] (do diff --git a/examples/record_optimizations.myc b/examples/record_optimizations.myc index a7163cf..6d52ba2 100644 --- a/examples/record_optimizations.myc +++ b/examples/record_optimizations.myc @@ -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 diff --git a/examples/record_specialization_test.myc b/examples/record_specialization_test.myc index f0a7d04..3020c90 100644 --- a/examples/record_specialization_test.myc +++ b/examples/record_specialization_test.myc @@ -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. diff --git a/examples/records.myc b/examples/records.myc index 17ff166..48c27dc 100644 --- a/examples/records.myc +++ b/examples/records.myc @@ -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] ; --------------------------------------------------------- diff --git a/examples/soa_series.myc b/examples/soa_series.myc index 119c863..ae95b75 100644 --- a/examples/soa_series.myc +++ b/examples/soa_series.myc @@ -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)) diff --git a/examples/tak.myc b/examples/tak.myc index 8f7dfe4..7d436ef 100644 --- a/examples/tak.myc +++ b/examples/tak.myc @@ -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-Repeat: 6 + ;; Benchmark: 312.6us +;; Benchmark-Repeat: 8 (do (def tak (fn [x y z] diff --git a/examples/tco_test.myc b/examples/tco_test.myc index 4a5bc2d..127da4c 100644 --- a/examples/tco_test.myc +++ b/examples/tco_test.myc @@ -1,4 +1,4 @@ -;; Benchmark: 2.5ms +;; Benchmark: 2.0ms ;; Output: "done" (do (def count_down (fn [n] diff --git a/examples/tuple-struct.myc b/examples/tuple-struct.myc index d33a605..6b2f8f9 100644 --- a/examples/tuple-struct.myc +++ b/examples/tuple-struct.myc @@ -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] diff --git a/examples/tuples.myc b/examples/tuples.myc index a831851..cf19708 100644 --- a/examples/tuples.myc +++ b/examples/tuples.myc @@ -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 ;;