Skip to content
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

KSP2 Performance Issues #2282

Open
ZacSweers opened this issue Dec 30, 2024 · 3 comments
Open

KSP2 Performance Issues #2282

ZacSweers opened this issue Dec 30, 2024 · 3 comments

Comments

@ZacSweers
Copy link
Contributor

(Filing at the request of the JB folks for referencing)

I re-profiled our builds with KSP2 with 2.0.21-1.0.27. Unfortunately, across the board in a bunch of benchmarks I found that

  • abi change - KSP2 is ~40-50% slower
  • noabi change - KSP2 is 80-100% slower
  • clean build - negligible/amortized by the clean build

If I just benchmark expensive our two most expensive KSP tasks with `, KSP2 is around 20-30% slower.

Other notes:

  • We give the kotlin and gradle daemons the same memory, and these benchmarks were run on overpowered AWS boxes
  • None of these builds were experiencing memory pressure with the settings they had (somewhere in the dozens of GB for xmx)

time-to-task-start is more or less the same, assumes a hot configuration cache

Here's a few samples. Looking again there is some GC time creeping into some of these that I'll look closer into, but not enough to majorly skew the larger trend

Image
Image
Image
Image

@bcorso
Copy link

bcorso commented Jan 14, 2025

I re-profiled our builds with KSP2 with 2.0.21-1.0.27.

@ZacSweers sorry if I missed it, but what is the comparison against?

Is this comparing two different versions of KSP2 or KSP1 vs KSP2 (or something else)?

@ZacSweers
Copy link
Contributor Author

Comparing against KSP1 yeah

@ZacSweers
Copy link
Contributor Author

Tested again with 2.1.10-1.0.30 but still seeing significant regressions.

ABI - ~25%-28% slower
non-abi - ~ 40%-50% slower

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

No branches or pull requests

2 participants