Skip to content

[xla] Optimize ShapeUtil::ForEach traverals #28987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025
Merged

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jul 16, 2025

[xla] Optimize ShapeUtil::ForEach traverals

name                 cpu/op        cpu/op      vs base
BM_ShapeCount/0/0     4.886n ± 0%   4.902n ± 1%        ~ (p=0.365 n=20)
BM_ShapeCount/2/8     377.9n ± 1%   249.2n ± 1%  -34.07% (p=0.000 n=20)
BM_ShapeCount/4/8     28.96µ ± 2%   23.39µ ± 4%  -19.22% (p=0.000 n=20)
BM_ShapeCount/1/1000  4.971µ ± 1%   2.950µ ± 1%  -40.65% (p=0.000 n=20)
geomean              718.1n        538.8n       -24.96%

@copybara-service copybara-service bot force-pushed the test_783827784 branch 3 times, most recently from 98d97fe to c86e009 Compare July 17, 2025 02:46
```
name                 cpu/op        cpu/op      vs base
BM_ShapeCount/0/0     4.886n ± 0%   4.902n ± 1%        ~ (p=0.365 n=20)
BM_ShapeCount/2/8     377.9n ± 1%   249.2n ± 1%  -34.07% (p=0.000 n=20)
BM_ShapeCount/4/8     28.96µ ± 2%   23.39µ ± 4%  -19.22% (p=0.000 n=20)
BM_ShapeCount/1/1000  4.971µ ± 1%   2.950µ ± 1%  -40.65% (p=0.000 n=20)
geomean              718.1n        538.8n       -24.96%
```

PiperOrigin-RevId: 784002328
@copybara-service copybara-service bot merged commit a6cbcec into main Jul 17, 2025
@copybara-service copybara-service bot deleted the test_783827784 branch July 17, 2025 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant