Benchmark for hardware-accelerated distance computation