Split benchmarks into module and executable.

This change allow to introduce wrapper that is suitable for
cabal bench.