Add utilities for benchmark (#38).