Skip to content

[Performance] Performance regression in AveragePool operator #27190

@junghyunpark2001

Description

@junghyunpark2001

Describe the issue

Description

We observed a significant performance regression in the AveragePool operator between ONNXRuntime v1.20.0 and v1.21.0. The regression affects multiple AveragePool configurations with +17% to +28% kernel slowdown.

Affected Operator

AveragePool

  • Opset Version: 11, 18
  • Regression: +17% to +30% kernel slowdown

regression commit :

https://github.com/microsoft/onnxruntime/pull/16752/files#diff-4cd5cf24d279e5bd52c1ee3888739b856b62be11d86e3f8271504d631b62af6c

To reproduce

python script_profiling.py averagepool_pool_11_18_average_pool_3d_valid_input 1.20.0 1.21.0

Archive.zip

Urgency

No response

Platform

Linux

OS Version

Ubuntu 24.04.3 LTS

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.20

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?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceissues related to performance regressions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions