Added small benchmark
Implemented compareDocToVal