[xla] Optimize constructing ShapeTree #97008
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[xla] Optimize constructing ShapeTree
name cpu/op cpu/op vs base
BM_Construct/2/8 8.041µ ± 1% 5.678µ ± 1% -29.38% (p=0.000 n=20)
BM_Construct/1/1000 48.71µ ± 1% 45.27µ ± 1% -7.05% (p=0.000 n=20)
BM_ConstructUnowned/2/8 4.465µ ± 1% 2.114µ ± 1% -52.66% (p=0.000 n=20)
BM_ConstructUnowned/1/1000 24.31µ ± 1% 21.59µ ± 0% -11.19% (p=0.000 n=20)
geomean 14.36µ 10.41µ -27.52%
name time/op time/op vs base
BM_Construct/2/8 8.063µ ± 1% 5.693µ ± 1% -29.39% (p=0.000 n=20)
BM_Construct/1/1000 48.82µ ± 1% 45.41µ ± 1% -6.99% (p=0.000 n=20)
BM_ConstructUnowned/2/8 4.477µ ± 1% 2.119µ ± 1% -52.66% (p=0.000 n=20)
BM_ConstructUnowned/1/1000 24.37µ ± 1% 21.64µ ± 0% -11.20% (p=0.000 n=20)
geomean 14.40µ 10.44µ -27.51%