InferQual
InferQual times PyTorch and ONNX Runtime and picks the fastest backend whose output matches PyTorch.
$ inferqual run --device cpu
| Runtime | p50 | p95 | Samples/s | Cosine similarity |
|---|---|---|---|---|
| ONNX Runtime INT8 | 0.69 ms | 0.83 ms | 1,449 | 0.99999 |
| ONNX Runtime FP32 | 0.77 ms | 0.80 ms | 1,304 | 1.0 |
| PyTorch FP32 | 1.28 ms | 1.50 ms | 779 | 1.0 |
These times depend on the machine.