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