Skip to content

[benchmark] Janitor Duty: Final Sweep #24677

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 2 commits into from
Apr 15, 2020

Conversation

palimondo
Copy link
Contributor

Hopefully last of the cleanups…

@swiftlang swiftlang deleted a comment from swift-ci May 10, 2019
@palimondo
Copy link
Contributor Author

@swift-ci please benchmark

@swift-ci
Copy link
Contributor

Performance: -O

TEST OLD NEW DELTA RATIO
Improvement
RemoveWhereQuadraticInts 480 98 -79.6% 4.90x
RemoveWhereQuadraticStrings 1134 316 -72.1% 3.59x

Code size: -O

TEST OLD NEW DELTA RATIO
Regression
RemoveWhere.o 24391 24983 +2.4% 0.98x

Performance: -Osize

TEST OLD NEW DELTA RATIO
Improvement
RemoveWhereQuadraticInts 484 96 -80.2% 5.04x
RemoveWhereQuadraticStrings 1133 319 -71.8% 3.55x

Code size: -Osize

TEST OLD NEW DELTA RATIO
Regression
RemoveWhere.o 24118 24486 +1.5% 0.98x

Performance: -Onone

TEST OLD NEW DELTA RATIO
Improvement
RemoveWhereQuadraticStrings 9848 4634 -52.9% 2.13x
RemoveWhereQuadraticInts 8861 4284 -51.7% 2.07x
How to read the data The tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.

If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.

Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac mini
  Model Identifier: Macmini8,1
  Processor Name: Intel Core i7
  Processor Speed: 3.2 GHz
  Number of Processors: 1
  Total Number of Cores: 6
  L2 Cache (per Core): 256 KB
  L3 Cache: 12 MB
  Memory: 64 GB

@palimondo
Copy link
Contributor Author

palimondo commented May 16, 2019

Hmm… I was trying to lower the workload of RemoveWhereQuadratic because on my machine the runtimes on Ints and Strings variants were simply egregious:

TEST MIN(μs)
RemoveWhereQuadraticInts 10397
RemoveWhereQuadraticStrings 25880

...but from the test benchmark above I see that these run much better on modern hardware:

TEST OLD NEW DELTA RATIO
RemoveWhereQuadraticInts 480 98 -79.6% 4.90x
RemoveWhereQuadraticStrings 1134 316 -72.1% 3.59x

I'm unable to use legacyFactor here, because there is non-linear relationship between the workload size and resulting runtime. I think the performance of this benchmark is heavily dependent on L1 and L2 cache size. I'm going to leave it as is.

@palimondo palimondo force-pushed the janitor’s-last-stand branch from 1a8d3dd to f39e85b Compare May 16, 2019 17:07
@palimondo palimondo force-pushed the janitor’s-last-stand branch from f39e85b to da31b40 Compare May 19, 2019 17:42
@CodaFi
Copy link
Contributor

CodaFi commented Apr 14, 2020

@swift-ci test

@CodaFi
Copy link
Contributor

CodaFi commented Apr 14, 2020

@swift-ci benchmark

@swift-ci
Copy link
Contributor

Performance: -O

Improvement OLD NEW DELTA RATIO
DataAppendDataSmallToSmall 4200 3840 -8.6% 1.09x (?)

Code size: -O

Regression OLD NEW DELTA RATIO
InsertCharacter.o 5115 5195 +1.6% 0.98x

Performance: -Osize

Code size: -Osize

Performance: -Onone

Regression OLD NEW DELTA RATIO
CharacterPropertiesFetch 5150 5860 +13.8% 0.88x (?)
String.data.LargeUnicode 123 135 +9.8% 0.91x (?)

Code size: -swiftlibs

How to read the data The tables contain differences in performance which are larger than 8% and differences in code size which are larger than 1%.

If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.

Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac Pro
  Model Identifier: MacPro6,1
  Processor Name: 8-Core Intel Xeon E5
  Processor Speed: 3 GHz
  Number of Processors: 1
  Total Number of Cores: 8
  L2 Cache (per Core): 256 KB
  L3 Cache: 25 MB
  Memory: 64 GB

@palimondo palimondo requested a review from eeckstein April 15, 2020 14:22
@palimondo
Copy link
Contributor Author

@eeckstein I seem to have forgotten about this one. Thank's for remininding me, @CodaFi. Please review.

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@palimondo palimondo merged commit c7524d3 into swiftlang:master Apr 15, 2020
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.

4 participants