Giter Club home page Giter Club logo

Comments (10)

Scottmitch avatar Scottmitch commented on August 11, 2024 1

No. We currently don't measure the impacts of ALPN. PRs welcome (Netty -> Conscrypt ftw) 😉

from conscrypt.

nmittler avatar nmittler commented on August 11, 2024

Running the benchmarks, I'm seeing a significant regression in our engine performance. Investigating.

from conscrypt.

nmittler avatar nmittler commented on August 11, 2024

A couple things that have already been done:

  • Switched the default cipher to TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 for all benchmarks
  • Explicitly setting number of threads to 1 for all benchmarks

from conscrypt.

nmittler avatar nmittler commented on August 11, 2024

I'm not quite sure how we can benchmark the handshake without creating a new pair of engines each time, which would probably dominate the benchmark.

@Scottmitch any thoughts?

from conscrypt.

davidben avatar davidben commented on August 11, 2024

An engine is a socket, right? If there's a high setup cost outside the handshake in creating a socket, it seems probably fair to count that in a handshake benchmark.

from conscrypt.

nmittler avatar nmittler commented on August 11, 2024

@davidben no, an engine is not a socket ... creation is likely much lighter, but still not insignificant.

If there's a high setup cost outside the handshake in creating a socket, it seems probably fair to count that in a handshake benchmark.

Perhaps. I guess we can just try it out and see what the numbers look like.

from conscrypt.

davidben avatar davidben commented on August 11, 2024

Er, sorry, by socket I mean whether it's a per-connection thing or something shared between connections. If it's shared between connections then, yeah, the cost of creating one shouldn't be in the benchmark since it'll be amortized over many connections. If it's one per connection, then the cost of creating one, along with the handshake, figures into setup cost.

from conscrypt.

Scottmitch avatar Scottmitch commented on August 11, 2024

@nmittler - See Netty's SslEngineHandshakeBenchmark for ideas. We currently count the engine creation in the benchmark but could extract this out if necessary. I don't recall measuring the impacts of moving the creation/destruction outside the benchmark.

from conscrypt.

nmittler avatar nmittler commented on August 11, 2024

@Scottmitch thanks for the link! Yeah, after doing some profiling it doesn't seem that creation has much of an impact.

from conscrypt.

nmittler avatar nmittler commented on August 11, 2024

@Scottmitch after #239 goes in, everything will be addressed except ALPN. Does Netty have a benchmark for this that I could borrow?

from conscrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.