Utilities for jmh-clojure.
Utilities for jmh-clojure.
The default :files that provide the benchmark environment.
The default :files that provide the benchmark environment.
(align-column col-key sep-width f1 f2 rows)
Update each row by aligning the given tuple key's values in its column: the first to the left and the second to the right.
Update each row by aligning the given tuple key's values in its column: the first to the left and the second to the right.
(expand-rows row)
Flatten and append nested result map rows.
Flatten and append nested result map rows.
The default options for each format.
The default options for each format.
(format-statistics m)
Return a string representing some of the statistical data.
Return a string representing some of the statistical data.
(format-table cols rows)
Align the given column key values of the rows in a tabular format. Returns a string.
Align the given column key values of the rows in a tabular format. Returns a string.
(glob opts pattern)
Return a File seq of paths matching the wildcard pattern.
Return a File seq of paths matching the wildcard pattern.
(list-profilers)
Print the available profilers as a table.
Print the available profilers as a table.
(main)
(main task-arg)
(main task-arg extra-opts)
Run a jmh task. Accepts an optional command keyword or option map.
Run a jmh task. Accepts an optional command keyword or option map.
(merge-environment opts)
Return the jmh environment map.
Return the jmh environment map.
(merge-recursively a b)
Merge two like-values recursively with an appropriate combining fn. If both values are not maps, sets, or collections, return the second.
Merge two like-values recursively with an appropriate combining fn. If both values are not maps, sets, or collections, return the second.
(normalize-options opts)
Return the merged options map for the task options.
Return the merged options map for the task options.
(normalize-row row)
Prepare the result map for table display.
Prepare the result map for table display.
(pr-str-max val)
(pr-str-max val max-width replacement)
Convert val
to string via pr-str
. If the string is longer than
max-width
, truncate the middle and replace with replacement
.
Convert `val` to string via `pr-str`. If the string is longer than `max-width`, truncate the middle and replace with `replacement`.
(prepare-result result opts)
Sort and select result keys.
Sort and select result keys.
(progress-reporter out)
Return a fn that will write events to the given Writer object.
Return a fn that will write events to the given Writer object.
Write the given benchmark results in the specified format.
Write the given benchmark results in the specified format.
(result-comparator xs)
Return a comparator fn that will sort results by the given keys.
Return a comparator fn that will sort results by the given keys.
(run-benchmarks env {dest :output :as opts})
Run the given benchmark environment and options.
Run the given benchmark environment and options.
(show-help)
Print a general help message
Print a general help message
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close