How does TVM measure performance when tuning for a different target device?

You can use TVM RPC to run and tune models on the target device.