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.
13 lines
231 B
Plaintext
13 lines
231 B
Plaintext
;; Record to Tuple Mapping Test
|
|
;; Output: 30
|
|
;; Benchmark: 755ns
|
|
;; Benchmark-Repeat: 2652
|
|
(do
|
|
(def rec {:x 10 :y 20})
|
|
|
|
;; Map record to tuple pattern
|
|
(def add-tuple (fn [[a b]] (+ a b)))
|
|
|
|
(add-tuple rec)
|
|
)
|