Skip to content

Add result checking to the ChaCha benchmark. #34042

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
Sep 24, 2020

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Sep 23, 2020

This benchmark was being miscompiled for some time and
we did not catch it. I only noticed because a correcteness
fix caused a regression.

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci benchmark

@swift-ci
Copy link
Contributor

Performance: -O

Regression OLD NEW DELTA RATIO
ExclusivityGlobal 3 4 +33.3% 0.75x
ChaCha 87 96 +10.3% 0.91x (?)

Code size: -O

Regression OLD NEW DELTA RATIO
ChaCha.o 14209 15619 +9.9% 0.91x

Performance: -Osize

Regression OLD NEW DELTA RATIO
FlattenListFlatMap 2615 2954 +13.0% 0.89x (?)
DictionaryBridgeToObjC_BulkAccess 106 114 +7.5% 0.93x (?)

Code size: -Osize

Regression OLD NEW DELTA RATIO
ChaCha.o 11004 12278 +11.6% 0.90x

Performance: -Onone

Regression OLD NEW DELTA RATIO
ChaCha 36480 79295 +117.4% 0.46x

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 mini
  Model Identifier: Macmini8,1
  Processor Name: 6-Core 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

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

The results are inexplicable because I only saw a small performance regression at -Onone when building locally. Nonetheless, I reduced the verification so it definitely won't take a significant portion of the run time at -Onone.

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci benchmark

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci smoke test

@swift-ci
Copy link
Contributor

Build failed before running benchmark.

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci smoke test osx

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci benchmark

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci smoke test osx platform

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci smoke test OS X platform

1 similar comment
@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci smoke test OS X platform

@atrick
Copy link
Contributor Author

atrick commented Sep 23, 2020

@swift-ci benchmark

This benchmark was being miscompiled for some time and
we did not catch it. I only noticed because a correcteness
fix caused a regression.
@atrick
Copy link
Contributor Author

atrick commented Sep 24, 2020

@swift-ci smoke test

@atrick
Copy link
Contributor Author

atrick commented Sep 24, 2020

@swift-ci benchmark

@swift-ci
Copy link
Contributor

Performance: -O

Improvement OLD NEW DELTA RATIO
DictionaryBridgeToObjC_BulkAccess 111 102 -8.1% 1.09x (?)

Code size: -O

Regression OLD NEW DELTA RATIO
ChaCha.o 14209 15667 +10.3% 0.91x

Performance: -Osize

Regression OLD NEW DELTA RATIO
FlattenListFlatMap 2969 3220 +8.5% 0.92x (?)

Code size: -Osize

Regression OLD NEW DELTA RATIO
ChaCha.o 11004 12316 +11.9% 0.89x

Performance: -Onone

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 mini
  Model Identifier: Macmini8,1
  Processor Name: 6-Core 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

@atrick atrick merged commit d43c1cc into swiftlang:main Sep 24, 2020
@atrick atrick deleted the verify-chacha branch November 9, 2020 17:19
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.

2 participants