d1b8d03604
This commit updates the benchmark and repeat counts for various example files. These changes reflect potential performance improvements or variations observed during testing.
26 lines
654 B
Plaintext
26 lines
654 B
Plaintext
;; Benchmark: 1.5us
|
|
;; 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.
|
|
|
|
;; Output: PipelineNode[last: Some({:mid 101.35623617501585, :range 0.9314056584827455})]
|
|
|
|
(do
|
|
(def ohlc_stream (create-random-ohlc 42 10))
|
|
|
|
;; Pipe die einen Record erzeugt
|
|
(def indicator
|
|
(pipe [ohlc_stream]
|
|
(fn [ohlc]
|
|
{
|
|
:mid (/ (+ (.high ohlc) (.low ohlc)) 2.0)
|
|
:range (- (.high ohlc) (.low ohlc))
|
|
}
|
|
)
|
|
)
|
|
)
|
|
|
|
indicator
|
|
)
|