[Performance] Resize node shows huge performance drop on Windows #23430
Labels
performance
issues related to performance regressions
platform:windows
issues related to the Windows platform
Describe the issue
Hi!
We observed a significant performance regression in the
Resize
operator when usingCPUExecutionProvider
on Windows. On Linux the behavior is the one expected. In particular, when opening the profile trace we realized that it is theround
operation that shows the biggest performance drop between the two OS.The mean latency of the
Resize
node over 50 runs after warmup is ~6ms on Windows and ~0.1ms on Linux.The same performance drop ratio appears disabling profiling and enabling all optimizations with
GraphOptimizationLevel.ORT_ENABLE_ALL
.Model graph:
Windows profile:
Linux profile:
To reproduce
Here is the code used to reproduce the issue:
Urgency
This slowdown severely impacts workloads that rely heavily on the Resize operator, particularly in image processing tasks.
Platform
Windows
OS Version
10
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.20.1
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
Model File
No response
Is this a quantized model?
No
The text was updated successfully, but these errors were encountered: