upki: add feature fetch-native-tls#191
Merged
Merged
Conversation
ctz
reviewed
Jul 10, 2026
ctz
reviewed
Jul 10, 2026
ctz
reviewed
Jul 10, 2026
ctz
left a comment
Member
There was a problem hiding this comment.
Just to record and note that use of openssl trashes upki fetch no-op performance.
rustls
$ /usr/bin/time target/release/upki fetch
0.09user 0.02system 0:00.14elapsed 78%CPU (0avgtext+0avgdata 20420maxresident)k
0inputs+160outputs (0major+3596minor)pagefaults 0swaps
==2220941== in use at exit: 36,256 bytes in 12 blocks
==2220941== total heap usage: 91,792 allocs, 91,780 frees, 56,390,142 bytes allocated
Time (mean ± σ): 152.6 ms ± 24.7 ms [User: 104.7 ms, System: 14.5 ms]
Range (min … max): 141.8 ms … 251.1 ms 19 runs
OpenSSL 3.0.13 (as provided with Ubuntu 24.04)
$ /usr/bin/time target/release/upki fetch
0.09user 0.01system 0:00.18elapsed 61%CPU (0avgtext+0avgdata 23980maxresident)k
0inputs+160outputs (0major+3922minor)pagefaults 0swaps
==2220987== in use at exit: 340,844 bytes in 6,295 blocks
==2220987== total heap usage: 326,485 allocs, 320,190 frees, 62,661,282 bytes allocated
Time (mean ± σ): 226.7 ms ± 19.8 ms [User: 101.0 ms, System: 14.9 ms]
Range (min … max): 146.1 ms … 240.0 ms 20 runs
Also worth noting that this removes PQC support, so Openssl is both 50% slower, uses 10x the memory, and doesn't actually do modern TLS 👍🏽
Let's not promote this option!
5443f74 to
6c3bd83
Compare
Member
Author
|
To be fair, it might be slightly more modern on Ubuntu 26.04? Interesting that the range is similar but the mean is substantially higher. Wonder what the distribution is like. |
ctz
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cc @julian-klode