9072cfaa14
This commit updates the benchmark timings and repeat counts for various example files. The `tester.rs` script has been modified to: - Correctly parse and use the `Benchmark-Repeat` directive. - Implement an adaptive sampling mechanism for more accurate median calculation, especially for long-running benchmarks. - Improve the logic for updating and inserting benchmark and repeat lines in example files. - Handle potential compilation and runtime errors during benchmark execution.
21 lines
647 B
Plaintext
21 lines
647 B
Plaintext
;; Benchmark: 1.7us
|
|
;; Benchmark-Repeat: 1196
|
|
;; Demonstration of N-dimensional Tuples, Vectors, and Matrices
|
|
;; Based on docs/Tupel 1.md
|
|
;;
|
|
;; This test verifies that the literals are correctly parsed and represented.
|
|
;; Type inference is verified via internal compiler unit tests.
|
|
;;
|
|
;; Output: [[1 3.14 "text"] [10 20 30 40] [[1 2] [3 4]] [[[1 2] [3 4]] [[5 6] [7 8]]] [[1 2] [3 4 5]] {:x 1, :y 0.3}]
|
|
|
|
(do
|
|
(def tpl [1, 3.14, "text"])
|
|
(def v [10 20 30 40])
|
|
(def mat2d [[1 2], [3 4]])
|
|
(def mat3d [[[1 2] [3 4]] [[5 6] [7 8]]])
|
|
(def mixed [[1 2] [3 4 5]])
|
|
(def rec {:x 1, :y 0.3})
|
|
|
|
[tpl v mat2d mat3d mixed rec]
|
|
)
|