m1ke,
@m1ke@phpc.social avatar

Having some interesting performance differences, PHP 7.4 vs 8.1. On an average production workload, 8.1 seems to be about 25% slower than 7.4. These are database-bound workloads so most slowness is assumed to be from the DB. Doctrine, League DI. Apache mod PHP. Potentially something to do with opcache settings?

m1ke,
@m1ke@phpc.social avatar

For anyone who comes across this, openssl 3 is the cause, roll back to 1.1

derickr,
@derickr@phpc.social avatar

@m1ke I'd like to know more about this, as 1.1 has been discontinued. Why does it make things slower?

m1ke,
@m1ke@phpc.social avatar

@derickr 3 seems to add a big slowdown to the initial connection establishment. Not sure how it persists connections but using mod php and Apache it was adding 100-200ms of latency per request when each request was speaking to dynamo db. This latency goes away by downgrading openssl. I'm not sure if that would happen with php-fpm if somehow that shares a connection pool with a given dnsname

derickr,
@derickr@phpc.social avatar

@m1ke It'd be interesting to know why though. Time to get wireshark out! Because we really shouldn't be using openssl 1.1 any more.

ocramius,
@ocramius@mastodon.social avatar

@m1ke suppressed warnings?

m1ke,
@m1ke@phpc.social avatar

deleted_by_author

  • Loading...
  • m1ke,
    @m1ke@phpc.social avatar

    @ocramius the excellent #tideways has sourced what might be the issue - DynamoDB session storage. Seems the curl request to this is taking a couple hundred milliseconds and that's on basically every request. Not sure how that's different in php8 though

    m1ke,
    @m1ke@phpc.social avatar

    deleted_by_author

  • Loading...
  • m1ke,
    @m1ke@phpc.social avatar

    @ocramius turns out rolling back to openssl 1.1 fixes this. Frustrating but entirely unrelated to PHP versions of any sort

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • InstantRegret
  • tacticalgear
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • cubers
  • thenastyranch
  • mdbf
  • provamag3
  • modclub
  • GTA5RPClips
  • normalnudes
  • khanakhh
  • everett
  • cisconetworking
  • osvaldo12
  • anitta
  • Leos
  • Durango
  • tester
  • megavids
  • JUstTest
  • All magazines