introduce hash_type to make it easier to modify benchmark for other small tests.