Liking cljdoc? Tell your friends :D

jmh.sample

Example fns used by the 'sample.jmh.edn' file.

Benchmark and state fns are annotated with metadata in this file for clarity. This is not required for functionality.

Example fns used by the 'sample.jmh.edn' file.

Benchmark and state fns are annotated with metadata in this file for
clarity. This is not required for functionality.
raw docstring

addclj

(add n)
(add a b)

Simple arithmetic.

Simple arithmetic.
sourceraw docstring

Apicljprotocol

An HTTP endpoint.

An HTTP endpoint.

fetchclj

(fetch api payload)
sourceraw docstring

consumeclj

(consume hole cnt api [params edn temp-file rand-bytes :as composite] counters)

Discard arguments via a blackhole.

Discard arguments via a blackhole.
sourceraw docstring

hashcodeclj

(hashcode arr)

Java hashing.

Java hashing.
sourceraw docstring

hasheqclj

(hasheq arr)

Clojure hashing.

Clojure hashing.
sourceraw docstring

random-bytesclj

(random-bytes size)

Generate a random byte-array.

Generate a random byte-array.
sourceraw docstring

random-numsclj

(random-nums)

Generate a random number sequence.

Generate a random number sequence.
sourceraw docstring

Servicecljprotocol

A mutable lifecycle.

A mutable lifecycle.

dispose!clj

(dispose! service)

start!clj

(start! service)

stop!clj

(stop! service)
sourceraw docstring

spinclj

(spin)

Sleep for a short period.

Sleep for a short period.
sourceraw docstring

sumclj

(sum & xs)

Sum a non-empty sequence of numbers.

Sum a non-empty sequence of numbers.
sourceraw docstring

temp-fileclj

(temp-file)

Return a new temporary file.

Return a new temporary file.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close