Add criterion-based benchmarks.

Signed-off-by: Magnus Therning <magnus@therning.org>