Skip to content

TLS context - unclear when used? #3005

Answered by asfg84
asfg84 asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the late reply. With this minimal example

  auto start = std::chrono::steady_clock::now();

  Aws::SDKOptions options;
  options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Info;
  Aws::InitAPI(options);

  auto dc = std::chrono::steady_clock::now() - start;
  auto ms = std::chrono::duration_cast<std::chrono::microseconds>(dc).count();

  printf("initialization runtime: %.6f ms", ms * 1e-3);

On an amd64 system with Ubuntu 22.04 I measure nearly 98ms initialization runtime with the TLS context, and around 32ms without it. (Of these 32ms, 31ms come from the initialization of the mqtt libraray, that we do not require either, see also awslabs/aws-crt-cpp#630).

The runt…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@asfg84
Comment options

Answer selected by bhavya2109sharma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
2 participants