Refactor partial_cmp.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Run benchmarking tests.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>