PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
22.05k stars 1.33k forks source link

fix: use combinations in the breakdowns test for perf #26325

Open skoob13 opened 1 day ago

skoob13 commented 1 day ago

Problem

Only combinations of elements matter in the test. The original test has 336 iterations, while with combinations this count is reduced to 56 still using three elements.

Changes

Use combinations instead of permutations, as permutations are unnecessary.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

N/A